Lines Matching refs:ip
55 static void sliplink_print(netdissect_options *, const u_char *, const struct ip *, u_int);
56 static void compressed_sl_print(netdissect_options *, const u_char *, const struct ip *, u_int, int…
64 register const struct ip *ip; in sl_if_print() local
74 ip = (const struct ip *)(p + SLIP_HDRLEN); in sl_if_print()
77 sliplink_print(ndo, p, ip, length); in sl_if_print()
84 switch (IP_V(ip)) { in sl_if_print()
86 ip_print(ndo, (const u_char *)ip, length); in sl_if_print()
89 ip6_print(ndo, (const u_char *)ip, length); in sl_if_print()
92 ND_PRINT((ndo, "ip v%d", IP_V(ip))); in sl_if_print()
104 register const struct ip *ip; in sl_bsdos_if_print() local
113 ip = (const struct ip *)(p + SLIP_HDRLEN); in sl_bsdos_if_print()
117 sliplink_print(ndo, p, ip, length); in sl_bsdos_if_print()
120 ip_print(ndo, (const u_char *)ip, length); in sl_bsdos_if_print()
127 register const u_char *p, register const struct ip *ip, in sliplink_print() argument
157 lastconn = ((const struct ip *)&p[SLX_CHDR])->ip_p; in sliplink_print()
158 hlen = IP_HL(ip); in sliplink_print()
159 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]); in sliplink_print()
166 compressed_sl_print(ndo, &p[SLX_CHDR], ip, in sliplink_print()
207 const u_char *chdr, const struct ip *ip, in compressed_sl_print() argument
251 hlen = IP_HL(ip); in compressed_sl_print()
252 hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]); in compressed_sl_print()