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

Function netdev_dhcp_close

components/net/netdev/src/netdev.c:627–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627int netdev_dhcp_close(char *netdev_name)
628{
629 struct netdev *netdev = RT_NULL;
630
631 netdev = netdev_get_by_name(netdev_name);
632 if (netdev == RT_NULL)
633 {
634 rt_kprintf("bad network interface device name(%s).\n", netdev_name);
635 return -1;
636 }
637 netdev_dhcp_enabled(netdev, RT_FALSE);
638 return 0;
639}
640#endif /* RT_LWIP_DHCP */
641
642/**

Callers 1

netdev_set_ifFunction · 0.85

Calls 3

netdev_get_by_nameFunction · 0.85
rt_kprintfFunction · 0.85
netdev_dhcp_enabledFunction · 0.85

Tested by

no test coverage detected