PERFORCE change 168044 for review
Ana Kukec
anchie at FreeBSD.org
Tue Sep 1 12:20:36 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=168044
Change 168044 by anchie at 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 <anchie at freebsd.org>
+ * 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 <sys/param.h>
#include <sys/module.h>
@@ -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 <anchie at freebsd.org>
+ * 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);
+
More information about the p4-projects
mailing list