]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/netfilter/xt_LOG.c
netfilter: xt_LOG: fix bogus extra layer-4 logging information
[karo-tx-linux.git] / net / netfilter / xt_LOG.c
index 1595608a892d08fe8c3b7a0829a346a98b719c8f..f99f8dee238b9394ab40c4e9308c30dfbcc4d229 100644 (file)
@@ -216,12 +216,14 @@ static void dump_ipv4_packet(struct sbuff *m,
                                    ntohs(ih->frag_off) & IP_OFFSET,
                                    iphoff+ih->ihl*4, logflags))
                        return;
+               break;
        case IPPROTO_UDP:
        case IPPROTO_UDPLITE:
                if (dump_udp_header(m, skb, ih->protocol,
                                    ntohs(ih->frag_off) & IP_OFFSET,
                                    iphoff+ih->ihl*4))
                        return;
+               break;
        case IPPROTO_ICMP: {
                struct icmphdr _icmph;
                const struct icmphdr *ich;
@@ -649,10 +651,12 @@ static void dump_ipv6_packet(struct sbuff *m,
                if (dump_tcp_header(m, skb, currenthdr, fragment, ptr,
                    logflags))
                        return;
+               break;
        case IPPROTO_UDP:
        case IPPROTO_UDPLITE:
                if (dump_udp_header(m, skb, currenthdr, fragment, ptr))
                        return;
+               break;
        case IPPROTO_ICMPV6: {
                struct icmp6hdr _icmp6h;
                const struct icmp6hdr *ic;