patch-2.4.14 linux/net/ipv4/ip_gre.c
Next file: linux/net/ipv4/ip_sockglue.c
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Tue Oct 30 15:08:12 2001
- Orig file:
v2.4.13/linux/net/ipv4/ip_gre.c
- Orig date:
Tue Oct 9 17:06:53 2001
diff -u --recursive --new-file v2.4.13/linux/net/ipv4/ip_gre.c linux/net/ipv4/ip_gre.c
@@ -548,16 +548,12 @@
static inline u8
ipgre_ecn_encapsulate(u8 tos, struct iphdr *old_iph, struct sk_buff *skb)
{
-#ifdef CONFIG_INET_ECN
u8 inner = 0;
if (skb->protocol == __constant_htons(ETH_P_IP))
inner = old_iph->tos;
else if (skb->protocol == __constant_htons(ETH_P_IPV6))
inner = ip6_get_dsfield((struct ipv6hdr*)old_iph);
return INET_ECN_encapsulate(tos, inner);
-#else
- return tos;
-#endif
}
int ipgre_rcv(struct sk_buff *skb)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)