提交 fdc7ebfb 编写于 作者: D Daniel P. Berrangé

nwfilter: make virNWFilterIPAddrLearnReq type private

The virNWFilterIPAddrLearnReq type should only be used by the IP address
learning code, so can live in the implementation file instead of header
file.
Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 b6ac5a82
......@@ -133,6 +133,23 @@ struct _virNWFilterIfaceLock {
int refctr;
};
typedef struct _virNWFilterIPAddrLearnReq virNWFilterIPAddrLearnReq;
typedef virNWFilterIPAddrLearnReq *virNWFilterIPAddrLearnReqPtr;
struct _virNWFilterIPAddrLearnReq {
virNWFilterTechDriverPtr techdriver;
char ifname[IF_NAMESIZE];
int ifindex;
char linkdev[IF_NAMESIZE];
virMacAddr macaddr;
char *filtername;
virHashTablePtr filterparams;
virNWFilterDriverStatePtr driver;
enum howDetect howDetect;
int status;
volatile bool terminate;
};
static bool threadsTerminate;
......
......@@ -35,23 +35,6 @@ enum howDetect {
DETECT_STATIC = 2,
};
typedef struct _virNWFilterIPAddrLearnReq virNWFilterIPAddrLearnReq;
typedef virNWFilterIPAddrLearnReq *virNWFilterIPAddrLearnReqPtr;
struct _virNWFilterIPAddrLearnReq {
virNWFilterTechDriverPtr techdriver;
char ifname[IF_NAMESIZE];
int ifindex;
char linkdev[IF_NAMESIZE];
virMacAddr macaddr;
char *filtername;
virHashTablePtr filterparams;
virNWFilterDriverStatePtr driver;
enum howDetect howDetect;
int status;
volatile bool terminate;
};
int virNWFilterLearnIPAddress(virNWFilterTechDriverPtr techdriver,
const char *ifname,
int ifindex,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册