packet traversal through network
im trying to find how actually the packet travel through the network that is im trying to find at which place TCP header,IP header,ETHERNET header........
i think ehternet header is added in a function called eth_header() at linux/net/ethernet/eth.c but im not sure of it i tried to print ethernet header in a function eth_header() but it was not successfull
can any one tell me wr actually headers are added....
else send me some links that i can go through....
I think this might help: www dot xml dot com/ldd/chapter/book/ch14.html#t5 - (the forum won't let me do URLS until I have a few more posts ) The ethernet headers are a bit app-specific, but you might want to look over the skbuff implementation. I think that's probably closer to what you're trying to find out.
What exactly did you mean you tried to "print" the header? I'm assuming you modified one of the enet functions a bit... do you have the code?
i was trying to madify th eth.c file(linux/net/ethernet/eth.c ) to print ethernet header here is my diff code:
-- eth_prev.c 2001-03-03 00:32:15.000000000 +0530
+++ eth.c 2006-04-17 14:31:39.000000000 +0530
@@ -60,7 +60,7 @@
extern int __init netdev_boot_setup(char *str);
@@ -112,6 +112,12 @@ int eth_header(struct sk_buff *skb, stru
+ #ifdef ethheader
+ printk("\n\n\n************ETHERNET ADDRESS****************");
|All times are GMT -5. The time now is 01:06 PM.|