hi folks
    I am trying to access the source and dest port
number of incoming tcp packets in ip_input.c file in
the ip_rcv() function (by using skb->h.th->source and
skb->h.th->dest)  and print it in hex using printk,
but I am getting incorrect port numbers. I used ntohs
as well. However, i can access correct source and dest
ip addresses of the incoming tcp pkts.  I am stucked
at this ... it is a part of my kernel project.
   
    I had posted this message 24 hours ago, but didnt
get any reply. I wish to know whether anybody out
there in this group is into kernel hacking/coding in
the tcp/ip stack. Any help will be highly appreciated.

    Hope to get a reply this time !
TIA
Gautam.

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to