From owner-p4-projects@FreeBSD.ORG Tue Sep 1 12:20:36 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 92EBB1065695; Tue, 1 Sep 2009 12:20:36 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 578861065692 for ; Tue, 1 Sep 2009 12:20:36 +0000 (UTC) (envelope-from anchie@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 463A38FC1B for ; Tue, 1 Sep 2009 12:20:36 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n81CKaOQ067998 for ; Tue, 1 Sep 2009 12:20:36 GMT (envelope-from anchie@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n81CKa77067996 for perforce@freebsd.org; Tue, 1 Sep 2009 12:20:36 GMT (envelope-from anchie@FreeBSD.org) Date: Tue, 1 Sep 2009 12:20:36 GMT Message-Id: <200909011220.n81CKa77067996@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to anchie@FreeBSD.org using -f From: Ana Kukec To: Perforce Change Reviews Cc: Subject: PERFORCE change 168044 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2009 12:20:36 -0000 http://perforce.freebsd.org/chv.cgi?CH=168044 Change 168044 by anchie@anchie_malimis on 2009/09/01 12:19:58 Copyright and license added to netinet6/send.[ch] files. Affected files ... .. //depot/projects/soc2009/anchie_send/src/sys/netinet6/send.c#30 edit .. //depot/projects/soc2009/anchie_send/src/sys/netinet6/send.h#16 edit Differences ... ==== //depot/projects/soc2009/anchie_send/src/sys/netinet6/send.c#30 (text+ko) ==== @@ -1,4 +1,28 @@ -/* send module */ +/*- + * Copyright (c) 2009 Ana Kukec + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ #include #include @@ -76,11 +100,6 @@ case ND_REDIRECT: icmp6_redirect_input(m, sizeof(struct ip6_hdr)); break; - /* - * ToDo: Implement functions the outgoing SeND RA/RS packets. - * Processing routines for outgoing RA/RS packets are implemented - * in rtadvd/rtsol. - */ case ND_ROUTER_SOLICIT: nd6_rs_input(m, sizeof(struct ip6_hdr), icmp6len); break; ==== //depot/projects/soc2009/anchie_send/src/sys/netinet6/send.h#16 (text+ko) ==== @@ -1,10 +1,27 @@ -/* send.c */ -extern int (*send_input_hook)(struct mbuf *, struct ifnet *, int, int); -extern int (*send_output_hook)(struct mbuf *, struct ifnet *, int); - -/* Message formats for messages from ND to applications (i.e. sendd) via the - * routing socket. These messages are appended to an if_announcemsghdr - * structure. +/*- + * Copyright (c) 2009 Ana Kukec + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. */ #define SND_OUT 0 /* Outgoing traffic */ @@ -12,3 +29,7 @@ #define RTM_SND_OUT 0 /* Outgoing RTM SeND packet sent to user space */ #define RTM_SND_IN 1 /* Incoming RTM SeND packet sent to user space */ + +extern int (*send_input_hook)(struct mbuf *, struct ifnet *, int, int); +extern int (*send_output_hook)(struct mbuf *, struct ifnet *, int); +