| To: | gleb@xxxxxxxxxxx (Gleb Natapov) |
|---|---|
| Subject: | Re: ip_build_xmit() skb_reserve() problem |
| From: | kuznet@xxxxxxxxxxxxx |
| Date: | Thu, 24 Aug 2000 20:07:23 +0400 (MSK DST) |
| Cc: | nn@xxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <39A4C189.2FB2B10E@xxxxxxxxxxx> from "Gleb Natapov" at Aug 24, 0 06:32:41 am |
| Sender: | owner-netdev@xxxxxxxxxxx |
Hello! > (dev->hard_header_len + 15) & ~15) bytes in the skb may be not the same > device that actually transmits packet (netfilter may reroute packet to > another device for instance). This is problem of netfilter. If it wants to do such crap, it should make it correctly at least. > Thus dev->hard_header() can't really > assume that there is enough space for hardware header in the skb. > hard_header() should always check that there is sufficient space in > headroom if it doesn't do this it's a bug. Nope. Caller must reserve enough of space. If netfilter does not check hard_header_len at packet head rewriting packets, it is plain fatal bug. Alexey |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: performance question: delay interrupts, Michael Richardson |
|---|---|
| Next by Date: | Re: performance question: delay interrupts, Donald Becker |
| Previous by Thread: | Re: ip_build_xmit() skb_reserve() problem, Gleb Natapov |
| Next by Thread: | Re: ip_build_xmit() skb_reserve() problem, Rusty Russell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |