Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:ip

40 #include "ip.h"
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;
65 ip = (struct ip *)(p + SLIP_HDRLEN);
68 sliplink_print(p, ip, length);
70 switch (IP_V(ip)) {
72 ip_print(gndo, (u_char *)ip, length);
76 ip6_print((u_char *)ip, length);
80 printf ("ip v%d", IP_V(ip));
91 register const struct ip *ip;
100 ip = (struct ip *)(p + SLIP_HDRLEN);
104 sliplink_print(p, ip, length);
107 ip_print(gndo, (u_char *)ip, length);
113 sliplink_print(register const u_char *p, register const struct ip *ip,
135 printf("ip %d: ", length + SLIP_HDRLEN);
140 * The connection id is stored in the IP protocol field.
142 * has restored the IP header copy to IPPROTO_TCP.
144 lastconn = ((struct ip *)&p[SLX_CHDR])->ip_p;
145 hlen = IP_HL(ip);
146 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]);
153 compressed_sl_print(&p[SLX_CHDR], ip,
191 compressed_sl_print(const u_char *chdr, const struct ip *ip,
231 * 'hlen' is the length of the uncompressed TCP/IP header (in words).
235 hlen = IP_HL(ip);
236 hlen += TH_OFF((struct tcphdr *)&((int32_t *)ip)[hlen]);