Re: netfilter hook function error...

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

 



correct my_ipheader = skb->nh->iph;

with my_ipheader = skb->nh.iph;

and it does NOT work.


includes:
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/tty.h>
#include <linux/version.h>

#include <linux/netdevice.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>

#include <linux/skbuff.h>

#include <linux/ip.h>
#include <linux/udp.h>
#include <linux/tcp.h>

J



[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