Lines Matching defs:so
370 in_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp,
397 error = in_lifaddr_ioctl(so, cmd, &iflr, ifp, p);
528 if (so != NULL && (so->so_state & SS_PRIV) == 0) {
533 if (so == NULL && p != kernproc) {
604 if ((so->so_state & SS_PRIV) == 0) {
1139 * See if there is any IPV4 address left and if so,
1174 inp = sotoinpcb(so);
1201 if (so->so_type == SOCK_DGRAM)
1202 so->so_options |= SO_BROADCAST;
1203 else if (so->so_type == SOCK_STREAM)
1204 so->so_options |= SO_WANTOOBFLAG;
1245 in_lifaddr_ioctl(struct socket *so, u_long cmd, struct if_laddrreq *iflr,
1303 return in_control(so, SIOCAIFADDR, (caddr_t)&ifra, ifp, p);
1404 return in_control(so, SIOCDIFADDR, (caddr_t)&ifra,
1539 /* ia->ia_addr won't change, so check without lock */