Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_debug.c
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | db_print_sotype(short so_type) | ||||
default: | default: | ||||
db_printf("unknown"); | db_printf("unknown"); | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
db_print_sooptions(short so_options) | db_print_sooptions(int so_options) | ||||
{ | { | ||||
int comma; | int comma; | ||||
comma = 0; | comma = 0; | ||||
if (so_options & SO_DEBUG) { | if (so_options & SO_DEBUG) { | ||||
db_printf("%sSO_DEBUG", comma ? ", " : ""); | db_printf("%sSO_DEBUG", comma ? ", " : ""); | ||||
comma = 1; | comma = 1; | ||||
} | } | ||||
Show All 26 Lines | if (so_options & SO_LINGER) { | ||||
comma = 1; | comma = 1; | ||||
} | } | ||||
if (so_options & SO_OOBINLINE) { | if (so_options & SO_OOBINLINE) { | ||||
db_printf("%sSO_OOBINLINE", comma ? ", " : ""); | db_printf("%sSO_OOBINLINE", comma ? ", " : ""); | ||||
comma = 1; | comma = 1; | ||||
} | } | ||||
if (so_options & SO_REUSEPORT) { | if (so_options & SO_REUSEPORT) { | ||||
db_printf("%sSO_REUSEPORT", comma ? ", " : ""); | db_printf("%sSO_REUSEPORT", comma ? ", " : ""); | ||||
comma = 1; | |||||
} | |||||
if (so_options & SO_REUSEPORT_LB) { | |||||
db_printf("%sSO_REUSEPORT_LB", comma ? ", " : ""); | |||||
comma = 1; | comma = 1; | ||||
} | } | ||||
if (so_options & SO_TIMESTAMP) { | if (so_options & SO_TIMESTAMP) { | ||||
db_printf("%sSO_TIMESTAMP", comma ? ", " : ""); | db_printf("%sSO_TIMESTAMP", comma ? ", " : ""); | ||||
comma = 1; | comma = 1; | ||||
} | } | ||||
if (so_options & SO_NOSIGPIPE) { | if (so_options & SO_NOSIGPIPE) { | ||||
db_printf("%sSO_NOSIGPIPE", comma ? ", " : ""); | db_printf("%sSO_NOSIGPIPE", comma ? ", " : ""); | ||||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |