diff --git a/CHANGELOG b/CHANGELOG index 4080d4fa..54a34be3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/src/include/lwip/netif.h b/src/include/lwip/netif.h index b155152a..6ca0ffd7 100644 --- a/src/include/lwip/netif.h +++ b/src/include/lwip/netif.h @@ -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);