Lines Matching refs:cs_ip
206 if (ip->ip_src.s_addr != cs->cs_ip.ip_src.s_addr ||
207 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr ||
208 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) {
226 if (ip->ip_src.s_addr == cs->cs_ip.ip_src.s_addr
227 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr
229 ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl])
271 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
278 if (((uint16_t *)ip)[0] != ((uint16_t *)&cs->cs_ip)[0] ||
279 ((uint16_t *)ip)[3] != ((uint16_t *)&cs->cs_ip)[3] ||
280 ((uint16_t *)ip)[4] != ((uint16_t *)&cs->cs_ip)[4] ||
283 memcmp(ip + 1, &cs->cs_ip + 1, (deltaS - 5) << 2)) ||
337 if (ip->ip_len != cs->cs_ip.ip_len &&
338 ntohs(cs->cs_ip.ip_len) == hlen)
353 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
361 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
369 deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id);
381 memcpy(&cs->cs_ip, ip, hlen);
420 memcpy(&cs->cs_ip, ip, hlen);
504 memcpy(&cs->cs_ip, ip, hlen);
507 *hdrp = (u_char *)&cs->cs_ip;
545 hlen = cs->cs_ip.ip_hl << 2;
546 th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
557 u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
564 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
583 DECODES(cs->cs_ip.ip_id)
585 cs->cs_ip.ip_id = htons(ntohs(cs->cs_ip.ip_id) + 1);
601 cs->cs_ip
604 bp = (uint16_t *)&cs->cs_ip;
605 cs->cs_ip.ip_sum = 0;
610 cs->cs_ip.ip_sum = ~ changes;
612 *hdrp = (u_char *)&cs->cs_ip;