]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
From: Eric leblond <eric@inl.fr>
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>
Sun, 3 Feb 2008 12:23:10 +0000 (12:23 +0000)
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>
Sun, 3 Feb 2008 12:23:10 +0000 (12:23 +0000)
With this patch, BASE filter module is able fill oob_family when parsing IPv6
address.

filter/raw2packet/ulogd_raw2packet_BASE.c

index e837c62f51e0019543401ad7fda958f77e546ca3..48f29935bde489aeb78acd2a32d59bd02e887b3a 100644 (file)
@@ -795,6 +795,10 @@ static int _interp_ipv6hdr(struct ulogd_pluginstance *pi, u_int32_t len)
        if (fragment)
                goto out;
 
+
+       ret[KEY_IP_PROTOCOL].u.value.ui8 = curhdr;
+       ret[KEY_IP_PROTOCOL].flags |= ULOGD_RETF_VALID;
+
        switch (curhdr) {
        case IPPROTO_TCP:
                _interp_tcp(pi, (void *)ipv6h + ptr, len);