freebsd_network: Some small additions for FreeBSD 12 drivers.

This commit is contained in:
Augustin Cavalier 2018-12-27 16:51:48 -05:00
parent 125df15288
commit d5b99ecde7
3 changed files with 18 additions and 0 deletions

View File

@ -79,6 +79,9 @@ CTASSERT(sizeof (struct ether_addr) == ETHER_ADDR_LEN);
#endif
#define ETHER_IS_MULTICAST(addr) (*(addr) & 0x01) /* is address mcast/bcast? */
#define ETHER_IS_BROADCAST(addr) \
(((addr)[0] & (addr)[1] & (addr)[2] & \
(addr)[3] & (addr)[4] & (addr)[5]) == 0xff)
/*
* NOTE: 0x0000-0x05DC (0..1500) are generally IEEE 802.3 length fields.

View File

@ -0,0 +1,14 @@
/*
* Copyright 2018, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _FBSD_COMPAT_NETINET_NETDUMP_H_
#define _FBSD_COMPAT_NETINET_NETDUMP_H_
#define NETDUMP_DEFINE(driver)
#define NETDUMP_REINIT(ifp)
#define NETDUMP_SET(ifp, driver)
#endif /* _FBSD_COMPAT_NETINET_NETDUMP_H_ */

View File

@ -19,5 +19,6 @@ typedef enum modeventtype {
#define MODULE_VERSION(name, version)
#define MODULE_DEPEND(module, mdepend, vmin, vpref, vmax)
#define MODULE_PNP_INFO(d, b, unique, t, n)
#endif