• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp-2.4.4/modules/

Lines Matching refs:cs

23  * Modified June 1993 by Paul Mackerras, paulus@cs.anu.edu.au,
179 register struct cstate *cs = comp->last_cs->cs_next;
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 ||
210 *(int *)th != ((int *)&cs->cs_ip)[getip_hl(cs->cs_ip)]) {
227 lcs = cs; cs = cs->cs_next;
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
231 && *(int *)th == ((int *)&cs->cs_ip)[getip_hl(cs->cs_ip)])
233 } while (cs != lastcs);
255 if (cs == lastcs)
258 lcs->cs_next = cs->cs_next;
259 cs->cs_next = lastcs->cs_next;
260 lastcs->cs_next = cs;
275 oth = (struct tcphdr *)&((int *)&cs->cs_ip)[hlen];
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 &&
338 ntohs(cs->cs_ip.ip_len) == hlen)
352 if (deltaS == deltaA && deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
360 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
368 deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id);
380 BCOPY(ip, &cs->cs_ip, hlen);
393 if (compress_cid == 0 || comp->last_xmit != cs->cs_id) {
394 comp->last_xmit = cs->cs_id;
398 *cp++ = cs->cs_id;
411 * Update connection state cs & send uncompressed packet (that is,
416 BCOPY(ip, &cs->cs_ip, hlen);
417 ip->ip_p = cs->cs_id;
418 comp->last_xmit = cs->cs_id;
443 register struct cstate *cs;
457 cs = &comp->rstate[comp->last_recv = ip->ip_p];
460 BCOPY(ip, &cs->cs_ip, hlen);
461 cs->cs_hlen = hlen;
485 register struct cstate *cs;
510 cs = &comp->rstate[comp->last_recv];
511 hlen = getip_hl(cs->cs_ip) << 2;
512 th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
523 register u_int32_t i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
534 tmp = ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
553 DECODES(cs->cs_ip.ip_id);
555 cs->cs_ip.ip_id = ntohs(cs->cs_ip.ip_id) + 1;
556 cs->cs_ip.ip_id = htons(cs->cs_ip.ip_id);
571 total_len += cs->cs_hlen - vjlen;
572 cs->cs_ip.ip_len = htons(total_len);
575 bp = (u_short *) &cs->cs_ip;
576 cs->cs_ip.ip_sum = 0;
581 cs->cs_ip.ip_sum = ~ changes;
583 *hdrp = (u_char *) &cs->cs_ip;
584 *hlenp = cs->cs_hlen;