| 636 | } |
| 637 | |
| 638 | rt_err_t eth_device_init(struct eth_device * dev, const char *name) |
| 639 | { |
| 640 | rt_uint16_t flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP; |
| 641 | |
| 642 | #if LWIP_IGMP |
| 643 | /* IGMP support */ |
| 644 | flags |= NETIF_FLAG_IGMP; |
| 645 | #endif |
| 646 | |
| 647 | return eth_device_init_with_flag(dev, name, flags); |
| 648 | } |
| 649 | |
| 650 | void eth_device_deinit(struct eth_device *dev) |
| 651 | { |
no test coverage detected