From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Pham Viet Ha" Date: Wed, 06 Nov 2002 08:11:29 +0000 Subject: [LARTC] Port number problem MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_006B_01C285B7.8C5CB330" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_006B_01C285B7.8C5CB330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_006B_01C285B7.8C5CB330 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello there,
 
I am just a newbie. I got a bug when = modifying CBQ=20 scheduler in Linux Kernel 2.4. I just want to get the soure and = destination port=20 number of the packet (TCP/UDP). I used ntohs(skb->h.th->dest) for = the=20 destination port number of a TCP packet. It doesn't work. The printed = value is=20 not correct (we used FTP, port 21 to test).
 
Did anyone meet the same issue? Please = give me a=20 hand.
 
Thanks so much in advance.
 
VietHa
------=_NextPart_000_006B_01C285B7.8C5CB330-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/