15 #include <net/ethernet.h>
26 #define IPV4_ADDR_SIZE 4
28 #define CNET_MAX_QIDS 16
29 struct eth_port_data {
32 uint16_t qids[CNET_MAX_QIDS];
38 uint64_t lookup_failed;
47 uint64_t p1 = *(uint64_t *)c1;
48 uint64_t p2 = *(uint64_t *)c2;
50 p1 &= htole64(0xFFFFFFFFFFFF0000L);
51 p2 &= htole64(0xFFFFFFFFFFFF0000L);
67 cnet_eth_set_multicast(
struct ether_addr *ea,
struct in_addr *ip)
uint8_t ether_addr_octet[ETH_ALEN]