Re: Netfilter hook doesn't see all packets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks a lot Florian. That fixed it! Curious, why is it unreliable?

On Thu, Nov 21, 2019 at 1:36 PM Florian Westphal <fw@xxxxxxxxx> wrote:
>
> Psyspy rambo <psyspy2020@xxxxxxxxx> wrote:
> > > >      udp_header = (struct udphdr *)skb_transport_header(skb);
> > > >      sip = (unsigned int)ntohl(ip_header->saddr);
> > > >      dip = (unsigned int)ntohl(ip_header->daddr);
>
> This doesn't work reliably in netfilter hooks.
>
> See skb_header_pointer() usage in other nf modules.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux