diff options
author | Jason Wang <jasowang@redhat.com> | 2012-03-05 11:08:50 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-03-16 01:04:51 +0200 |
commit | 7fc8d918b9674c3e9233d6d25da2457345d414a0 (patch) | |
tree | a834bd8e25277d2f6d5018945f2b64dfb7d602fe /net.h | |
parent | afe0a595356192d5f79703cf6462fcc112df007c (diff) | |
download | qemu-7fc8d918b9674c3e9233d6d25da2457345d414a0.zip qemu-7fc8d918b9674c3e9233d6d25da2457345d414a0.tar.gz qemu-7fc8d918b9674c3e9233d6d25da2457345d414a0.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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))) |