Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/in6_pcb.c
Show First 20 Lines • Show All 510 Lines • ▼ Show 20 Lines | #endif | ||||
inp->inp_fport = sin6->sin6_port; | inp->inp_fport = sin6->sin6_port; | ||||
/* update flowinfo - draft-itojun-ipv6-flowlabel-api-00 */ | /* update flowinfo - draft-itojun-ipv6-flowlabel-api-00 */ | ||||
inp->inp_flow &= ~IPV6_FLOWLABEL_MASK; | inp->inp_flow &= ~IPV6_FLOWLABEL_MASK; | ||||
if (inp->inp_flags & IN6P_AUTOFLOWLABEL) | if (inp->inp_flags & IN6P_AUTOFLOWLABEL) | ||||
inp->inp_flow |= | inp->inp_flow |= | ||||
(htonl(ip6_randomflowlabel()) & IPV6_FLOWLABEL_MASK); | (htonl(ip6_randomflowlabel()) & IPV6_FLOWLABEL_MASK); | ||||
if (rehash) { | if (rehash) { | ||||
in_pcbrehash_mbuf(inp, m); | in_pcbrehash(inp); | ||||
} else { | } else { | ||||
in_pcbinshash_mbuf(inp, m); | in_pcbinshash(inp); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
int | int | ||||
in6_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct ucred *cred) | in6_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct ucred *cred) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 662 Lines • Show Last 20 Lines |