Lines Matching refs:ip
48 static void sliplink_print(const u_char *, const struct ip *, u_int);
49 static void compressed_sl_print(const u_char *, const struct ip *, u_int, int);
56 register const struct ip *ip; in sl_if_print() local
65 ip = (struct ip *)(p + SLIP_HDRLEN); in sl_if_print()
68 sliplink_print(p, ip, length); in sl_if_print()
70 switch (IP_V(ip)) { in sl_if_print()
72 ip_print(gndo, (u_char *)ip, length); in sl_if_print()
76 ip6_print((u_char *)ip, length); in sl_if_print()
80 printf ("ip v%d", IP_V(ip)); in sl_if_print()
91 register const struct ip *ip; in sl_bsdos_if_print() local
100 ip = (struct ip *)(p + SLIP_HDRLEN); in sl_bsdos_if_print()
104 sliplink_print(p, ip, length); in sl_bsdos_if_print()
107 ip_print(gndo, (u_char *)ip, length); in sl_bsdos_if_print()
113 sliplink_print(register const u_char *p, register const struct ip *ip, in sliplink_print() argument
144 lastconn = ((struct ip *)&p[SLX_CHDR])->ip_p; in sliplink_print()
145 hlen = IP_HL(ip); in sliplink_print()
146 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]); in sliplink_print()
153 compressed_sl_print(&p[SLX_CHDR], ip, in sliplink_print()
191 compressed_sl_print(const u_char *chdr, const struct ip *ip, in compressed_sl_print() argument
235 hlen = IP_HL(ip); in compressed_sl_print()
236 hlen += TH_OFF((struct tcphdr *)&((int32_t *)ip)[hlen]); in compressed_sl_print()