MCPcopy Create free account
hub / github.com/F-Stack/f-stack / inp_so_options

Function inp_so_options

freebsd/netinet/in_pcb.c:943–957  ·  view source on GitHub ↗

* Return cached socket options. */

Source from the content-addressed store, hash-verified

941 * Return cached socket options.
942 */
943int
944inp_so_options(const struct inpcb *inp)
945{
946 int so_options;
947
948 so_options = 0;
949
950 if ((inp->inp_flags2 & INP_REUSEPORT_LB) != 0)
951 so_options |= SO_REUSEPORT_LB;
952 if ((inp->inp_flags2 & INP_REUSEPORT) != 0)
953 so_options |= SO_REUSEPORT;
954 if ((inp->inp_flags2 & INP_REUSEADDR) != 0)
955 so_options |= SO_REUSEADDR;
956 return (so_options);
957}
958#endif /* INET || INET6 */
959
960/*

Callers 3

in_pcbbind_setupFunction · 0.85
in_pcbinshash_internalFunction · 0.85
in6_pcbbindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected