aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2012-03-05 11:08:50 +0800
committerMichael S. Tsirkin <mst@redhat.com>2012-03-16 01:04:51 +0200
commit7fc8d918b9674c3e9233d6d25da2457345d414a0 (patch)
treea834bd8e25277d2f6d5018945f2b64dfb7d602fe /net.h
parentafe0a595356192d5f79703cf6462fcc112df007c (diff)
net: move compute_mcast_idx() to net.h
Reduce duplicated codes. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'net.h')
-rw-r--r--net.h3
1 files changed, 3 insertions, 0 deletions
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)))