Home
last modified time | relevance | path

Searched refs:old_iph (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/net/ipv4/
Dip_gre.c549 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()
[all …]
Dipip.c532 struct iphdr *old_iph = skb->nh.iph; in ipip_tunnel_xmit() local
547 tos = old_iph->tos; in ipip_tunnel_xmit()
584 df |= (old_iph->frag_off&htons(IP_DF)); in ipip_tunnel_xmit()
586 if ((old_iph->frag_off&htons(IP_DF)) && mtu < ntohs(old_iph->tot_len)) { in ipip_tunnel_xmit()
618 old_iph = skb->nh.iph; in ipip_tunnel_xmit()
636 iph->tos = INET_ECN_encapsulate(tos, old_iph->tos); in ipip_tunnel_xmit()
641 iph->ttl = old_iph->ttl; in ipip_tunnel_xmit()
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_conn.c887 struct iphdr *old_iph = skb->nh.iph; in ip_vs_tunnel_xmit() local
888 u8 tos = old_iph->tos; in ip_vs_tunnel_xmit()
889 u16 df = old_iph->frag_off; in ip_vs_tunnel_xmit()
917 df |= (old_iph->frag_off&__constant_htons(IP_DF)); in ip_vs_tunnel_xmit()
919 if ((old_iph->frag_off&__constant_htons(IP_DF)) in ip_vs_tunnel_xmit()
920 && mtu < ntohs(old_iph->tot_len)) { in ip_vs_tunnel_xmit()
928 ip_send_check(old_iph); in ip_vs_tunnel_xmit()
946 old_iph = skb->nh.iph; in ip_vs_tunnel_xmit()
968 iph->ttl = old_iph->ttl; in ip_vs_tunnel_xmit()