From 2c2d11fa4d887f85258a5aeb0311292e95733afb Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sat, 30 Jul 2016 10:40:36 +0200 Subject: [PATCH] Update documentation of netif_input function --- src/core/netif.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/netif.c b/src/core/netif.c index 6e968e2b..a635a608 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -174,8 +174,13 @@ netif_init(void) } /** - * Pass a received packet for input processing with - * ethernet_input or ip_input depending on netif flags. + * @ingroup lwip_nosys + * Forwards a received packet for input processing with + * ethernet_input() or ip_input() depending on netif flags. + * Don't call directly, pass to netif_add() and call + * netif->input(). + * Only works if the netif driver correctly sets + * NETIF_FLAG_ETHARP and/or NETIF_FLAG_ETHERNET flag! */ err_t netif_input(struct pbuf *p, struct netif *inp)