|
5 | 5 | #include "util/stringUtils.h" |
6 | 6 |
|
7 | 7 | #define FF_LOCALIP_DISPLAY_NAME "Local IP" |
8 | | -#define FF_LOCALIP_NUM_FORMAT_ARGS 5 |
| 8 | +#define FF_LOCALIP_NUM_FORMAT_ARGS 6 |
9 | 9 | #pragma GCC diagnostic ignored "-Wsign-conversion" |
10 | 10 |
|
11 | 11 | static int sortIps(const FFLocalIpResult* left, const FFLocalIpResult* right) |
@@ -116,6 +116,7 @@ void ffPrintLocalIp(FFLocalIpOptions* options) |
116 | 116 | {FF_FORMAT_ARG_TYPE_STRBUF, &ip->mac, "mac"}, |
117 | 117 | {FF_FORMAT_ARG_TYPE_STRBUF, &ip->name, "ifname"}, |
118 | 118 | {FF_FORMAT_ARG_TYPE_BOOL, &ip->defaultRoute, "is-default-route"}, |
| 119 | + {FF_FORMAT_ARG_TYPE_INT, &ip->mtu, "mtu"}, |
119 | 120 | })); |
120 | 121 | } |
121 | 122 | ++index; |
@@ -392,7 +393,8 @@ void ffPrintLocalIpHelpFormat(void) |
392 | 393 | "Local IPv6 address - ipv6", |
393 | 394 | "Physical (MAC) address - mac", |
394 | 395 | "Interface name - ifname", |
395 | | - "Is default route - is-default-route" |
| 396 | + "Is default route - is-default-route", |
| 397 | + "MTU size in bytes - mtu", |
396 | 398 | })); |
397 | 399 | } |
398 | 400 |
|
|
0 commit comments