From: David Ahern Date: Sat, 27 May 2017 23:34:48 +0000 (-0600) Subject: ip address: Move filter struct to ip_common.h X-Git-Tag: v4.12.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741dd5cd9c8d499e41bfef0741bc8b8b869abaac;p=thirdparty%2Fiproute2.git ip address: Move filter struct to ip_common.h Move filter struct to ip_common.h as struct link_filter. Signed-off-by: David Ahern --- diff --git a/ip/ip_common.h b/ip/ip_common.h index 450b45ac2..2b3cf7049 100644 --- a/ip/ip_common.h +++ b/ip/ip_common.h @@ -1,3 +1,23 @@ +struct link_filter { + int ifindex; + int family; + int oneline; + int showqueue; + inet_prefix pfx; + int scope, scopemask; + int flags, flagmask; + int up; + char *label; + int flushed; + char *flushb; + int flushp; + int flushe; + int group; + int master; + char *kind; + char *slave_kind; +}; + int get_operstate(const char *name); int print_linkinfo(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); diff --git a/ip/ipaddress.c b/ip/ipaddress.c index c805b9291..3e2c38a8e 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -44,27 +44,7 @@ enum { IPADD_SAVE, }; -static struct -{ - int ifindex; - int family; - int oneline; - int showqueue; - inet_prefix pfx; - int scope, scopemask; - int flags, flagmask; - int up; - char *label; - int flushed; - char *flushb; - int flushp; - int flushe; - int group; - int master; - char *kind; - char *slave_kind; -} filter; - +static struct link_filter filter; static int do_link; static void usage(void) __attribute__((noreturn));