View previous topic :: View next topic |
Author |
Message |
NightTwix n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Jan 2005 Posts: 58
|
Posted: Tue Aug 16, 2005 10:56 am Post subject: netstat is missing last number |
|
|
Hi
i recently noticed that 3 of 4 Gentoo boxes i've checked have a problem with netstat output.
One of them is a livecd, another one is a laptop and the third one is a Colinux system.
the problem is that netstat is missing the last number:
Code: |
# netstat -ap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:ssh *:* LISTEN 6592/sshd
tcp 0 0 ::ffff:172.20.99.31:ssh ::ffff:172.20.10.3:3330 ESTABLISHED 6601/0
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 12447 5240/syslog-ng /dev/log
unix 2 [ ACC ] STREAM LISTENING 12714 5483/gpm /dev/gpmctl
unix 2 [ ] DGRAM 11853 4728/udevd @udevd
|
You should notice this line:
tcp 0 0 ::ffff:172.20.99.31:ssh ::ffff:172.20.10.3:3330 ESTABLISHED 6601/0
i shows ::ffff:172.20.10.3:3330 an foreign adress but in reality it should be 172.20.10.33
This behaviour is the same for all connections not just ssh and its always the foreign adress.
Could this be kernel related?
The only box without this behaviour is a 2.4 kernel
anyone ever seen this? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ter_roshak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 31 Jan 2004 Posts: 171 Location: Everett, WA
|
Posted: Wed Aug 17, 2005 4:28 pm Post subject: Re: netstat is missing last number |
|
|
NightTwix wrote: | Hi
i recently noticed that 3 of 4 Gentoo boxes i've checked have a problem with netstat output.
One of them is a livecd, another one is a laptop and the third one is a Colinux system.
the problem is that netstat is missing the last number:
Code: |
# netstat -ap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:ssh *:* LISTEN 6592/sshd
tcp 0 0 ::ffff:172.20.99.31:ssh ::ffff:172.20.10.3:3330 ESTABLISHED 6601/0
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 12447 5240/syslog-ng /dev/log
unix 2 [ ACC ] STREAM LISTENING 12714 5483/gpm /dev/gpmctl
unix 2 [ ] DGRAM 11853 4728/udevd @udevd
|
You should notice this line:
tcp 0 0 ::ffff:172.20.99.31:ssh ::ffff:172.20.10.3:3330 ESTABLISHED 6601/0
i shows ::ffff:172.20.10.3:3330 an foreign adress but in reality it should be 172.20.10.33
This behaviour is the same for all connections not just ssh and its always the foreign adress.
Could this be kernel related?
The only box without this behaviour is a 2.4 kernel
anyone ever seen this? |
I've seen the output leave out some numbers like that if the screen width was not sufficient to display all of the data. This happens to me when the DNS name is too long to display everything else. I would guess that it is the problem. Could this be it? _________________ Josh Miller -- RHCE, VCP
Ditree Consulting
http://ditree.com/
Registered Linux User #318200 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|