From 7fc8d918b9674c3e9233d6d25da2457345d414a0 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Mon, 5 Mar 2012 11:08:50 +0800 Subject: net: move compute_mcast_idx() to net.h Reduce duplicated codes. Signed-off-by: Jason Wang Signed-off-by: Michael S. Tsirkin --- net.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net.h') diff --git a/net.h b/net.h index 75a8c155e5..64993b43ef 100644 --- a/net.h +++ b/net.h @@ -182,6 +182,9 @@ void qdev_set_nic_properties(DeviceState *dev, NICInfo *nd); int net_handle_fd_param(Monitor *mon, const char *param); +#define POLYNOMIAL 0x04c11db6 +unsigned compute_mcast_idx(const uint8_t *ep); + #define vmstate_offset_macaddr(_state, _field) \ vmstate_offset_array(_state, _field.a, uint8_t, \ sizeof(typeof_field(_state, _field))) -- cgit v1.2.1