Skip to contentSkip to conversation

ulogd2 doesn't decode IPv6 L4 protos

PATCH In review Thomas Jacob 2 participants 3 messages Dec 8, 2008 – Dec 10, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

ip6_ext_hdr returns ULOGD_IRET_* codes instead of a boolean value which prevents IPv6 layer 4 protocols from being decoded in the raw2packet filter.

#1 lore raw

PATCH 1/1 Return true/false instead of ULOGD_IRET_OK/STOP

---
 filter/raw2packet/ulogd_raw2packet_BASE.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
filter/raw2packet/ulogd_raw2packet_BASE.c +2 -2
index e61d904..30822e8 100644
@@ -751,9 +751,9 @@ static int ip6_ext_hdr(u_int8_t nexthdr)
 	case IPPROTO_ESP:
 	case IPPROTO_AH:
 	case IPPROTO_DSTOPTS:
-		return ULOGD_IRET_OK;
+		return 1;
 	default:
-		return ULOGD_IRET_STOP;
+		return 0;
 	}
 }
 
Signature · 1 line
1.5.6.5
#2 lore raw

Re: [PATCH] Return true/false instead of ULOGD_IRET_OK/STOP

Hi,

filter/raw2packet/ulogd_raw2packet_BASE.c static int ip6_ext_hdr(u_int8_t nexthdr) · line 754

Quoted 7 lines · Thomas Jacob
---
 filter/raw2packet/ulogd_raw2packet_BASE.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
filter/raw2packet/ulogd_raw2packet_BASE.c +1 -1
-		return ULOGD_IRET_OK;
+		return 1;

Good catch, applied thanks !

BR,

Signature · 3 lines
Éric Leblond, [email protected]
Téléphone : +33 1 55 43 75 22, Fax : +33 9 57 21 48 75
INL, http://www.inl.fr