]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
scope cleanup. with this change
authorHajimu UMEMOTO <ume@FreeBSD.org>
Mon, 25 Jul 2005 12:31:43 +0000 (12:31 +0000)
committerHajimu UMEMOTO <ume@FreeBSD.org>
Mon, 25 Jul 2005 12:31:43 +0000 (12:31 +0000)
commita1f7e5f8ee7fee62414af8d3a3008313cfd2cb17
tree5a678f63b25976c30f74f3bad9edb6f708c52930
parent869de95743d527dda9d81d06b0e74cd5e95f8f9c
scope cleanup.  with this change
- most of the kernel code will not care about the actual encoding of
  scope zone IDs and won't touch "s6_addr16[1]" directly.
- similarly, most of the kernel code will not care about link-local
  scoped addresses as a special case.
- scope boundary check will be stricter.  For example, the current
  *BSD code allows a packet with src=::1 and dst=(some global IPv6
  address) to be sent outside of the node, if the application do:
    s = socket(AF_INET6);
    bind(s, "::1");
    sendto(s, some_global_IPv6_addr);
  This is clearly wrong, since ::1 is only meaningful within a single
  node, but the current implementation of the *BSD kernel cannot
  reject this attempt.

Submitted by: JINMEI Tatuya <jinmei__at__isl.rdc.toshiba.co.jp>
Obtained from: KAME
34 files changed:
sys/net/if_gif.c
sys/net/if_spppsubr.c
sys/netinet/icmp6.h
sys/netinet/ip_carp.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_timewait.c
sys/netinet/tcp_usrreq.c
sys/netinet6/ah_core.c
sys/netinet6/icmp6.c
sys/netinet6/in6.c
sys/netinet6/in6.h
sys/netinet6/in6_cksum.c
sys/netinet6/in6_ifattach.c
sys/netinet6/in6_pcb.c
sys/netinet6/in6_proto.c
sys/netinet6/in6_src.c
sys/netinet6/in6_var.h
sys/netinet6/ip6_forward.c
sys/netinet6/ip6_input.c
sys/netinet6/ip6_mroute.c
sys/netinet6/ip6_output.c
sys/netinet6/ip6_var.h
sys/netinet6/ipsec.c
sys/netinet6/mld6.c
sys/netinet6/nd6.c
sys/netinet6/nd6_nbr.c
sys/netinet6/nd6_rtr.c
sys/netinet6/raw_ip6.c
sys/netinet6/route6.c
sys/netinet6/scope6.c
sys/netinet6/scope6_var.h
sys/netinet6/udp6_output.c
sys/netinet6/udp6_usrreq.c
sys/netkey/key.c