Lines Matching refs:mps_macs
58 uint8_t *tlvs, uint8_t mps_macs, uint8_t device_type);
421 * plus the possible MAC address(es) to mpc->mps_macs.
422 * For a freshly allocated MPOA client mpc->mps_macs == 0.
425 uint8_t *tlvs, uint8_t mps_macs, uint8_t device_type)
428 num_macs = (mps_macs > 1) ? mps_macs : 1;
431 if (mpc->number_of_mps_macs != 0) kfree(mpc->mps_macs);
433 mpc->mps_macs = kmalloc(num_macs*ETH_ALEN, GFP_KERNEL);
434 if (mpc->mps_macs == NULL) {
439 memcpy(mpc->mps_macs, router_mac, ETH_ALEN);
441 if (mps_macs > 0)
442 memcpy(mpc->mps_macs, tlvs, mps_macs*ETH_ALEN);
443 tlvs += mps_macs*ETH_ALEN;
537 if (!compare_ether_addr(eth->h_dest, (mpc->mps_macs + i*ETH_ALEN)))
1316 kfree(client->mps_macs);
1318 client->mps_macs = kmemdup(msg->MPS_ctrl, ETH_ALEN, GFP_KERNEL);
1319 if (client->mps_macs == NULL) {
1457 kfree(mpc->mps_macs);