Re: Port Number in Packet filter

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

 



Hi,

On Sun, May 29, 2005 at 10:38:03AM -0700, kulkarni abhi told us:
> Hi All,
>      We are working on packet filter.I am attaching
> filter.c which actually does the packet filtering.
> Everything is working fine except the filter for
> ports.
> We are testing a simple tcpclient and tcpserver (echo
> server). 
> Server is running on 10000 port.
> But in packet filter we always get some 4135 port but
> not
> 10000.

I didn't have a close look at your code, but seems like you didn't
convert from network byte order to host byte order.
See for example at
http://en.wikipedia.org/wiki/Byte_order#Endianness_in_communications


hope this helps

Sven

> Client and server are running on different machines .
> We are not using any NAT addresses.
> Help appricited!!
> Thanks.
> 
> 

-- 
Linux zion 2.6.12-rc4-mm2 #2 Wed May 25 14:53:19 CEST 2005 i686 athlon i386 GNU/Linux
 20:41:25 up 4 days,  5:44,  1 user,  load average: 0.00, 0.00, 0.00

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux