[mpls-linux-general] regarding tranport Layer port....
Status: Beta
Brought to you by:
jleu
From: <vvk...@hs...> - 2002-01-08 18:45:19
|
Hi Experts ! I want to clarify my doubt, whether IP uses some encoding technique...............while tranmitting the packet........ Assume sk_buff pointer "skb" , i am trying to get the port number of the application from the TCP header in the following way......... skb->h.th->dest ........./* Destination port ........*/ We are trying to transfer certain traffic based on Transport layer port, as part of the application of Traffic Engineering ....... For telnet application : port : 23 , but when i get the dest value in "mpls_output2" function in "mpls_output.c" file it is showing some other values like : 319, 510 ................ As everybody knows Telnet port : 23 I tried to print it normally and then __const_htons, __const_htons .............. i didn't get the dest port : 23 in any of the cases.......... Please guide me in this .............. Thanks in advance........ Regards,Ramki kvv. Hughes Software Systems |