mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 03:59:55 +00:00
ss: break really long lines
This commit is contained in:
parent
f89d46ad63
commit
168d97f97b
@ -136,7 +136,8 @@ enum {
|
|||||||
#define PACKET_DBM ((1<<PACKET_DG_DB)|(1<<PACKET_R_DB))
|
#define PACKET_DBM ((1<<PACKET_DG_DB)|(1<<PACKET_R_DB))
|
||||||
#define UNIX_DBM ((1<<UNIX_DG_DB)|(1<<UNIX_ST_DB)|(1<<UNIX_SQ_DB))
|
#define UNIX_DBM ((1<<UNIX_DG_DB)|(1<<UNIX_ST_DB)|(1<<UNIX_SQ_DB))
|
||||||
#define ALL_DB ((1<<MAX_DB)-1)
|
#define ALL_DB ((1<<MAX_DB)-1)
|
||||||
#define INET_DBM ((1<<TCP_DB)|(1<<UDP_DB)|(1<<DCCP_DB)|(1<<RAW_DB)|(1<<SCTP_DB))
|
#define INET_L4_DBM ((1<<TCP_DB)|(1<<UDP_DB)|(1<<DCCP_DB)|(1<<SCTP_DB))
|
||||||
|
#define INET_DBM (INET_L4_DBM | (1<<RAW_DB))
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SS_UNKNOWN,
|
SS_UNKNOWN,
|
||||||
@ -4045,7 +4046,8 @@ int main(int argc, char *argv[])
|
|||||||
int ch;
|
int ch;
|
||||||
int state_filter = 0;
|
int state_filter = 0;
|
||||||
|
|
||||||
while ((ch = getopt_long(argc, argv, "dhaletuwxnro460spbEf:miA:D:F:vVzZN:KHS",
|
while ((ch = getopt_long(argc, argv,
|
||||||
|
"dhaletuwxnro460spbEf:miA:D:F:vVzZN:KHS",
|
||||||
long_opts, NULL)) != EOF) {
|
long_opts, NULL)) != EOF) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'n':
|
case 'n':
|
||||||
@ -4285,10 +4287,9 @@ int main(int argc, char *argv[])
|
|||||||
filter_merge_defaults(¤t_filter);
|
filter_merge_defaults(¤t_filter);
|
||||||
|
|
||||||
if (resolve_services && resolve_hosts &&
|
if (resolve_services && resolve_hosts &&
|
||||||
(current_filter.dbs&(UNIX_DBM|(1<<TCP_DB)|(1<<UDP_DB)|(1<<DCCP_DB)|(1<<SCTP_DB))))
|
(current_filter.dbs & (UNIX_DBM|INET_L4_DBM)))
|
||||||
init_service_resolver();
|
init_service_resolver();
|
||||||
|
|
||||||
|
|
||||||
if (current_filter.dbs == 0) {
|
if (current_filter.dbs == 0) {
|
||||||
fprintf(stderr, "ss: no socket tables to show with such filter.\n");
|
fprintf(stderr, "ss: no socket tables to show with such filter.\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user