Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
netstat is missing last number
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
NightTwix
n00b
n00b


Joined: 06 Jan 2005
Posts: 58

PostPosted: Tue Aug 16, 2005 10:56 am    Post subject: netstat is missing last number Reply with quote

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
View user's profile Send private message
ter_roshak
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 171
Location: Everett, WA

PostPosted: Wed Aug 17, 2005 4:28 pm    Post subject: Re: netstat is missing last number Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum