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.