Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/udp6_usrreq.c
Show First 20 Lines • Show All 759 Lines • ▼ Show 20 Lines | if (!IN6_IS_ADDR_V4MAPPED(faddr)) { | ||||
laddr = &in6a; | laddr = &in6a; | ||||
} else | } else | ||||
laddr = &inp->in6p_laddr; /* XXX */ | laddr = &inp->in6p_laddr; /* XXX */ | ||||
if (laddr == NULL) { | if (laddr == NULL) { | ||||
if (error == 0) | if (error == 0) | ||||
error = EADDRNOTAVAIL; | error = EADDRNOTAVAIL; | ||||
goto release; | goto release; | ||||
} | } | ||||
if (inp->inp_lport == 0 && | if (inp->inp_lport == 0) { | ||||
(error = in6_pcbsetport(laddr, inp, td->td_ucred)) != 0) { | inp->inp_flags |= INP_ANONPORT; | ||||
error = in6_pcbsetport((struct sockaddr *)addr6, laddr, | |||||
inp, td->td_ucred); | |||||
garga: style(9): Bad indent | |||||
if (error) { | |||||
inp->inp_flags &= ~INP_ANONPORT; | |||||
/* Undo an address bind that may have occurred. */ | /* Undo an address bind that may have occurred. */ | ||||
gargaUnsubmitted Not Done Inline Actionsstyle(9): Line too long garga: style(9): Line too long | |||||
inp->in6p_laddr = in6addr_any; | inp->in6p_laddr = in6addr_any; | ||||
goto release; | goto release; | ||||
} | |||||
} | } | ||||
} else { | } else { | ||||
if (IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_faddr)) { | if (IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_faddr)) { | ||||
error = ENOTCONN; | error = ENOTCONN; | ||||
goto release; | goto release; | ||||
} | } | ||||
if (IN6_IS_ADDR_V4MAPPED(&inp->in6p_faddr)) { | if (IN6_IS_ADDR_V4MAPPED(&inp->in6p_faddr)) { | ||||
if ((inp->inp_flags & IN6P_IPV6_V6ONLY)) { | if ((inp->inp_flags & IN6P_IPV6_V6ONLY)) { | ||||
▲ Show 20 Lines • Show All 522 Lines • Show Last 20 Lines |
style(9): Bad indent