Skip to contentSkip to conversation

: Remove skb_linearize in ip6tables

PATCH In review Patrick McHardy 1 participant 1 message Jan 11, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/6 : Remove skb_linearize in ip6tables

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2005/01/11 03:42:12+01:00 [email protected]
# [NETFILTER]: Remove skb_linearize in ip6tables
#
# Signed-off-by: Patrick McHardy <[email protected]>
#

# net/ipv6/netfilter/ip6table_mangle.c
#   2005/01/11 03:42:05+01:00 [email protected] +0 -4
#   [NETFILTER]: Remove skb_linearize in ip6tables
#   
#   Signed-off-by: Patrick McHardy <[email protected]>
# 
# net/ipv6/netfilter/ip6_tables.c
#   2005/01/11 03:42:05+01:00 [email protected] +0 -4
#   [NETFILTER]: Remove skb_linearize in ip6tables
#   
#   Signed-off-by: Patrick McHardy <[email protected]>
# 
diff -Nru a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
--- a/net/ipv6/netfilter/ip6_tables.c	2005-01-11 13:39:42 +01:00
+++ b/net/ipv6/netfilter/ip6_tables.c	2005-01-11 13:39:42 +01:00
@@ -366,10 +366,6 @@
 	void *table_base;
 	struct ip6t_entry *e, *back;

- /* FIXME: Push down to extensions --RR */
- if (skb_is_nonlinear(*pskb) && skb_linearize(*pskb, GFP_ATOMIC) != 0)
- return NF_DROP;
-
/* Initialization */
indev = in ? in->name : nulldevname;
outdev = out ? out->name : nulldevname;

net/ipv6/netfilter/ip6table_mangle.c +0 -4
diff -Nru a/net/ipv6/netfilter/ip6table_mangle.c b/net/ipv6/netfilter/ip6table_mangle.c
@@ -165,10 +165,6 @@
 	}
 #endif
 
-	/* FIXME: Push down to extensions --RR */
-	if (skb_is_nonlinear(*pskb) && skb_linearize(*pskb, GFP_ATOMIC) != 0)
-		return NF_DROP;
-
 	/* save source/dest address, nfmark, hoplimit, flowlabel, priority,  */
 	memcpy(&saddr, &(*pskb)->nh.ipv6h->saddr, sizeof(saddr));
 	memcpy(&daddr, &(*pskb)->nh.ipv6h->daddr, sizeof(daddr));