Lines Matching refs:ph
41 struct ip_beet_phdr *ph; in xfrm4_beet_output() local
60 ph = (struct ip_beet_phdr *) in xfrm4_beet_output()
68 ph->padlen = 4 - (optlen & 4); in xfrm4_beet_output()
69 ph->hdrlen = optlen / 8; in xfrm4_beet_output()
70 ph->nexthdr = top_iph->protocol; in xfrm4_beet_output()
71 if (ph->padlen) in xfrm4_beet_output()
72 memset(ph + 1, IPOPT_NOP, ph->padlen); in xfrm4_beet_output()
91 struct ip_beet_phdr *ph; in xfrm4_beet_input() local
94 if (!pskb_may_pull(skb, sizeof(*ph))) in xfrm4_beet_input()
97 ph = (struct ip_beet_phdr *)skb->data; in xfrm4_beet_input()
99 phlen = sizeof(*ph) + ph->padlen; in xfrm4_beet_input()
100 optlen = ph->hdrlen * 8 + (IPV4_BEET_PHMAXLEN - phlen); in xfrm4_beet_input()
104 XFRM_MODE_SKB_CB(skb)->protocol = ph->nexthdr; in xfrm4_beet_input()