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
71825849
Commit
71825849
authored
Jan 21, 2012
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make netstat -h and -V honor HAVE_SELINUX
parent
4c91a43c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
lib/net-features.h
lib/net-features.h
+3
-0
netstat.c
netstat.c
+5
-3
No files found.
lib/net-features.h
View file @
71825849
...
...
@@ -117,6 +117,9 @@ static char *Features =
"-I18N"
#endif
/* I18N */
#if HAVE_SELINUX
" +SELINUX"
#endif
"
\n
AF: "
#ifdef DFLT_AF
...
...
netstat.c
View file @
71825849
...
...
@@ -1846,10 +1846,12 @@ static void usage(void)
fprintf
(
stderr
,
_
(
" -a, --all, --listening display all sockets (default: connected)
\n
"
));
fprintf
(
stderr
,
_
(
" -o, --timers display timers
\n
"
));
fprintf
(
stderr
,
_
(
" -F, --fib display Forwarding Information Base (default)
\n
"
));
fprintf
(
stderr
,
_
(
" -C, --cache display routing cache instead of FIB
\n\n
"
));
fprintf
(
stderr
,
_
(
" -Z, --context display SELinux security context for sockets
\n\n
"
));
fprintf
(
stderr
,
_
(
" -C, --cache display routing cache instead of FIB
\n
"
));
#if HAVE_SELINUX
fprintf
(
stderr
,
_
(
" -Z, --context display SELinux security context for sockets
\n
"
));
#endif
fprintf
(
stderr
,
_
(
" <Socket>={-t|--tcp} {-u|--udp} {-U|--udplite} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom
\n
"
));
fprintf
(
stderr
,
_
(
"
\n
<Socket>={-t|--tcp} {-u|--udp} {-U|--udplite} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom
\n
"
));
fprintf
(
stderr
,
_
(
" <AF>=Use '-6|-4' or '-A <af>' or '--<af>'; default: %s
\n
"
),
DFLT_AF
);
fprintf
(
stderr
,
_
(
" List of possible address families (which support routing):
\n
"
));
print_aflist
(
1
);
/* 1 = routeable */
...
...
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