Lines Matching refs:ip
54 static void sliplink_print(netdissect_options *, const u_char *, const struct ip *, u_int);
55 static void compressed_sl_print(netdissect_options *, const u_char *, const struct ip *, u_int, int…
63 register const struct ip *ip; in sl_if_print() local
72 ip = (struct ip *)(p + SLIP_HDRLEN); in sl_if_print()
75 sliplink_print(ndo, p, ip, length); in sl_if_print()
77 switch (IP_V(ip)) { in sl_if_print()
79 ip_print(ndo, (u_char *)ip, length); in sl_if_print()
82 ip6_print(ndo, (u_char *)ip, length); in sl_if_print()
85 ND_PRINT((ndo, "ip v%d", IP_V(ip))); in sl_if_print()
97 register const struct ip *ip; in sl_bsdos_if_print() local
106 ip = (struct ip *)(p + SLIP_HDRLEN); in sl_bsdos_if_print()
110 sliplink_print(ndo, p, ip, length); in sl_bsdos_if_print()
113 ip_print(ndo, (u_char *)ip, length); in sl_bsdos_if_print()
120 register const u_char *p, register const struct ip *ip, in sliplink_print() argument
150 lastconn = ((struct ip *)&p[SLX_CHDR])->ip_p; in sliplink_print()
151 hlen = IP_HL(ip); in sliplink_print()
152 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]); in sliplink_print()
159 compressed_sl_print(ndo, &p[SLX_CHDR], ip, in sliplink_print()
200 const u_char *chdr, const struct ip *ip, in compressed_sl_print() argument
244 hlen = IP_HL(ip); in compressed_sl_print()
245 hlen += TH_OFF((struct tcphdr *)&((int32_t *)ip)[hlen]); in compressed_sl_print()