Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
91f3c44c
Commit
91f3c44c
authored
Dec 01, 2008
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UDPlite Support for net-stat by Brian Micek <bmicek@gmail.com>
parent
38720e89
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
48 deletions
+69
-48
lib/pathnames.h
lib/pathnames.h
+2
-0
man/en_US/netstat.8
man/en_US/netstat.8
+11
-5
netstat.c
netstat.c
+56
-43
No files found.
lib/pathnames.h
View file @
91f3c44c
...
...
@@ -16,6 +16,8 @@
#define _PATH_PROCNET_TCP6 "/proc/net/tcp6"
#define _PATH_PROCNET_UDP "/proc/net/udp"
#define _PATH_PROCNET_UDP6 "/proc/net/udp6"
#define _PATH_PROCNET_UDPLITE "/proc/net/udplite"
#define _PATH_PROCNET_UDPLITE6 "/proc/net/udplite6"
#define _PATH_PROCNET_RAW "/proc/net/raw"
#define _PATH_PROCNET_RAW6 "/proc/net/raw6"
#define _PATH_PROCNET_UNIX "/proc/net/unix"
...
...
man/en_US/netstat.8
View file @
91f3c44c
...
...
@@ -19,6 +19,7 @@ netstat \- Print network connections, routing tables, interface statistics, masq
.RI [ address_family_options ]
.RB [ \-\-tcp | \-t ]
.RB [ \-\-udp | \-u ]
.RB [ \-\-udplite | \-U ]
.RB [ \-\-raw | \-w ]
.RB [ \-\-listening | \-l ]
.RB [ \-\-all | \-a ]
...
...
@@ -67,6 +68,7 @@ netstat \- Print network connections, routing tables, interface statistics, masq
.RB { \-\-statistics | -s }
.RB [ \-\-tcp | \-t ]
.RB [ \-\-udp | \-u ]
.RB [ \-\-udplite | \-U ]
.RB [ \-\-raw | \-w ]
.P
.B netstat
...
...
@@ -158,7 +160,7 @@ options.
.
P
The
address
family
.
B
inet
includes
raw
,
udp
and
tcp
protocol
sockets
.
includes
raw
,
udp
,
udplite
and
tcp
protocol
sockets
.
.
SS
"\-c, \-\-continuous"
This
will
cause
.
B
netstat
...
...
@@ -182,9 +184,9 @@ Print routing information from the route cache.
.
P
.
SH
OUTPUT
.
P
.
SS
Active
Internet
connections
\
fR
(
TCP
,
UDP
,
raw
)\
fR
.
SS
Active
Internet
connections
\
fR
(
TCP
,
UDP
,
UDPLite
,
raw
)\
fR
.
SS
"Proto"
The
protocol
(
tcp
,
udp
,
raw
)
used
by
the
socket
.
The
protocol
(
tcp
,
udp
,
udpl
,
raw
)
used
by
the
socket
.
.
SS
"Recv\-Q"
Established
:
The
count
of
bytes
not
copied
by
the
user
program
connected
to
this
socket
.
Listening
:
Since
Kernel
2.6.18
this
column
contains
the
current
syn
backlog
.
...
...
@@ -202,7 +204,7 @@ Address and port number of the remote end of the socket.
Analogous
to
"Local Address."
.
SS
"State"
The
state
of
the
socket
.
Since
there
are
no
states
in
raw
mode
and
usually
no
states
used
in
UDP
,
this
column
may
be
left
blank
.
Normally
this
can
be
one
states
used
in
UDP
and
UDPLite
,
this
column
may
be
left
blank
.
Normally
this
can
be
one
of
several
values
:
.
TP
.
I
...
...
@@ -395,6 +397,9 @@ status information via the following files.
.
I
/
proc
/
net
/
udp
--
UDP
socket
information
.
I
/
proc
/
net
/
udplite
--
UDPLite
socket
information
.
I
/
proc
/
net
/
igmp
--
IGMP
multicast
information
...
...
@@ -456,4 +461,5 @@ work. It was updated again by Tuan Hoang
.
br
The
man
page
and
the
command
included
in
the
net
\-
tools
package
is
totally
rewritten
by
Bernd
Eckenfels
<
ecki
@
linux
.
de
>.
<
ecki
@
linux
.
de
>.
UDPLite
options
were
added
by
Brian
Micek
<
bmicek
@
gmail
.
com
>
netstat.c
View file @
91f3c44c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment