History log of /haiku/src/bin/network/netstat/netstat.cpp
Revision Date Author Comments
# a2efc1d6 07-Oct-2020 Murai Takashi <tmurai01@gmail.com>

netstat: Fix -Wformat=

Change-Id: I70bfb12f9d56e7e4c8dbdd4bd48ca0282057a713
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3312
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 20a31c45 10-Aug-2019 Axel Dörfler <axeld@pinc-software.de>

netstat: Added family, protocol, and state filter options

* Uses the same option names as net-tools's netstat.

Change-Id: I3363a091dfa1bcf09065f77d3fdc9c9bf27cbcaf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1701
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# eab09848 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* getservbyport() expects the port in network byte order. Resolving port names
is now working as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32318 a95241bf-73f2-0310-859d-f6bbb57e9c96


# df50f7a9 10-Apr-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Changed the way the socket functions work:
- The net_stack driver is no longer used. Instead we have a kernel
module which is directly used by syscall implementations in the
kernel. I.e. we no longer tunnel those functions through ioctls, but
have normal syscalls.
- Removed the superfluous net starter module.
- Implemented the FDTYPE_SOCKET type file_descriptors, that is sockets
are no longer vnode based.
- Adjusted libnetwork (the socket function implementations)
accordingly.
- Adjusted netstat accordingly.
* Socket module:
- Implemented socketpair().
- Added "kernel" parameter to the control hook. Quite a few more hooks
would actually need the parameter, but I didn't change those yet,
since that would probably also require changes to the protocol
module interface.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24908 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bcdcff76 05-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by James Woodcock: added '-n' option to disable resolving names.
Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23252 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 26710535 02-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

gethostbyaddr() was used incorrectly, found by James Woodcock, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23223 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 66a4a428 25-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

added Recv-Q/Send-Q output to netstat.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20819 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 79608a2d 18-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* Moved some private members of net_socket into the new net_socket_private structure.
* Added an "owner" field that stores the team which created the socket (for netstat only);
we would need a different storage for SIGURG if we ever want to support that.
* Improved netstat address output: now prints "*" instead of INADDR_ANY.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8dfd7ea7 18-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* Implemented a basic infrastructure for a netstat command.
* Started a netstat command.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19560 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eab09848757cbdb7d3ee916291b80975317fda75 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* getservbyport() expects the port in network byte order. Resolving port names
is now working as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32318 a95241bf-73f2-0310-859d-f6bbb57e9c96


# df50f7a9b4b0bbe77413d722875b0a346c61d527 10-Apr-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Changed the way the socket functions work:
- The net_stack driver is no longer used. Instead we have a kernel
module which is directly used by syscall implementations in the
kernel. I.e. we no longer tunnel those functions through ioctls, but
have normal syscalls.
- Removed the superfluous net starter module.
- Implemented the FDTYPE_SOCKET type file_descriptors, that is sockets
are no longer vnode based.
- Adjusted libnetwork (the socket function implementations)
accordingly.
- Adjusted netstat accordingly.
* Socket module:
- Implemented socketpair().
- Added "kernel" parameter to the control hook. Quite a few more hooks
would actually need the parameter, but I didn't change those yet,
since that would probably also require changes to the protocol
module interface.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24908 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bcdcff768b16155b3e19aa2dc8ea32759fc7b91b 05-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by James Woodcock: added '-n' option to disable resolving names.
Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23252 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2671053585ca5d8d35e1bd4b229206beab29cc0d 02-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

gethostbyaddr() was used incorrectly, found by James Woodcock, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23223 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 66a4a428020db4e26cda68ffe4b3dd6f1bed88c2 25-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

added Recv-Q/Send-Q output to netstat.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20819 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 79608a2de794aaba387e90c9daeed3bdced0dfde 18-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* Moved some private members of net_socket into the new net_socket_private structure.
* Added an "owner" field that stores the team which created the socket (for netstat only);
we would need a different storage for SIGURG if we ever want to support that.
* Improved netstat address output: now prints "*" instead of INADDR_ANY.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8dfd7ea7bf7714ff094a69f120771e6c6465262e 18-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* Implemented a basic infrastructure for a netstat command.
* Started a netstat command.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19560 a95241bf-73f2-0310-859d-f6bbb57e9c96