Lines 1658-1667
Link Here
|
1658 |
{ |
1658 |
{ |
1659 |
fprintf(stderr, _("usage: netstat [-veenNcCF] [<Af>] -r netstat {-V|--version|-h|--help}\n")); |
1659 |
fprintf(stderr, _("usage: netstat [-veenNcCF] [<Af>] -r netstat {-V|--version|-h|--help}\n")); |
1660 |
fprintf(stderr, _(" netstat [-vnNcaeol] [<Socket> ...]\n")); |
1660 |
fprintf(stderr, _(" netstat [-vnNcaeol] [<Socket> ...]\n")); |
1661 |
fprintf(stderr, _(" netstat { [-veenNac] -i[<Iface>] | [-cnNe] -M | -s } [delay]\n\n")); |
1661 |
fprintf(stderr, _(" netstat { [-veenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s } [delay]\n\n")); |
1662 |
|
1662 |
|
1663 |
fprintf(stderr, _(" -r, --route display routing table\n")); |
1663 |
fprintf(stderr, _(" -r, --route display routing table\n")); |
1664 |
fprintf(stderr, _(" -i, --interfaces=[<Iface>] display interface table\n")); |
1664 |
fprintf(stderr, _(" -I, --interfaces=[<Iface>] display interface table for <Iface>\n")); |
|
|
1665 |
fprintf(stderr, _(" -i, --interfaces display interface table\n")); |
1665 |
fprintf(stderr, _(" -g, --groups display multicast group memberships\n")); |
1666 |
fprintf(stderr, _(" -g, --groups display multicast group memberships\n")); |
1666 |
fprintf(stderr, _(" -s, --statistics display networking statistics (like SNMP)\n")); |
1667 |
fprintf(stderr, _(" -s, --statistics display networking statistics (like SNMP)\n")); |
1667 |
#if HAVE_FW_MASQUERADE |
1668 |
#if HAVE_FW_MASQUERADE |
Lines 1700-1706
Link Here
|
1700 |
{ |
1701 |
{ |
1701 |
AFTRANS_OPTS, |
1702 |
AFTRANS_OPTS, |
1702 |
{"version", 0, 0, 'V'}, |
1703 |
{"version", 0, 0, 'V'}, |
1703 |
{"interfaces", 2, 0, 'i'}, |
1704 |
{"interfaces", 2, 0, 'I'}, |
|
|
1705 |
{"interfaces", 0, 0, 'i'}, |
1704 |
{"help", 0, 0, 'h'}, |
1706 |
{"help", 0, 0, 'h'}, |
1705 |
{"route", 0, 0, 'r'}, |
1707 |
{"route", 0, 0, 'r'}, |
1706 |
#if HAVE_FW_MASQUERADE |
1708 |
#if HAVE_FW_MASQUERADE |
Lines 1738-1744
Link Here
|
1738 |
getroute_init(); /* Set up AF routing support */ |
1740 |
getroute_init(); /* Set up AF routing support */ |
1739 |
|
1741 |
|
1740 |
afname[0] = '\0'; |
1742 |
afname[0] = '\0'; |
1741 |
while ((i = getopt_long(argc, argv, "MCFA:acdegphi::nNorstuVv?wxl", longopts, &lop)) != EOF) |
1743 |
|
|
|
1744 |
while ((i = getopt_long(argc, argv, "MCFA:acdegphiI::nNorstuVv?wxl", longopts, &lop)) != EOF) |
1742 |
switch (i) { |
1745 |
switch (i) { |
1743 |
case -1: |
1746 |
case -1: |
1744 |
break; |
1747 |
break; |
Lines 1773-1781
Link Here
|
1773 |
case 'p': |
1773 |
case 'p': |
1774 |
flag_prg++; |
1774 |
flag_prg++; |
1775 |
break; |
1775 |
break; |
|
|
1776 |
case 'I': |
1777 |
if (optarg != NULL) { |
1778 |
if (optarg[0] == '=') { |
1779 |
optarg++; |
1780 |
} |
1781 |
flag_int_name = strdup(optarg); |
1782 |
} |
1783 |
flag_int++; |
1784 |
break; |
1776 |
case 'i': |
1785 |
case 'i': |
1777 |
if (optarg && strcmp(optarg, "(null)")) |
|
|
1778 |
flag_int_name = strdup(optarg); |
1779 |
flag_int++; |
1786 |
flag_int++; |
1780 |
break; |
1787 |
break; |
1781 |
case 'n': |
1788 |
case 'n': |