ulogd2 doesn't decode IPv6 L4 protos
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.
PATCH 1/1 Return true/false instead of ULOGD_IRET_OK/STOP
Signed-off-by Thomas Jacob <[email protected]>
--- filter/raw2packet/ulogd_raw2packet_BASE.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
filter/raw2packet/ulogd_raw2packet_BASE.c +2 -2
@@ -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
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
Signed-off-by Thomas Jacob <[email protected]>--- 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