Lines Matching refs:icp
217 * icp and isize are the original packet.
219 * cpp is initially a pointer to icp. If the copy is used,
224 slhc_compress(struct slcompress *comp, unsigned char *icp, int isize,
247 ip = (struct iphdr *) icp;
458 memcpy(cp+deltaS,icp+hlen,isize-hlen);
476 memcpy(ocp, icp, isize);
485 slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize)
493 unsigned char *cp = icp;
595 len = isize - (cp - icp);
602 memmove(icp + hdrlen, cp, len - hdrlen);
604 cp = icp;
613 put_unaligned(ip_fast_csum(icp, ip->ihl),
614 &((struct iphdr *)icp)->check);
632 slhc_remember(struct slcompress *comp, unsigned char *icp, int isize)
645 ihl = icp[0] & 0xf;
651 index = icp[9];
652 icp[9] = IPPROTO_TCP;
654 if (ip_fast_csum(icp, ihl)) {
667 memcpy(&cs->cs_ip,icp,20);
668 memcpy(&cs->cs_tcp,icp + ihl*4,20);
670 memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4);
672 memcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4);
710 slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize)
716 slhc_compress(struct slcompress *comp, unsigned char *icp, int isize,
724 slhc_remember(struct slcompress *comp, unsigned char *icp, int isize)