Network: Misc fixes for clean complete with both Ethernet and SLIP enabled

This commit is contained in:
Gregory Nutt
2014-11-15 08:55:50 -06:00
parent 3ffbfc6bbd
commit 2b758537ea
5 changed files with 40 additions and 42 deletions
+1 -6
View File
@@ -82,17 +82,12 @@
* should be set to 0.
*/
#undef CONFIG_NET_ETHERNET
#undef CONFIG_NET_ARP
#ifdef CONFIG_NET_SLIP
# ifdef CONFIG_NET_IPv6
# error "SLIP is not implemented for IPv6"
# error SLIP is not available for IPv6
# endif
# define NET_LL_HDRLEN 0
#else
# define CONFIG_NET_ETHERNET 1
# define CONFIG_NET_ARP 1
# define NET_LL_HDRLEN 14
#endif