mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
iface: update documentation
For one, the tabs must go as they cause alignment problems. Also update the manpage with proper markup.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
|
||||
- add "iface" match
|
||||
- fuzzy: need to account for kernel-level modified variables in .userspacesize
|
||||
- geoip: remove XT_ALIGN from .userspacesize when used with offsetof
|
||||
- SYSRQ: ignore non-UDP packets
|
||||
|
@@ -32,7 +32,7 @@ static const struct option iface_mt_opts[] = {
|
||||
{.name = "dynamic", .has_arg = false, .val = 'd'},
|
||||
{.name = "lower-up", .has_arg = false, .val = 'w'},
|
||||
{.name = "dormant", .has_arg = false, .val = 'a'},
|
||||
{.name = NULL},
|
||||
{NULL},
|
||||
};
|
||||
|
||||
static void iface_print_opt(const struct xt_iface_mtinfo *info,
|
||||
@@ -68,21 +68,19 @@ static void iface_mt_help(void)
|
||||
{
|
||||
printf(
|
||||
"iface match options:\n"
|
||||
" --iface interface\t\tName of interface\n"
|
||||
"[!] --up\n"
|
||||
"[!] --down\t\t\tmatch if UP flag (not) set\n"
|
||||
"[!] --broadcast\t\tmatch if BROADCAST flag (not) set\n"
|
||||
"[!] --loopback\t\t\tmatch if LOOPBACK flag (not) set\n"
|
||||
" --iface interface Name of interface\n"
|
||||
"[!] --up / --down match if UP flag (not) set\n"
|
||||
"[!] --broadcast match if BROADCAST flag (not) set\n"
|
||||
"[!] --loopback match if LOOPBACK flag (not) set\n"
|
||||
"[!] --pointopoint\n"
|
||||
"[!] --pointtopoint\t\tmatch if POINTOPOINT flag (not) set\n"
|
||||
"[!] --running\t\t\tmatch if RUNNING flag (not) set\n"
|
||||
"[!] --noarp\n"
|
||||
"[!] --arp\t\t\tmatch if NOARP flag (not) set\n"
|
||||
"[!] --promisc\t\t\tmatch if PROMISC flag (not) set\n"
|
||||
"[!] --multicast\t\tmatch if MULTICAST flag (not) set\n"
|
||||
"[!] --dynamic\t\t\tmatch if DYNAMIC flag (not) set\n"
|
||||
"[!] --lower-up\t\t\tmatch if LOWER_UP flag (not) set\n"
|
||||
"[!] --dormant\t\t\tmatch if DORMANT flag (not) set\n");
|
||||
"[!] --pointtopoint match if POINTOPOINT flag (not) set\n"
|
||||
"[!] --running match if RUNNING flag (not) set\n"
|
||||
"[!] --noarp / --arp match if NOARP flag (not) set\n"
|
||||
"[!] --promisc match if PROMISC flag (not) set\n"
|
||||
"[!] --multicast match if MULTICAST flag (not) set\n"
|
||||
"[!] --dynamic match if DYNAMIC flag (not) set\n"
|
||||
"[!] --lower-up match if LOWER_UP flag (not) set\n"
|
||||
"[!] --dormant match if DORMANT flag (not) set\n");
|
||||
}
|
||||
|
||||
static int iface_mt_parse(int c, char **argv, int invert, unsigned int *flags,
|
||||
|
@@ -1,52 +1,37 @@
|
||||
Allows you to check interface states.
|
||||
|
||||
.TP
|
||||
.BI "--iface " "interface"
|
||||
Check the states on "interface". Required.
|
||||
\fB\-\-iface\fP \fIname\fP
|
||||
Check the states on the given interface. This option is required.
|
||||
.TP
|
||||
.B [!] --up
|
||||
[\fB!\fP] \fB\-\-up\fP, [\fB!\fP] \fB\-\-down\fP
|
||||
Check the UP flag.
|
||||
.TP
|
||||
.B [!] --down
|
||||
Not --up.
|
||||
.TP
|
||||
.B "[!] --broadcast"
|
||||
[\fB!\fP] \fB\-\-broadcast\fP
|
||||
Check the BROADCAST flag.
|
||||
.TP
|
||||
.B "[!] --loopback"
|
||||
[\fB!\fP] \fB\-\-loopback\fP
|
||||
Check the LOOPBACK flag.
|
||||
.TP
|
||||
.B "[!] --pointopoint"
|
||||
Check the POINTOPOINT flag.
|
||||
[\fB!\fP] \fB\-\-pointtopoint\fP
|
||||
Check the POINTTOPOINT flag.
|
||||
.TP
|
||||
.B "[!] --pointtopoint"
|
||||
Same as --pointopoint.
|
||||
[\fB!\fP] \fB\-\-running\fP
|
||||
Check the RUNNING flag. Do NOT rely on it!
|
||||
.TP
|
||||
.B [!] --running
|
||||
Check the RUNNING flag. Do NOT relay on it!
|
||||
.TP
|
||||
.B [!] --noarp
|
||||
[\fB!\fP] \fB\-\-noarp\fP, [\fB!\fP] \fB\-\-arp\fP
|
||||
Check the NOARP flag.
|
||||
.TP
|
||||
.B [!] --arp
|
||||
Not --noarp.
|
||||
.TP
|
||||
.B [!] --promisc
|
||||
[\fB!\fP] \fB\-\-promisc\fP
|
||||
Check the PROMISC flag.
|
||||
.TP
|
||||
.B [!] --promiscous
|
||||
Same as --promisc.
|
||||
.TP
|
||||
.B [!] --multicast
|
||||
[\fB!\fP] \fB\-\-multicast\fP
|
||||
Check the MULTICAST flag.
|
||||
.TP
|
||||
.B [!] --dynamic
|
||||
[\fB!\fP] \fB\-\-dynamic\fP
|
||||
Check the DYNAMIC flag.
|
||||
.TP
|
||||
.B [!] --lower_up
|
||||
[\fB!\fP] \fB\-\-lower-up\fP
|
||||
Check the LOWER_UP flag.
|
||||
.TP
|
||||
.B [!] --dormant
|
||||
[\fB!\fP] \fB\-\-dormant\fP
|
||||
Check the DORMANT flag.
|
||||
|
||||
For more information see the \fIif.h\fP header file in the kernel source.
|
||||
|
Reference in New Issue
Block a user