Lines Matching refs:old_iph
549 ipgre_ecn_encapsulate(u8 tos, struct iphdr *old_iph, struct sk_buff *skb) in ipgre_ecn_encapsulate() argument
553 inner = old_iph->tos; in ipgre_ecn_encapsulate()
555 inner = ip6_get_dsfield((struct ipv6hdr*)old_iph); in ipgre_ecn_encapsulate()
672 struct iphdr *old_iph = skb->nh.iph; in ipgre_tunnel_xmit() local
740 tos = old_iph->tos; in ipgre_tunnel_xmit()
766 df |= (old_iph->frag_off&htons(IP_DF)); in ipgre_tunnel_xmit()
768 if ((old_iph->frag_off&htons(IP_DF)) && in ipgre_tunnel_xmit()
769 mtu < ntohs(old_iph->tot_len)) { in ipgre_tunnel_xmit()
819 old_iph = skb->nh.iph; in ipgre_tunnel_xmit()
837 iph->tos = ipgre_ecn_encapsulate(tos, old_iph, skb); in ipgre_tunnel_xmit()
843 iph->ttl = old_iph->ttl; in ipgre_tunnel_xmit()
846 iph->ttl = ((struct ipv6hdr*)old_iph)->hop_limit; in ipgre_tunnel_xmit()