Skip to contentSkip to conversation

Compile fix for 2.5 BK current

PATCH Patrick Mau 1 participant 1 message Oct 29, 2002

lore
Share & tools
lore
#0 lore raw

Hallo List,

I need the following two patches to make BK 2.5 current compile. Hope it's OK to Cc the netfilter core team ?

Please apply,
Patrick

ipv4/netfilter/ip_conntrack_standalone.c.new renamed from ipv4/netfilter/ip_conntrack_standalone.c +1 -1
@@ -201,7 +201,7 @@
 	/* Local packets are never produced too large for their
 	   interface.  We degfragment them at LOCAL_OUT, however,
 	   so we have to refragment them here. */
-	if ((*pskb)->len > rt->u.dst.pmtu) {
+	if ((*pskb)->len > dst_pmtu(&rt->u.dst)) {
 		/* No hook can be after us, so this should be OK. */
 		ip_fragment(*pskb, okfn);
 		return NF_STOLEN;
ipv4/netfilter/ipt_REJECT.c.new renamed from ipv4/netfilter/ipt_REJECT.c +3 -3
@@ -148,7 +148,7 @@
 	nskb->dst = &rt->u.dst;
 
 	/* "Never happens" */
-	if (nskb->len > nskb->dst->pmtu)
+	if (nskb->len > dst_pmtu(nskb->dst))
 		goto free_nskb;
 
 	connection_attach(nskb, oldskb->nfct);
@@ -225,8 +225,8 @@
 	/* RFC says return as much as we can without exceeding 576 bytes. */
 	length = skb_in->len + sizeof(struct iphdr) + sizeof(struct icmphdr);
 
-	if (length > rt->u.dst.pmtu)
-		length = rt->u.dst.pmtu;
+	if (length > dst_pmtu(&rt->u.dst))
+		length = dst_pmtu(&rt->u.dst);
 	if (length > 576)
 		length = 576;