Sun, Lei writes:
> I wrote a small packet monitoring progrm which use the packet socket and
> can read the whole raw packet from my arm target eth0 device, and print out
> the source IP address, destination IP, source port and destinaion port and
> the packet content.
You might want to look at the program called "tcpdump". It does exactly
the same, but does a lot more interpretation.
> when I open this program on my arm target(IP 192.168.200.72) and try to
BTW, you don't "open" programs. You "run" them. "Open" is a microsoft-ism.
> telnet from 192.168.200.70, the packet monitoring program output looks
> like this:
>
> source IP: 192.168.40.73 source port: 23
> dest IP: 192.168.200.70 dest port: 1078
> ...
> source IP: 192.168.40.172 source port: 23
> dest IP: 192.168.200.70 dest port: 1078
> ....
Hmm, not sure - I'd like to see the output of tcpdump -s 256 -x to be sure.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King [EMAIL PROTECTED] --- ---
| | | | http://www.arm.linux.org.uk/ / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++