Skip to contentSkip to conversation

: Fix check for ESP header size in ip6t_esp

PATCH In review Patrick McHardy 1 participant 1 message Dec 20, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 10/18 : Fix check for ESP header size in ip6t_esp

Fix check for ESP header size in ip6t_esp. 2.6 already gets it right by using struct ip_esp_hdr from include/linux/ip.h.

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/12/05 23:17:12+01:00 [email protected]
# [NETFILTER]: Fix check for ESP header size in ip6t_esp
#
# Signed-off-by: Yasuyuki KOZAKAI <[email protected]>
# Signed-off-by: Patrick McHardy <[email protected]>
#

# net/ipv6/netfilter/ip6t_esp.c
#   2004/12/05 23:17:10+01:00 [email protected] +1 -0
#   [NETFILTER]: Fix check for ESP header size in ip6t_esp
#   
#   Signed-off-by: Yasuyuki KOZAKAI <[email protected]>
#   Signed-off-by: Patrick McHardy <[email protected]>
# 
diff -Nru a/net/ipv6/netfilter/ip6t_esp.c b/net/ipv6/netfilter/ip6t_esp.c
--- a/net/ipv6/netfilter/ip6t_esp.c	2004-12-20 07:01:16 +01:00
+++ b/net/ipv6/netfilter/ip6t_esp.c	2004-12-20 07:01:16 +01:00
@@ -22,6 +22,7 @@

struct esphdr {
__u32 spi;
+ __u32 seq_no;
};

/* Returns 1 if the spi is matched by the range, 0 otherwise */