Home
last modified time | relevance | path

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

/dflybsd-src/sys/netinet/
H A Draw_ip.c168 lwkt_gettoken(&last->inp_socket->so_rcv.ssb_token); in rip_input()
170 last->inp_socket->so_options & SO_TIMESTAMP) in rip_input()
172 if (ssb_appendaddr(&last->inp_socket->so_rcv, in rip_input()
178 soroverflow(last->inp_socket); in rip_input()
180 sorwakeup(last->inp_socket); in rip_input()
182 lwkt_reltoken(&last->inp_socket->so_rcv.ssb_token); in rip_input()
194 last->inp_socket->so_options & SO_TIMESTAMP) in rip_input()
196 lwkt_gettoken(&last->inp_socket->so_rcv.ssb_token); in rip_input()
197 if (ssb_appendaddr(&last->inp_socket->so_rcv, in rip_input()
202 soroverflow(last->inp_socket); in rip_input()
[all …]
H A Din_pcb.c286 inp->inp_socket = so; in in_pcballoc()
538 if (t && t->inp_socket != so && in in_pcbbind_laddrport_check()
539 (so->so_cred->cr_uid != t->inp_socket->so_cred->cr_uid)) in in_pcbbind_laddrport_check()
553 if (t && t->inp_socket != so && in in_pcbbind_laddrport_check()
554 (reuseport & t->inp_socket->so_options) == 0 && in in_pcbbind_laddrport_check()
555 (t->inp_socket->so_state & SS_ACCEPTMECH) == 0) in in_pcbbind_laddrport_check()
565 const struct socket *so = inp->inp_socket; in in_pcbsrcaddr_check()
630 const struct socket *so = inp->inp_socket; in in_pcbbind()
764 if (inp->inp_socket && inp->inp_socket->so_cred) in in_pcblookup_localremote()
765 pscan = inp->inp_socket->so_cred->cr_prison; in in_pcblookup_localremote()
[all …]
H A Dudp_usrreq.c365 if (!(last->inp_socket->so_options & in udp_mcast_input()
630 (inp->inp_socket->so_options & SO_TIMESTAMP)) in udp_input()
634 lwkt_gettoken(&inp->inp_socket->so_rcv.ssb_token); in udp_input()
635 if (ssb_appendaddr(&inp->inp_socket->so_rcv, in udp_input()
637 lwkt_reltoken(&inp->inp_socket->so_rcv.ssb_token); in udp_input()
639 soroverflow(inp->inp_socket); in udp_input()
642 lwkt_reltoken(&inp->inp_socket->so_rcv.ssb_token); in udp_input()
643 sorwakeup(inp->inp_socket); in udp_input()
666 last->inp_socket->so_options & SO_TIMESTAMP) in udp_append()
670 lwkt_gettoken(&last->inp_socket->so_rcv.ssb_token); in udp_append()
[all …]
H A Dtcp_timer.c294 if (tp && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)) in tcp_timer_2msl_handler()
333 (tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE)) && in tcp_timer_keep_handler()
365 if (tp->t_inpcb->inp_socket->so_options & SO_DEBUG) in tcp_timer_keep_handler()
375 if (tp && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)) in tcp_timer_keep_handler()
434 if (tp && tp->t_inpcb->inp_socket->so_options & SO_DEBUG) in tcp_timer_persist_handler()
664 if (tp && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)) in tcp_timer_rexmt_handler()
H A Dtcp_subr.c580 win = ssb_space(&inp->inp_socket->so_rcv); in tcp_respond()
689 if (tp == NULL || (inp->inp_socket->so_options & SO_DEBUG)) in tcp_respond()
798 struct socket *so = tp->t_inpcb->inp_socket; in tcp_drop()
852 struct socket *so = inp->inp_socket; in tcp_close()
1052 if (inp_inh != NULL && inp_inh->inp_socket != NULL) { in tcp_close()
1058 soinherit(so, inp_inh->inp_socket); in tcp_close()
1291 if (inp->inp_socket) in tcp_pcblist()
1292 sotoxsocket(inp->inp_socket, &xt.xt_socket); in tcp_pcblist()
1347 if (inp == NULL || inp->inp_socket == NULL) { in tcp_getcred()
1349 } else if (inp->inp_socket->so_cred != NULL) { in tcp_getcred()
[all …]
H A Dtcp_usrreq.c1031 struct socket *so = inp->inp_socket; in tcp_connect_oncpu()
1064 if (!(inp->inp_socket->so_options & SO_DONTROUTE) && /*XXX*/ in tcp_connect_oncpu()
1212 KKASSERT(inp->inp_socket == so); in tcp_connect()
1394 struct socket *so = inp->inp_socket; in tcp6_connect_oncpu()
1837 struct socket *so = tp->t_inpcb->inp_socket; in tcp_disconnect()
1891 soisdisconnected(tp->t_inpcb->inp_socket); in tcp_usrclosed()
H A Din_pcb.h195 struct socket *inp_socket; /* back pointer to socket */ member
255 #define in6p_socket inp_socket /* for KAME src sync over BSD*'s */
H A Dtcp_input.c379 struct socket *so = tp->t_inpcb->inp_socket; in tcp_reass()
935 so = inp->inp_socket; in tcp_input()
2625 if (tp == NULL || (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)) in tcp_input()
2648 if (tp == NULL || (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)) in tcp_input()
2978 so = inp->inp_socket; in tcp_rmx_mss()
H A Dip_divert.c237 sa = inp->inp_socket; in div_packet()
H A Dtcp_sack.c648 struct socket *so = tp->t_inpcb->inp_socket; in tcp_sack_nextseg()
H A Dtcp_output.c176 struct socket *so = inp->inp_socket; in tcp_output()
H A Dip_input.c2196 if (inp->inp_socket->so_options & SO_TIMESTAMP) { in ip_savecontrol()
/dflybsd-src/sys/netinet6/
H A Din6_pcb.c107 struct socket *so = inp->inp_socket; in in6_pcbbind()
222 t->inp_socket->so_cred->cr_uid)) { in in6_pcbbind()
236 if (t && (reuseport & t->inp_socket->so_options) == 0) { in in6_pcbbind()
389 if (inp->inp_socket->so_state & SS_NOFDREF) in in6_pcbdisconnect()
396 struct socket *so = inp->inp_socket; in in6_pcbdetach()
587 inp->inp_socket != NULL && in in6_pcbnotify()
593 inp->inp_socket == 0 || in in6_pcbnotify()
657 if (inp->inp_socket && inp->inp_socket->so_cred) in in6_pcblookup_local()
658 pscan = inp->inp_socket->so_cred->cr_prison; in in6_pcblookup_local()
839 if (inp->inp_socket == NULL || in in6_pcblookup_hash()
[all …]
H A Dudp6_usrreq.c475 if (!inp || !inp->inp_socket) { in udp6_getcred()
479 error = SYSCTL_OUT(req, inp->inp_socket->so_cred, in udp6_getcred()
H A Din6_src.c412 struct socket *so = inp->inp_socket; in in6_pcbsetlport()
H A Dip6_input.c1333 so = in6p->inp_socket; in ip6_notify_pmtu()
H A Dicmp6.c111 #define in6p_socket inp_socket
/dflybsd-src/sys/net/ipfw3_layer4/
H A Dip_fw3_layer4.c130 if (pcb == NULL || pcb->inp_socket == NULL) { in ip_fw3_match_guid()
136 return !socheckuid(pcb->inp_socket, uid); in ip_fw3_match_guid()
139 return groupmember(uid, pcb->inp_socket->so_cred); in ip_fw3_match_guid()
/dflybsd-src/sys/net/ipfw/
H A Dip_fw2.c3056 if (pcb == NULL || pcb->inp_socket == NULL) in ipfw_match_uid()
3061 return !socheckuid(pcb->inp_socket, uid); in ipfw_match_uid()
3064 return groupmember(uid, pcb->inp_socket->so_cred); in ipfw_match_uid()
/dflybsd-src/sys/net/ip_mroute/
H A Dip_mroute.c2193 inp->inp_socket->so_options & SO_TIMESTAMP) {
/dflybsd-src/sys/net/pf/
H A Dpf.c3495 pd->lookup.uid = inp->inp_socket->so_cred->cr_uid; in pf_socket_lookup()
3496 pd->lookup.gid = inp->inp_socket->so_cred->cr_groups[0]; in pf_socket_lookup()