From b81ece31e40fb1e2236d389b75fce3b2d0a3d3fa Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Fri, 3 Jun 2016 14:20:03 +0200 Subject: [PATCH] net: Add comment explaining net_core's verdict values It is then clear what logic to expect once such verdict has been given. Change-Id: Id64ff00e65ffe2dad45673d1eca4eb76ae3ae1f6 Signed-off-by: Tomasz Bursztyka --- include/net/yaip/net_core.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/net/yaip/net_core.h b/include/net/yaip/net_core.h index 66889297686..fb21957c736 100644 --- a/include/net/yaip/net_core.h +++ b/include/net/yaip/net_core.h @@ -72,9 +72,10 @@ struct net_if; #include enum net_verdict { - NET_OK, - NET_CONTINUE, - NET_DROP, + NET_OK, /** Packet has been taken care of */ + NET_CONTINUE, /** Packet has not been touched, + other part should decide about its fate */ + NET_DROP, /** Packet must be dropped */ }; /* Called by lower network stack when a network packet has been received */