PERFORCE change 167503 for review
Ana Kukec
anchie at FreeBSD.org
Wed Aug 19 15:15:39 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=167503
Change 167503 by anchie at anchie_malimis on 2009/08/19 15:15:00
Add calls of input functions for Redirect, and RS/RA (even though the
processing of the outgoing RS/RA SeND-protected packets is not implemented
yet).
Affected files ...
.. //depot/projects/soc2009/anchie_send/src/sys/netinet6/send.c#27 edit
Differences ...
==== //depot/projects/soc2009/anchie_send/src/sys/netinet6/send.c#27 (text+ko) ====
@@ -30,7 +30,8 @@
struct ip6_hdr *ip6;
struct sockaddr_in6 dst;
struct icmp6_hdr *icmp6;
- int icmp6len, *offp = NULL;
+ int icmp6len;
+ //int *offp = NULL;
printf("send.c: send_output()\n");
@@ -74,6 +75,20 @@
case ND_NEIGHBOR_ADVERT:
nd6_na_input(m, sizeof(struct ip6_hdr), icmp6len);
break;
+ 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;
+ case ND_ROUTER_ADVERT:
+ nd6_ra_input(m, sizeof(struct ip6_hdr), icmp6len);
+ break;
default:
/* XXX-BZ TODO */
printf("%s:%d: icmp6_code=%u\n",
@@ -82,7 +97,7 @@
return (ENOSYS);
}
- *offp = sizeof (struct ip6_hdr);
+ //*offp = sizeof (struct ip6_hdr);
//icmp6_rip6_input(&m, *offp);
/*
More information about the p4-projects
mailing list