MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / netdev_set_addr_callback

Function netdev_set_addr_callback

components/net/netdev/src/netdev.c:861–867  ·  view source on GitHub ↗

* This function will set callback to be called when the network interface device address has been changed. * * @param netdev the network interface device to change * @param addr_callback the callback be called when the address has been changed. */

Source from the content-addressed store, hash-verified

859 * @param addr_callback the callback be called when the address has been changed.
860 */
861void netdev_set_addr_callback(struct netdev *netdev, netdev_callback_fn addr_callback)
862{
863 RT_ASSERT(netdev);
864 RT_ASSERT(addr_callback);
865
866 netdev->addr_callback = addr_callback;
867}
868
869
870/**

Callers 1

test_netdev_callbacksFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_netdev_callbacksFunction · 0.68