Lines 1018-1027
static int ipaddr_list_or_flush(int argc, char **argv, int flush)
Link Here
|
1018 |
exit(1); |
1018 |
exit(1); |
1019 |
} |
1019 |
} |
1020 |
|
1020 |
|
1021 |
if (filter.family && filter.family != AF_PACKET) { |
1021 |
if (filter.family != AF_PACKET) { |
1022 |
if (filter.oneline) |
|
|
1023 |
no_link = 1; |
1024 |
|
1025 |
if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) { |
1022 |
if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) { |
1026 |
perror("Cannot send dump request"); |
1023 |
perror("Cannot send dump request"); |
1027 |
exit(1); |
1024 |
exit(1); |
Lines 1032-1038
static int ipaddr_list_or_flush(int argc, char **argv, int flush)
Link Here
|
1032 |
exit(1); |
1029 |
exit(1); |
1033 |
} |
1030 |
} |
1034 |
|
1031 |
|
1035 |
ipaddr_filter(&linfo, &ainfo); |
1032 |
if (filter.family) { |
|
|
1033 |
if (filter.oneline) |
1034 |
no_link = 1; |
1035 |
|
1036 |
ipaddr_filter(&linfo, &ainfo); |
1037 |
} |
1036 |
} |
1038 |
} |
1037 |
|
1039 |
|
1038 |
for (l = linfo.head; l; l = l->next) { |
1040 |
for (l = linfo.head; l; l = l->next) { |