Skip to content

Commit

Permalink
net/gptp: net_gptp_recv() dummy function needs to return a verdict
Browse files Browse the repository at this point in the history
Since gptp is disabled in this case, let's return NET_DROP.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
  • Loading branch information
Tomasz Bursztyka authored and jukkar committed Jul 10, 2019
1 parent 17b0552 commit 5994506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/ip/net_private.h
Expand Up @@ -79,7 +79,7 @@ void net_gptp_init(void);
enum net_verdict net_gptp_recv(struct net_if *iface, struct net_pkt *pkt); enum net_verdict net_gptp_recv(struct net_if *iface, struct net_pkt *pkt);
#else #else
#define net_gptp_init() #define net_gptp_init()
#define net_gptp_recv(iface, pkt) #define net_gptp_recv(iface, pkt) NET_DROP
#endif /* CONFIG_NET_GPTP */ #endif /* CONFIG_NET_GPTP */


#if defined(CONFIG_NET_IPV6_FRAGMENT) #if defined(CONFIG_NET_IPV6_FRAGMENT)
Expand Down

0 comments on commit 5994506

Please sign in to comment.