Lines Matching refs:ip
59 #include <netinet/ip.h>
168 vj_compress_tcp(ip, mlen, comp, compress_cid, vjhdrp)
169 register struct ip *ip;
176 register u_int hlen = getip_hl(*ip);
190 if ((ip->ip_off & htons(0x3fff)) || mlen < 40)
193 th = (struct tcphdr *)&((int *)ip)[hlen];
204 if (ip->ip_src.s_addr != cs->cs_ip.ip_src.s_addr ||
205 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr ||
225 if (ip->ip_src.s_addr == cs->cs_ip.ip_src.s_addr
226 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr
278 if (((u_short *)ip)[0] != ((u_short *)&cs->cs_ip)[0] ||
279 ((u_short *)ip)[3] != ((u_short *)&cs->cs_ip)[3] ||
280 ((u_short *)ip)[4] != ((u_short *)&cs->cs_ip)[4] ||
282 (deltaS > 5 && BCMP(ip + 1, &cs->cs_ip + 1, (deltaS - 5) << 2)) ||
333 if (ip->ip_len != cs->cs_ip.ip_len &&
364 deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id);
376 BCOPY(ip, &cs->cs_ip, hlen);
388 cp = (u_char *)ip;
408 * a regular ip/tcp packet but with the 'conversation id' we hope
412 BCOPY(ip, &cs->cs_ip, hlen);
413 ip->ip_p = cs->cs_id;
440 register struct ip *ip;
442 ip = (struct ip *) buf;
443 hlen = getip_hl(*ip) << 2;
444 if (ip->ip_p >= MAX_STATES
446 || (hlen += getth_off(*((struct tcphdr *)&((char *)ip)[hlen])) << 2)
453 cs = &comp->rstate[comp->last_recv = ip->ip_p];
455 ip->ip_p = IPPROTO_TCP;
456 BCOPY(ip, &cs->cs_ip, hlen);
570 /* recompute the ip header checksum */