Lines Matching refs:ip
63 #include <netinet/ip.h>
172 vj_compress_tcp(ip, mlen, comp, compress_cid, vjhdrp)
173 register struct ip *ip;
180 register u_int hlen = getip_hl(*ip);
194 if ((ip->ip_off & htons(0x3fff)) || mlen < 40)
197 th = (struct tcphdr *)&((int *)ip)[hlen];
208 if (ip->ip_src.s_addr != cs->cs_ip.ip_src.s_addr ||
209 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr ||
229 if (ip->ip_src.s_addr == cs->cs_ip.ip_src.s_addr
230 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr
282 if (((u_short *)ip)[0] != ((u_short *)&cs->cs_ip)[0] ||
283 ((u_short *)ip)[3] != ((u_short *)&cs->cs_ip)[3] ||
284 ((u_short *)ip)[4] != ((u_short *)&cs->cs_ip)[4] ||
286 (deltaS > 5 && BCMP(ip + 1, &cs->cs_ip + 1, (deltaS - 5) << 2)) ||
337 if (ip->ip_len != cs->cs_ip.ip_len &&
368 deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id);
380 BCOPY(ip, &cs->cs_ip, hlen);
392 cp = (u_char *)ip;
412 * a regular ip/tcp packet but with the 'conversation id' we hope
416 BCOPY(ip, &cs->cs_ip, hlen);
417 ip->ip_p = cs->cs_id;
444 register struct ip *ip;
446 ip = (struct ip *) buf;
447 hlen = getip_hl(*ip) << 2;
448 if (ip->ip_p >= MAX_STATES
450 || (hlen += getth_off(*((struct tcphdr *)&((char *)ip)[hlen])) << 2)
457 cs = &comp->rstate[comp->last_recv = ip->ip_p];
459 ip->ip_p = IPPROTO_TCP;
460 BCOPY(ip, &cs->cs_ip, hlen);
574 /* recompute the ip header checksum */