Home
last modified time | relevance | path

Searched refs:so_options (Results 1 – 25 of 39) sorted by relevance

12

/f-stack/freebsd/kern/
H A Duipc_debug.c85 if (so_options & SO_DEBUG) { in db_print_sooptions()
93 if (so_options & SO_REUSEADDR) { in db_print_sooptions()
97 if (so_options & SO_KEEPALIVE) { in db_print_sooptions()
101 if (so_options & SO_DONTROUTE) { in db_print_sooptions()
105 if (so_options & SO_BROADCAST) { in db_print_sooptions()
113 if (so_options & SO_LINGER) { in db_print_sooptions()
117 if (so_options & SO_OOBINLINE) { in db_print_sooptions()
121 if (so_options & SO_REUSEPORT) { in db_print_sooptions()
129 if (so_options & SO_TIMESTAMP) { in db_print_sooptions()
141 if (so_options & SO_BINTIME) { in db_print_sooptions()
[all …]
H A Duipc_accf.c175 if ((so->so_options & SO_ACCEPTCONN) == 0) { in accept_filt_getopt()
211 if ((so->so_options & SO_ACCEPTCONN) == 0) { in accept_filt_setopt()
226 so->so_options &= ~SO_ACCEPTFILTER; in accept_filt_setopt()
235 if (sp->so_options & SO_ACCEPTFILTER) { in accept_filt_setopt()
239 sp->so_options &= ~SO_ACCEPTFILTER; in accept_filt_setopt()
281 if ((so->so_options & SO_ACCEPTCONN) == 0 || in accept_filt_setopt()
303 so->so_options |= SO_ACCEPTFILTER; in accept_filt_setopt()
H A Duipc_socket.c759 so->so_options = head->so_options & ~SO_ACCEPTCONN;
816 so->so_options = head->so_options;
969 so->so_options |= SO_ACCEPTCONN;
1487 so->so_options |= SO_DONTROUTE;
1515 so->so_options &= ~SO_DONTROUTE;
1724 so->so_options |= SO_DONTROUTE;
3028 so->so_options |= SO_LINGER;
3030 so->so_options &= ~SO_LINGER;
4266 xso->so_options = so->so_options;
4322 return (so->so_options);
[all …]
H A Dsys_socket.c153 if (error == EPIPE && (so->so_options & SO_NOSIGPIPE) == 0) { in soo_write()
656 if (error == EPIPE && (so->so_options & SO_NOSIGPIPE) == 0) { in soaio_process_job()
/f-stack/freebsd/netinet/
H A Dtcp_timer.c387 if (tp != NULL && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)) in tcp_timer_2msl()
457 inp->inp_socket->so_options & SO_KEEPALIVE) && in tcp_timer_keep()
490 if (inp->inp_socket->so_options & SO_DEBUG) in tcp_timer_keep()
509 if (tp != NULL && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)) in tcp_timer_keep()
600 if (tp != NULL && tp->t_inpcb->inp_socket->so_options & SO_DEBUG) in tcp_timer_persist()
882 if (tp != NULL && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)) in tcp_timer_rexmt()
H A Din_pcb.c850 int so_options; in inp_so_options() local
852 so_options = 0; in inp_so_options()
855 so_options |= SO_REUSEPORT_LB; in inp_so_options()
857 so_options |= SO_REUSEPORT; in inp_so_options()
859 so_options |= SO_REUSEADDR; in inp_so_options()
860 return (so_options); in inp_so_options()
920 int reuseport_lb = (so->so_options & SO_REUSEPORT_LB); in in_pcbbind_setup()
974 if ((so->so_options & in in_pcbbind_setup()
2688 int so_options; in in_pcbinshash_internal() local
2713 so_options = inp_so_options(inp); in in_pcbinshash_internal()
[all …]
H A Dtcp_usrreq.c141 #define TCPDEBUG2(req) if (tp && (so->so_options & SO_DEBUG)) \
207 if ((so->so_options & SO_LINGER) && so->so_linger == 0) in tcp_usr_attach()
496 if ((so->so_options & SO_NO_OFFLOAD) == 0) in tcp_usr_listen()
547 if ((so->so_options & SO_NO_OFFLOAD) == 0) in tcp6_usr_listen()
618 (so->so_options & SO_NO_OFFLOAD) == 0 && in tcp_usr_connect()
710 (so->so_options & SO_NO_OFFLOAD) == 0 && in tcp6_usr_connect()
732 (so->so_options & SO_NO_OFFLOAD) == 0 && in tcp6_usr_connect()
1507 so->so_options & SO_OOBINLINE || in tcp_usr_rcvoob()
2669 } else if ((so->so_options & SO_LINGER) && so->so_linger == 0) { in tcp_disconnect()
H A Dtcp_input.c938 (inp->inp_socket->so_options & SO_ACCEPTCONN) == 0)) { in tcp_input()
1027 if (so->so_options & SO_DEBUG) { in tcp_input()
1043 KASSERT(tp->t_state == TCPS_LISTEN || !(so->so_options & SO_ACCEPTCONN), in tcp_input()
1045 if (tp->t_state == TCPS_LISTEN && (so->so_options & SO_ACCEPTCONN)) { in tcp_input()
1338 if (so->so_options & SO_DEBUG) in tcp_input()
1856 if (so->so_options & SO_DEBUG) in tcp_do_segment()
1908 if (so->so_options & SO_DEBUG) in tcp_do_segment()
3077 !(so->so_options & SO_OOBINLINE)) { in tcp_do_segment()
3261 if (so->so_options & SO_DEBUG) in tcp_do_segment()
3307 if (so->so_options & SO_DEBUG) in tcp_do_segment()
[all …]
H A Dsctp_syscalls.c298 if (error == EPIPE && !(so->so_options & SO_NOSIGPIPE) &&
422 if (error == EPIPE && !(so->so_options & SO_NOSIGPIPE) &&
H A Dudp_usrreq.c348 inp->inp_socket->so_options & (SO_TIMESTAMP | SO_BINTIME)) { in udp_append()
627 if ((last->inp_socket->so_options & in udp_input()
1440 if (inp->inp_socket->so_options & SO_DONTROUTE) in udp_output()
1442 if (inp->inp_socket->so_options & SO_BROADCAST) in udp_output()
H A Dip_output.c1115 if ((so->so_options & SO_REUSEADDR) != 0) in ip_ctloutput()
1124 if ((so->so_options & SO_REUSEPORT) != 0) in ip_ctloutput()
1133 if ((so->so_options & SO_REUSEPORT_LB) != 0) in ip_ctloutput()
H A Draw_ip.c261 (so->so_options & (SO_TIMESTAMP | SO_BINTIME))) in rip_append()
457 int flags = ((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0) | in rip_output()
H A Dsctp_os_bsd.h421 o_flgs |= local_stcb->sctp_ep->sctp_socket->so_options & SO_DONTROUTE; \
H A Dtcp_output.c1383 if (so->so_options & SO_DEBUG) { in tcp_output()
1450 ((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0), in tcp_output()
1493 ((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0), 0, in tcp_output()
H A Dip_input.c1133 (((sp->so_options & SO_TIMESTAMP) && (sp->so_ts_clock == ct)) ? 1 : 0)
1142 if ((inp->inp_socket->so_options & SO_BINTIME) || in ip_savecontrol()
H A Dtcp_timewait.c344 tw->tw_so_options = so->so_options; in tcp_twstart()
H A Dip_divert.c486 ((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0) in div_output_outbound()
/f-stack/tools/compat/include/sys/
H A Dsocketvar.h95 int so_options; /* (b) from socket call, see socket.h */ member
231 #define SOLISTENING(sol) (((sol)->so_options & SO_ACCEPTCONN) != 0)
520 int16_t so_options; member
/f-stack/freebsd/sys/
H A Dsocketvar.h95 int so_options; /* (b) from socket call, see socket.h */ member
231 #define SOLISTENING(sol) (((sol)->so_options & SO_ACCEPTCONN) != 0)
520 int16_t so_options; member
/f-stack/freebsd/netinet6/
H A Din6_pcb.c126 int reuseport = (so->so_options & SO_REUSEPORT); in in6_pcbbind()
132 int reuseport_lb = (so->so_options & SO_REUSEPORT_LB); in in6_pcbbind()
141 if ((so->so_options & (SO_REUSEADDR|SO_REUSEPORT|SO_REUSEPORT_LB)) == 0) in in6_pcbbind()
173 if ((so->so_options & (SO_REUSEADDR|SO_REUSEPORT)) != 0) in in6_pcbbind()
179 if ((so->so_options & in in6_pcbbind()
H A Draw_ip6.c210 last->inp_socket->so_options & SO_TIMESTAMP) in rip6_input()
322 last->inp_socket->so_options & SO_TIMESTAMP) in rip6_input()
H A Dudp6_usrreq.c181 inp->inp_socket->so_options & SO_TIMESTAMP) in udp6_append()
427 if ((last->inp_socket->so_options & in udp6_input()
H A Dip6_output.c1644 if ((so->so_options & SO_REUSEADDR) != 0) in ip6_ctloutput()
1653 if ((so->so_options & SO_REUSEPORT) != 0) in ip6_ctloutput()
1662 if ((so->so_options & SO_REUSEPORT_LB) != 0) in ip6_ctloutput()
/f-stack/tools/netstat/
H A Dinet.c169 xso->so_options = so->so_options; in sotoxsocket()
181 if ((so->so_options & SO_ACCEPTCONN) != 0) { in sotoxsocket()
/f-stack/freebsd/netipsec/
H A Dkeysock.c313 so->so_options |= SO_USELOOPBACK; in key_attach()

12