If you need this as a "one off" type project, then another possibility is to hook onto netif_rx with jprobe (part of the kprobe) to redirect traffic to a local function first. It wouldn't useable for
I wasnt able to compile your packet_type_test.c :( I even tried your scripts (i.e. make-native.sh and make-uml.sh), which seem to me that proceeded to compile the example against the kernel source (
Hello Asim, I tried again but this time in Fedora Core 3 (kernel 2.6.10-1.760_FC3) and it went flawlessly. I have a look into your example and also into the Phrack article you mentioned and now I'm r
Hello Asim, Sorry to bother you again, but I run into some problems doing the tunneling stuff and maybe you or somebody else can give some clues. Based on your code I've coded two small kernel module
i need a possibility to catch IP4 packets (from ethernet devices) before OS' netmodules (IP, UDP, TCP, ICMP, ARP, ROUTE, NETFILTER ...) takes care about them and * to delete them from input buffer s
Why? It helps if you tell us what you really want, or is this a research project? The earliest place I know of is with tc filter, but that is a netfilter hook. So part of netfilter will "see" your co
You can process packets even before ip_rcv() gets them by registering your own packet handler (struct packet_type) using dev_add_pack(). I have a small sample at: http://limnos.csrd.uiuc.edu/notes/c
I won't comment on the way you are about to solve your problem even if I do think that it could be solved in a simpler way. In recent 2.6 kernels the earliest filtering possibility is via the ingres
I was searching for something like this also. In my case, I'll need to intercept all outgoing IP packets and change them (including L2 frame) before they are passed to the network interface driver.
If the type field of the struct packet_type you register == htons(ETH_P_ALL), then your packet handling function will be added to the head of the ptype_all list. As a result, it will see all incomin
As Thomas was mentioning in other email; write an action to do this. Attach on ingress qdisc filter/classifier like u32 to map the DIX and then tell it to pass the packets to the action. cheers, jama
If you need this as a "one off" type project, then another possibility is to hook onto netif_rx with jprobe (part of the kprobe) to redirect traffic to a local function first. It wouldn't useable for
Asim, I wasnt able to compile your packet_type_test.c :( I even tried your scripts (i.e. make-native.sh and make-uml.sh), which seem to me that proceeded to compile the example against the kernel sou
Hello Asim, I tried again but this time in Fedora Core 3 (kernel 2.6.10-1.760_FC3) and it went flawlessly. I have a look into your example and also into the Phrack article you mentioned and now I'm r