mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 14:29:39 +00:00
added netif_s/get_igmp_mac_filter() macros
This commit is contained in:
parent
27d4cf6aef
commit
49274c1507
@ -19,6 +19,9 @@ HISTORY
|
||||
|
||||
++ New features:
|
||||
|
||||
2010-02-08: Simon Goldschmidt
|
||||
* netif.h: Added
|
||||
|
||||
2010-02-05: Simon Goldschmidt
|
||||
* netif.h: Added function-like macros to get/set the hostname on a netif
|
||||
|
||||
|
@ -285,6 +285,11 @@ void netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_
|
||||
#define netif_get_hostname(netif) (((netif) != NULL) ? ((netif)->hostname) : NULL)
|
||||
#endif /* LWIP_NETIF_HOSTNAME */
|
||||
|
||||
#if LWIP_IGMP
|
||||
#define netif_set_igmp_mac_filter(netif, function) do { if((netif) != NULL) { (netif)->igmp_mac_filter = function; }}while(0)
|
||||
#define netif_get_igmp_mac_filter(netif) (((netif) != NULL) ? ((netif)->igmp_mac_filter) : NULL)
|
||||
#endif /* LWIP_IGMP */
|
||||
|
||||
#if ENABLE_LOOPBACK
|
||||
err_t netif_loop_output(struct netif *netif, struct pbuf *p, ip_addr_t *dest_ip);
|
||||
void netif_poll(struct netif *netif);
|
||||
|
Loading…
Reference in New Issue
Block a user