top_iph 127 net/ipv4/ah4.c struct iphdr *top_iph = ip_hdr(skb); top_iph 135 net/ipv4/ah4.c top_iph->tos = iph->tos; top_iph 136 net/ipv4/ah4.c top_iph->ttl = iph->ttl; top_iph 137 net/ipv4/ah4.c top_iph->frag_off = iph->frag_off; top_iph 138 net/ipv4/ah4.c if (top_iph->ihl != 5) { top_iph 139 net/ipv4/ah4.c top_iph->daddr = iph->daddr; top_iph 140 net/ipv4/ah4.c memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); top_iph 157 net/ipv4/ah4.c struct iphdr *iph, *top_iph; top_iph 192 net/ipv4/ah4.c top_iph = ip_hdr(skb); top_iph 194 net/ipv4/ah4.c iph->tos = top_iph->tos; top_iph 195 net/ipv4/ah4.c iph->ttl = top_iph->ttl; top_iph 196 net/ipv4/ah4.c iph->frag_off = top_iph->frag_off; top_iph 198 net/ipv4/ah4.c if (top_iph->ihl != 5) { top_iph 199 net/ipv4/ah4.c iph->daddr = top_iph->daddr; top_iph 200 net/ipv4/ah4.c memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); top_iph 201 net/ipv4/ah4.c err = ip_clear_mutable_options(top_iph, &top_iph->daddr); top_iph 209 net/ipv4/ah4.c top_iph->tos = 0; top_iph 210 net/ipv4/ah4.c top_iph->tot_len = htons(skb->len); top_iph 211 net/ipv4/ah4.c top_iph->frag_off = 0; top_iph 212 net/ipv4/ah4.c top_iph->ttl = 0; top_iph 213 net/ipv4/ah4.c top_iph->check = 0; top_iph 251 net/ipv4/ah4.c top_iph->tos = iph->tos; top_iph 252 net/ipv4/ah4.c top_iph->ttl = iph->ttl; top_iph 253 net/ipv4/ah4.c top_iph->frag_off = iph->frag_off; top_iph 254 net/ipv4/ah4.c if (top_iph->ihl != 5) { top_iph 255 net/ipv4/ah4.c top_iph->daddr = iph->daddr; top_iph 256 net/ipv4/ah4.c memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); top_iph 295 net/ipv6/ah6.c struct ipv6hdr *top_iph = ipv6_hdr(skb); top_iph 308 net/ipv6/ah6.c memcpy(top_iph, iph_base, IPV6HDR_BASELEN); top_iph 312 net/ipv6/ah6.c memcpy(&top_iph->saddr, iph_ext, extlen); top_iph 314 net/ipv6/ah6.c memcpy(&top_iph->daddr, iph_ext, extlen); top_iph 334 net/ipv6/ah6.c struct ipv6hdr *top_iph; top_iph 376 net/ipv6/ah6.c top_iph = ipv6_hdr(skb); top_iph 377 net/ipv6/ah6.c top_iph->payload_len = htons(skb->len - sizeof(*top_iph)); top_iph 385 net/ipv6/ah6.c memcpy(iph_base, top_iph, IPV6HDR_BASELEN); top_iph 389 net/ipv6/ah6.c memcpy(iph_ext, &top_iph->saddr, extlen); top_iph 391 net/ipv6/ah6.c memcpy(iph_ext, &top_iph->daddr, extlen); top_iph 393 net/ipv6/ah6.c err = ipv6_clear_mutable_options(top_iph, top_iph 395 net/ipv6/ah6.c sizeof(*top_iph), top_iph 403 net/ipv6/ah6.c top_iph->priority = 0; top_iph 404 net/ipv6/ah6.c top_iph->flow_lbl[0] = 0; top_iph 405 net/ipv6/ah6.c top_iph->flow_lbl[1] = 0; top_iph 406 net/ipv6/ah6.c top_iph->flow_lbl[2] = 0; top_iph 407 net/ipv6/ah6.c top_iph->hop_limit = 0; top_iph 441 net/ipv6/ah6.c memcpy(top_iph, iph_base, IPV6HDR_BASELEN); top_iph 445 net/ipv6/ah6.c memcpy(&top_iph->saddr, iph_ext, extlen); top_iph 447 net/ipv6/ah6.c memcpy(&top_iph->daddr, iph_ext, extlen); top_iph 145 net/xfrm/xfrm_output.c struct iphdr *top_iph; top_iph 154 net/xfrm/xfrm_output.c (XFRM_MODE_SKB_CB(skb)->ihl - sizeof(*top_iph))); top_iph 159 net/xfrm/xfrm_output.c skb->transport_header = skb->network_header + sizeof(*top_iph); top_iph 165 net/xfrm/xfrm_output.c top_iph = ip_hdr(skb); top_iph 173 net/xfrm/xfrm_output.c ph->nexthdr = top_iph->protocol; top_iph 177 net/xfrm/xfrm_output.c top_iph->protocol = IPPROTO_BEETPH; top_iph 178 net/xfrm/xfrm_output.c top_iph->ihl = sizeof(struct iphdr) / 4; top_iph 181 net/xfrm/xfrm_output.c top_iph->saddr = x->props.saddr.a4; top_iph 182 net/xfrm/xfrm_output.c top_iph->daddr = x->id.daddr.a4; top_iph 194 net/xfrm/xfrm_output.c struct iphdr *top_iph; top_iph 203 net/xfrm/xfrm_output.c skb->transport_header = skb->network_header + sizeof(*top_iph); top_iph 204 net/xfrm/xfrm_output.c top_iph = ip_hdr(skb); top_iph 206 net/xfrm/xfrm_output.c top_iph->ihl = 5; top_iph 207 net/xfrm/xfrm_output.c top_iph->version = 4; top_iph 209 net/xfrm/xfrm_output.c top_iph->protocol = xfrm_af2proto(skb_dst(skb)->ops->family); top_iph 213 net/xfrm/xfrm_output.c top_iph->tos = 0; top_iph 215 net/xfrm/xfrm_output.c top_iph->tos = XFRM_MODE_SKB_CB(skb)->tos; top_iph 216 net/xfrm/xfrm_output.c top_iph->tos = INET_ECN_encapsulate(top_iph->tos, top_iph 221 net/xfrm/xfrm_output.c IP_ECN_clear(top_iph); top_iph 223 net/xfrm/xfrm_output.c top_iph->frag_off = (flags & XFRM_STATE_NOPMTUDISC) ? top_iph 226 net/xfrm/xfrm_output.c top_iph->ttl = ip4_dst_hoplimit(xfrm_dst_child(dst)); top_iph 228 net/xfrm/xfrm_output.c top_iph->saddr = x->props.saddr.a4; top_iph 229 net/xfrm/xfrm_output.c top_iph->daddr = x->id.daddr.a4; top_iph 239 net/xfrm/xfrm_output.c struct ipv6hdr *top_iph; top_iph 248 net/xfrm/xfrm_output.c skb->transport_header = skb->network_header + sizeof(*top_iph); top_iph 249 net/xfrm/xfrm_output.c top_iph = ipv6_hdr(skb); top_iph 251 net/xfrm/xfrm_output.c top_iph->version = 6; top_iph 253 net/xfrm/xfrm_output.c memcpy(top_iph->flow_lbl, XFRM_MODE_SKB_CB(skb)->flow_lbl, top_iph 254 net/xfrm/xfrm_output.c sizeof(top_iph->flow_lbl)); top_iph 255 net/xfrm/xfrm_output.c top_iph->nexthdr = xfrm_af2proto(skb_dst(skb)->ops->family); top_iph 264 net/xfrm/xfrm_output.c ipv6_change_dsfield(top_iph, 0, dsfield); top_iph 265 net/xfrm/xfrm_output.c top_iph->hop_limit = ip6_dst_hoplimit(xfrm_dst_child(dst)); top_iph 266 net/xfrm/xfrm_output.c top_iph->saddr = *(struct in6_addr *)&x->props.saddr; top_iph 267 net/xfrm/xfrm_output.c top_iph->daddr = *(struct in6_addr *)&x->id.daddr; top_iph 273 net/xfrm/xfrm_output.c struct ipv6hdr *top_iph; top_iph 287 net/xfrm/xfrm_output.c skb->transport_header = skb->network_header + sizeof(*top_iph); top_iph 292 net/xfrm/xfrm_output.c top_iph = ipv6_hdr(skb); top_iph 299 net/xfrm/xfrm_output.c ph->nexthdr = top_iph->nexthdr; top_iph 303 net/xfrm/xfrm_output.c top_iph->nexthdr = IPPROTO_BEETPH; top_iph 306 net/xfrm/xfrm_output.c top_iph->saddr = *(struct in6_addr *)&x->props.saddr; top_iph 307 net/xfrm/xfrm_output.c top_iph->daddr = *(struct in6_addr *)&x->id.daddr;