Home
last modified time | relevance | path

Searched refs:inp_socket (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/sys/netinet/
H A Din_pcb.c227 inp->inp_socket = so; in inpcb_create()
274 struct socket *so = inp->inp_socket; in inpcb_set_port()
370 struct socket *so = inp->inp_socket; in inpcb_bind_port()
417 if (t6 && (reuseport & t6->inp_socket->so_options) == 0) in inpcb_bind_port()
437 (t->inp_socket->so_options & SO_REUSEPORT) == 0) in inpcb_bind_port()
438 && (so->so_uidinfo->ui_uid != t->inp_socket->so_uidinfo->ui_uid)) { in inpcb_bind_port()
451 if (t && (reuseport & t->inp_socket->so_options) == 0) in inpcb_bind_port()
495 inp->inp_socket->so_proto->pr_domain->dom_sa_any); in inpcb_bind()
541 inp->inp_socket->so_type == SOCK_STREAM) in inpcb_connect()
591 inp->inp_socket->so_options, inp->inp_moptions, &xerror, in inpcb_connect()
[all …]
H A Dtcp_usrreq.c1149 so = tp->t_inpcb->inp_socket; in tcp_disconnect1()
1198 struct socket *so = tp->t_inpcb->inp_socket; in tcp_usrclosed()
1424 if (inp == NULL || (sockp = inp->inp_socket) == NULL) in inet4_ident_core()
1432 (inp->inp_socket->so_options & SO_ACCEPTCONN) != 0) in inet4_ident_core()
1436 KAUTH_REQ_NETWORK_SOCKET_DROP, inp->inp_socket, tp, NULL); in inet4_ident_core()
1459 if (inp == NULL || (sockp = inp->inp_socket) == NULL) in inet6_ident_core()
1467 (inp->inp_socket->so_options & SO_ACCEPTCONN) != 0) in inet6_ident_core()
1471 KAUTH_REQ_NETWORK_SOCKET_DROP, inp->inp_socket, tp, NULL); in inet6_ident_core()
1661 KAUTH_REQ_NETWORK_SOCKET_CANSEE, inp->inp_socket, NULL, in sysctl_inpcblist()
1675 pcb.ki_family = inp->inp_socket->so_proto-> in sysctl_inpcblist()
[all …]
H A Din_pcb.h100 struct socket *inp_socket; /* back pointer to socket */ member
218 #define inp_lock(inp) solock((inp)->inp_socket)
219 #define inp_unlock(inp) sounlock((inp)->inp_socket)
220 #define inp_locked(inp) solocked((inp)->inp_socket)
H A Dtcp_timer.c347 so = tp->t_inpcb->inp_socket; in tcp_timer_rexmt()
469 so = tp->t_inpcb->inp_socket; in tcp_timer_persist()
544 so = tp->t_inpcb->inp_socket; in tcp_timer_keep()
618 so = tp->t_inpcb->inp_socket; in tcp_timer_2msl()
H A Dudp_usrreq.c545 inp->inp_socket); in udp4_realinput()
556 if ((inp->inp_socket->so_options & in udp4_realinput()
600 ret = inp->inp_overudp_cb(mp, off, inp->inp_socket, in udp4_realinput()
630 udp4_sendup(m, off, (struct sockaddr *)src, inp->inp_socket); in udp4_realinput()
647 inp->inp_socket->so_error = errno; in udp_notify()
648 sorwakeup(inp->inp_socket);
649 sowwakeup(inp->inp_socket);
846 flags |= inp->inp_socket->so_options & (SO_DONTROUTE|SO_BROADCAST); in udp_output()
H A Draw_ip.c147 SOOPT_TIMESTAMP(last->inp_socket->so_options)) in rip_sbappendaddr()
149 if (sbappendaddr(&last->inp_socket->so_rcv, sa, n, opts) == 0) { in rip_sbappendaddr()
150 soroverflow(last->inp_socket); in rip_sbappendaddr()
154 sorwakeup(last->inp_socket); in rip_sbappendaddr()
304 flags = (inp->inp_socket->so_options & SO_DONTROUTE) | in rip_output()
H A Ddccp_usrreq.c427 so = inp->inp_socket; in dccp_input()
662 soisconnected(inp->inp_socket); in dccp_input()
711 soisconnected(inp->inp_socket); in dccp_input()
918 inp->inp_socket->so_error = errno; in dccp_notify()
919 sorwakeup(inp->inp_socket); in dccp_notify()
920 sowwakeup(inp->inp_socket); in dccp_notify()
956 if (inp->inp_socket != NULL) { in dccp_ctlinput()
1145 so = inp->inp_socket; in dccp_output()
1507 (inp->inp_socket->so_options & SO_DONTROUTE), NULL, NULL, in dccp_output()
1514 (inp->inp_socket->so_options & SO_DONTROUTE), 0, in dccp_output()
[all …]
H A Dtcp_subr.c620 win = sbspace(&tp->t_inpcb->inp_socket->so_rcv); in tcp_respond()
1023 so = tp->t_inpcb->inp_socket; in tcp_drop()
1057 so = inp->inp_socket; in tcp_close()
1249 struct socket *so = inp->inp_socket; in tcp_notify()
1754 so = tp->t_inpcb->inp_socket; in tcp_mss_from_peer()
1840 so = tp->t_inpcb->inp_socket; in tcp_established()
1869 so = tp->t_inpcb->inp_socket; in tcp_established()
H A Dportalgo.c163 so = inp->inp_socket; in pcb_getports()
287 req, inp->inp_socket, &sin, NULL); in check_suitable_port()
308 so = inp->inp_socket; in check_suitable_port()
H A Dtcp_vtw.c1911 vtw->reuse_port = !!(inp->inp_socket->so_options in vtw_add()
1913 vtw->reuse_addr = !!(inp->inp_socket->so_options in vtw_add()
1916 vtw->uid = inp->inp_socket->so_uidinfo->ui_uid; in vtw_add()
1983 vtw->reuse_port = !!(inp->inp_socket->so_options in vtw_add()
1985 vtw->reuse_addr = !!(inp->inp_socket->so_options in vtw_add()
1989 vtw->uid = inp->inp_socket->so_uidinfo->ui_uid; in vtw_add()
H A Ddccp_var.h155 #define dptosocket(dp) ((dp)->d_inpcb->inp_socket)
H A Dtcp_output.c255 so = inp->inp_socket; in tcp_segsize()
539 so = tp->t_inpcb->inp_socket; in tcp_output()
H A Dtcp_input.c469 so = tp->t_inpcb->inp_socket; in tcp_reass()
1471 so = inp->inp_socket; in tcp_input()
2947 so = tp->t_inpcb->inp_socket; in tcp_input()
H A Dip_input.c1500 struct socket *so = inp->inp_socket; in ip_savecontrol()
H A Dsctp_pcb.c1361 inp->ip_inp.inp.inp_socket = so; in sctp_inpcb_alloc()
1691 inp->ip_inp.inp.inp_socket = so; in sctp_inpcb_bind()
/netbsd-src/sys/netinet6/
H A Din6_pcb.c236 struct socket *so = inp->inp_socket; in in6pcb_bind_port()
282 if (t && (reuseport & t->inp_socket->so_options) == 0) in in6pcb_bind_port()
299 if (t && (reuseport & t->inp_socket->so_options) == 0) in in6pcb_bind_port()
351 inp->inp_socket->so_proto->pr_domain->dom_sa_any); in in6pcb_bind()
415 inp->inp_socket->so_type == SOCK_STREAM) in in6pcb_connect()
456 inp->inp_socket->so_options, NULL, &error, &_psref); in in6pcb_connect()
530 inp->inp_socket->so_proto->pr_domain->dom_sa_any); in in6pcb_connect()
544 if (ipsec_enabled && inp->inp_socket->so_type == SOCK_STREAM) in in6pcb_connect()
561 if (inp->inp_socket->so_state & SS_NOFDREF) in in6pcb_disconnect()
725 inp->inp_socket != NULL && in in6pcb_notify()
[all …]
H A Dudp6_usrreq.c180 inp->inp_socket->so_error = errno; in udp6_notify()
181 sorwakeup(inp->inp_socket); in udp6_notify()
182 sowwakeup(inp->inp_socket); in udp6_notify()
399 SOOPT_TIMESTAMP(inp->inp_socket->so_options)) { in udp6_sendup()
495 udp6_sendup(m, off, sin6tosa(src), inp->inp_socket); in udp6_realinput()
506 if ((inp->inp_socket->so_options & in udp6_realinput()
551 ret = inp->inp_overudp_cb(mp, off, inp->inp_socket, in udp6_realinput()
575 udp6_sendup(m, off, sin6tosa(src), inp->inp_socket); in udp6_realinput()
891 inp->inp_socket->so_options, NULL, in udp6_output()
924 *((const struct sockaddr_in6 *)inp->inp_socket in udp6_output()
[all...]
H A Draw_ip6.c144 SOOPT_TIMESTAMP(last->inp_socket->so_options)) in rip6_sbappendaddr()
149 if (sbappendaddr(&last->inp_socket->so_rcv, sa, n, opts) == 0) { in rip6_sbappendaddr()
150 soroverflow(last->inp_socket); in rip6_sbappendaddr()
155 sorwakeup(last->inp_socket); in rip6_sbappendaddr()
H A Dicmp6.c1991 SOOPT_TIMESTAMP(last->inp_socket->so_options)) in icmp6_rip6_input()
1995 if (sbappendaddr(&last->inp_socket->so_rcv, in icmp6_rip6_input()
1997 soroverflow(last->inp_socket); in icmp6_rip6_input()
2001 sorwakeup(last->inp_socket); in icmp6_rip6_input()
2018 SOOPT_TIMESTAMP(last->inp_socket->so_options)) in icmp6_rip6_input()
2022 if (sbappendaddr(&last->inp_socket->so_rcv, in icmp6_rip6_input()
2024 soroverflow(last->inp_socket); in icmp6_rip6_input()
2028 sorwakeup(last->inp_socket); in icmp6_rip6_input()
H A Dip6_input.c1069 struct socket *so = inp->inp_socket; in ip6_savecontrol()
1281 so = inp->inp_socket; in ip6_notify_pmtu()
H A Din6_src.c846 struct socket *so = inp->inp_socket; in in6pcb_set_port()
/netbsd-src/usr.bin/systat/
H A Dnetstat.c247 KREAD(inp->inp_socket, &sockb, sizeof (sockb)); in fetchnetstat4()
292 KREAD(inp->inp_socket, &sockb, sizeof (sockb)); in fetchnetstat6()
/netbsd-src/sys/netipsec/
H A Dipsec.c415 KASSERT(inp->inp_socket != NULL); in ipsec_getpolicybysock()
578 KASSERT(inp->inp_socket != NULL); in ipsec_checkpolicy()
1552 KASSERTMSG(inp == NULL || inp->inp_socket != NULL, in ipsec_hdrsiz()
/netbsd-src/usr.bin/netstat/
H A Dinet.c313 kread((u_long)inp->inp_socket, (char *)&sockb, sizeof(sockb)); in getpcblist_kmem()
H A Dinet6.c321 kread((u_long)inp->inp_socket, (char *)&sockb, in getpcblist_kmem()

12