Lines Matching refs:ip
65 #include <netinet/ip.h>
82 hook_p ip;
119 like to use a 'struct ip' type instead of a simple array of bytes. */
268 hookp = &priv->ip;
406 if (hook == priv->ip) { /* outgoing packet */
411 struct ip *ip;
417 ip = mtod(m, struct ip *);
418 if (ip->ip_p == IPPROTO_TCP) {
421 type = sl_compress_tcp(m, ip,
502 hook = priv->ip;
528 hook = priv->ip;
530 hook = priv->ip;
564 if (hook == priv->ip)
565 priv->ip = NULL;
593 struct ip *ip;
597 if (m->m_len < sizeof(*ip) && (m = m_pullup(m, sizeof(*ip))) == NULL)
599 ip = mtod(m, struct ip *);
600 if (!knownTCP && ip->ip_p != IPPROTO_TCP)
602 ihlen = ip->ip_hl << 2;
606 ip = mtod(m, struct ip *);
608 tcp = (struct tcphdr *)((u_char *)ip + ihlen);