Home
last modified time | relevance | path

Searched refs:ipch (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/net/xfrm/
Dxfrm_ipcomp.c114 struct ip_comp_hdr *ipch; in ipcomp_input() local
122 ipch = (void *)skb->data; in ipcomp_input()
123 nexthdr = ipch->nexthdr; in ipcomp_input()
125 skb->transport_header = skb->network_header + sizeof(*ipch); in ipcomp_input()
126 __skb_pull(skb, sizeof(*ipch)); in ipcomp_input()
174 struct ip_comp_hdr *ipch; in ipcomp_output() local
192 ipch = ip_comp_hdr(skb); in ipcomp_output()
193 ipch->nexthdr = *skb_mac_header(skb); in ipcomp_output()
194 ipch->flags = 0; in ipcomp_output()
195 ipch->cpi = htons((u16 )ntohl(x->id.spi)); in ipcomp_output()
/linux-4.1.27/net/ipv4/
Dipcomp.c31 struct ip_comp_hdr *ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); in ipcomp4_err() local
44 spi = htonl(ntohs(ipch->cpi)); in ipcomp4_err()
Dip_vti.c253 struct ip_comp_hdr *ipch; in vti4_err() local
276 ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err()
277 spi = htonl(ntohs(ipch->cpi)); in vti4_err()
/linux-4.1.27/net/ipv6/
Dip6_vti.c562 struct ip_comp_hdr *ipch; in vti6_err() local
583 ipch = (struct ip_comp_hdr *)(skb->data + offset); in vti6_err()
584 spi = htonl(ntohs(ipch->cpi)); in vti6_err()