Lines Matching defs:ip
33 #include "ip.h"
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;
74 ip = (const struct ip *)(p + SLIP_HDRLEN);
77 sliplink_print(ndo, p, ip, length);
84 switch (IP_V(ip)) {
86 ip_print(ndo, (const u_char *)ip, length);
89 ip6_print(ndo, (const u_char *)ip, length);
92 ND_PRINT((ndo, "ip v%d", IP_V(ip)));
104 register const struct ip *ip;
113 ip = (const struct ip *)(p + SLIP_HDRLEN);
117 sliplink_print(ndo, p, ip, length);
120 ip_print(ndo, (const u_char *)ip, length);
127 register const u_char *p, register const struct ip *ip,
161 ND_PRINT((ndo, "ip %d: ", length + SLIP_HDRLEN));
166 * The connection id is stored in the IP protocol field.
168 * has restored the IP header copy to IPPROTO_TCP.
170 lastconn = ((const struct ip *)&p[SLX_CHDR])->ip_p;
176 hlen = IP_HL(ip);
177 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]);
187 compressed_sl_print(ndo, &p[SLX_CHDR], ip,
228 const u_char *chdr, const struct ip *ip,
268 * 'hlen' is the length of the uncompressed TCP/IP header (in words).
272 hlen = IP_HL(ip);
273 hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]);