Port number problem

Linux Advanced Routing and Traffic Control

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

 



Hello there,
 
I am just a newbie. I got a bug when modifying CBQ scheduler in Linux Kernel 2.4. I just want to get the soure and destination port number of the packet (TCP/UDP). I used ntohs(skb->h.th->dest) for the destination port number of a TCP packet. It doesn't work. The printed value is not correct (we used FTP, port 21 to test).
 
Did anyone meet the same issue? Please give me a hand.
 
Thanks so much in advance.
 
VietHa

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux