[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.01.1006111152230.30433@obet.zrqbmnf.qr>
Date: Fri, 11 Jun 2010 11:53:32 +0200 (CEST)
From: Jan Engelhardt <jengelh@...ozas.de>
To: Jiri Olsa <jolsa@...hat.com>
cc: Patrick McHardy <kaber@...sh.net>, netdev@...r.kernel.org,
Netfilter Developer Mailing List
<netfilter-devel@...r.kernel.org>
Subject: Re: no reassembly for outgoing packets on RAW socket
On Friday 2010-06-11 10:16, Jiri Olsa wrote:
>
>I prepared the patch implementing IP_NODEFRAG option for IPv4 socket.
>
>Also I just got an idea, that there could be no reassembly if there are
>no rules for connection tracing set.. not sure how can I check that best
>so far.. any idea?
>
>@@ -572,6 +572,14 @@ static int do_ip_setsockopt(struct sock *sk, int level,
> }
> inet->hdrincl = val ? 1 : 0;
> break;
>+ case IP_NODEFRAG:
>+ if (sk->sk_type != SOCK_RAW) {
>+ err = -ENOPROTOOPT;
>+ break;
>+ }
>+ inet->nodefrag = val ? 1 : 0;
>+ printk("IP_NODEFRAG %p -> %d\n", inet, inet->nodefrag);
>+ break;
You want to get rid of this printk otherwise it spews the logs.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists