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

Function db_print_inpflags

freebsd/netinet/in_pcb.c:3189–3307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3187}
3188
3189static void
3190db_print_inpflags(int inp_flags)
3191{
3192 int comma;
3193
3194 comma = 0;
3195 if (inp_flags & INP_RECVOPTS) {
3196 db_printf("%sINP_RECVOPTS", comma ? ", " : "");
3197 comma = 1;
3198 }
3199 if (inp_flags & INP_RECVRETOPTS) {
3200 db_printf("%sINP_RECVRETOPTS", comma ? ", " : "");
3201 comma = 1;
3202 }
3203 if (inp_flags & INP_RECVDSTADDR) {
3204 db_printf("%sINP_RECVDSTADDR", comma ? ", " : "");
3205 comma = 1;
3206 }
3207 if (inp_flags & INP_ORIGDSTADDR) {
3208 db_printf("%sINP_ORIGDSTADDR", comma ? ", " : "");
3209 comma = 1;
3210 }
3211 if (inp_flags & INP_HDRINCL) {
3212 db_printf("%sINP_HDRINCL", comma ? ", " : "");
3213 comma = 1;
3214 }
3215 if (inp_flags & INP_HIGHPORT) {
3216 db_printf("%sINP_HIGHPORT", comma ? ", " : "");
3217 comma = 1;
3218 }
3219 if (inp_flags & INP_LOWPORT) {
3220 db_printf("%sINP_LOWPORT", comma ? ", " : "");
3221 comma = 1;
3222 }
3223 if (inp_flags & INP_ANONPORT) {
3224 db_printf("%sINP_ANONPORT", comma ? ", " : "");
3225 comma = 1;
3226 }
3227 if (inp_flags & INP_RECVIF) {
3228 db_printf("%sINP_RECVIF", comma ? ", " : "");
3229 comma = 1;
3230 }
3231 if (inp_flags & INP_MTUDISC) {
3232 db_printf("%sINP_MTUDISC", comma ? ", " : "");
3233 comma = 1;
3234 }
3235 if (inp_flags & INP_RECVTTL) {
3236 db_printf("%sINP_RECVTTL", comma ? ", " : "");
3237 comma = 1;
3238 }
3239 if (inp_flags & INP_DONTFRAG) {
3240 db_printf("%sINP_DONTFRAG", comma ? ", " : "");
3241 comma = 1;
3242 }
3243 if (inp_flags & INP_RECVTOS) {
3244 db_printf("%sINP_RECVTOS", comma ? ", " : "");
3245 comma = 1;
3246 }

Callers 1

db_print_inpcbFunction · 0.85

Calls 1

db_printfFunction · 0.85

Tested by

no test coverage detected