Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 863188 Details for
Bug 1063913
netstat doesn't list sctp servers in -A mode
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch - Do not abort and print 'no support for protocol...' if user does not explicitly specifies it
diff.patch (text/plain), 1.03 KB, created by
Jaromír Končický
on 2014-02-14 09:45:01 UTC
(
hide
)
Description:
Patch - Do not abort and print 'no support for protocol...' if user does not explicitly specifies it
Filename:
MIME Type:
Creator:
Jaromír Končický
Created:
2014-02-14 09:45:01 UTC
Size:
1.03 KB
patch
obsolete
>diff --git a/netstat.c b/netstat.c >index 43bd62f..edcd924 100644 >--- a/netstat.c >+++ b/netstat.c >@@ -167,6 +167,7 @@ int flag_exp = 1; > int flag_wide= 0; > int flag_prg = 0; > int flag_arg = 0; >+int flag_noprot = 0; > int flag_ver = 0; > int flag_l2cap = 0; > int flag_rfcomm = 0; >@@ -181,9 +182,9 @@ FILE *procinfo; > perror((file)); \ > return -1; \ > } \ >- if (flag_arg || flag_ver) \ >+ if (!flag_noprot && (flag_arg || flag_ver)) \ > ESYSNOT("netstat", (name)); \ >- if (flag_arg) \ >+ if (!flag_noprot && flag_arg) \ > rc = 1; \ > } else { \ > do { \ >@@ -2308,7 +2309,7 @@ int main > > if ((flag_inet || flag_inet6 || flag_sta) && > !(flag_tcp || flag_sctp || flag_udp || flag_udplite || flag_raw)) >- flag_tcp = flag_udp = flag_udplite = flag_raw = 1; >+ flag_noprot = flag_tcp = flag_sctp = flag_udp = flag_udplite = flag_raw = 1; > > if ((flag_tcp || flag_sctp || flag_udp || flag_udplite || flag_raw || flag_igmp) && > !(flag_inet || flag_inet6))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1063913
: 863188