* 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. */
| 859 | * @param addr_callback the callback be called when the address has been changed. |
| 860 | */ |
| 861 | void 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 | /** |
no outgoing calls