Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/oce/oce_hw.c
Show First 20 Lines • Show All 547 Lines • ▼ Show 20 Lines | |||||
oce_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) | oce_copy_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt) | ||||
{ | { | ||||
struct mbx_set_common_iface_multicast *req = arg; | struct mbx_set_common_iface_multicast *req = arg; | ||||
if (req->params.req.num_mac == OCE_MAX_MC_FILTER_SIZE) | if (req->params.req.num_mac == OCE_MAX_MC_FILTER_SIZE) | ||||
return (0); | return (0); | ||||
bcopy(LLADDR(sdl), &req->params.req.mac[req->params.req.num_mac++], | bcopy(LLADDR(sdl), &req->params.req.mac[req->params.req.num_mac++], | ||||
ETH_ADDR_LEN); | ETHER_ADDR_LEN); | ||||
return (1); | return (1); | ||||
} | } | ||||
/** | /** | ||||
* @brief Function for hardware update multicast filter | * @brief Function for hardware update multicast filter | ||||
* @param sc software handle to the device | * @param sc software handle to the device | ||||
Show All 32 Lines |