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 <dsahern@gmail.com>
This commit is contained in:
parent
4ad875944f
commit
741dd5cd9c
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue