Lines Matching refs:inp
208 struct xinpcb *inp; in protopr() local
253 inp = &tp->xt_inp; in protopr()
261 if (inp->inp_gencnt > oxig->xig_gen) in protopr()
274 inp = &tp->xt_inp; in protopr()
276 inp = (struct xinpcb *)xig; in protopr()
278 so = &inp->xi_socket; in protopr()
285 if (inp->inp_gencnt > oxig->xig_gen) in protopr()
288 if ((af1 == AF_INET && (inp->inp_vflag & INP_IPV4) == 0) in protopr()
290 || (af1 == AF_INET6 && (inp->inp_vflag & INP_IPV6) == 0) in protopr()
292 || (af1 == AF_UNSPEC && ((inp->inp_vflag & INP_IPV4) == 0 in protopr()
294 && (inp->inp_vflag & INP_IPV6) == 0 in protopr()
303 inet_lnaof(inp->inp_laddr) == INADDR_ANY) in protopr()
306 IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_laddr)) in protopr()
309 (((inp->inp_vflag & INP_IPV4) != 0 && in protopr()
310 inet_lnaof(inp->inp_laddr) == INADDR_ANY) in protopr()
312 || ((inp->inp_vflag & INP_IPV6) != 0 && in protopr()
313 IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_laddr)) in protopr()
398 (u_long)inp->inp_ppcb); in protopr()
405 if ((inp->inp_vflag & INP_IPV6) != 0) in protopr()
406 vchar = ((inp->inp_vflag & INP_IPV4) != 0) ? in protopr()
410 vchar = ((inp->inp_vflag & INP_IPV4) != 0) ? in protopr()
438 if (inp->inp_vflag & INP_IPV4) { in protopr()
439 inetprint("local", &inp->inp_laddr, in protopr()
440 (int)inp->inp_lport, name, 1, af1); in protopr()
442 inetprint("remote", &inp->inp_faddr, in protopr()
443 (int)inp->inp_fport, name, 1, af1); in protopr()
450 if (inp->inp_vflag & INP_IPV6) { in protopr()
451 inet6print("local", &inp->in6p_laddr, in protopr()
452 (int)inp->inp_lport, name, 1); in protopr()
454 inet6print("remote", &inp->in6p_faddr, in protopr()
455 (int)inp->inp_fport, name, 1); in protopr()
458 } else if (inp->inp_flags & INP_ANONPORT) { in protopr()
460 if (inp->inp_vflag & INP_IPV4) { in protopr()
461 inetprint("local", &inp->inp_laddr, in protopr()
462 (int)inp->inp_lport, name, 1, af1); in protopr()
464 inetprint("remote", &inp->inp_faddr, in protopr()
465 (int)inp->inp_fport, name, 0, af1); in protopr()
472 if (inp->inp_vflag & INP_IPV6) { in protopr()
473 inet6print("local", &inp->in6p_laddr, in protopr()
474 (int)inp->inp_lport, name, 1); in protopr()
476 inet6print("remote", &inp->in6p_faddr, in protopr()
477 (int)inp->inp_fport, name, 0); in protopr()
482 if (inp->inp_vflag & INP_IPV4) { in protopr()
483 inetprint("local", &inp->inp_laddr, in protopr()
484 (int)inp->inp_lport, name, 0, af1); in protopr()
486 inetprint("remote", &inp->inp_faddr, in protopr()
487 (int)inp->inp_fport, name, in protopr()
488 inp->inp_lport != inp->inp_fport, in protopr()
496 if (inp->inp_vflag & INP_IPV6) { in protopr()
497 inet6print("local", &inp->in6p_laddr, in protopr()
498 (int)inp->inp_lport, name, 0); in protopr()
500 inet6print("remote", &inp->in6p_faddr, in protopr()
501 (int)inp->inp_fport, name, in protopr()
502 inp->inp_lport != inp->inp_fport); in protopr()
556 inp->inp_flowid, in protopr()
557 inp->inp_flowtype); in protopr()
1469 inetname(struct in_addr *inp) in inetname() argument
1480 if (!numeric_addr && inp->s_addr != INADDR_ANY) { in inetname()
1481 int net = inet_netof(*inp); in inetname()
1482 int lna = inet_lnaof(*inp); in inetname()
1490 hp = gethostbyaddr((char *)inp, sizeof (*inp), AF_INET); in inetname()
1498 if (inp->s_addr == INADDR_ANY) in inetname()
1503 inp->s_addr = ntohl(inp->s_addr); in inetname()
1506 C(inp->s_addr >> 24), C(inp->s_addr >> 16), in inetname()
1507 C(inp->s_addr >> 8), C(inp->s_addr)); in inetname()