Date: Wed, 19 Aug 2009 15:15:39 GMT From: Ana Kukec <anchie@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 167503 for review Message-ID: <200908191515.n7JFFdHX061953@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=167503 Change 167503 by anchie@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); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908191515.n7JFFdHX061953>