mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When neither of supported frame type is enabled via kernel options enable
them all, otherwise the driver will be useless and will only confuse user as manual page says nothing about the need to enable one of those frame types explicitly in the kernel config. PR: kern/47152 Submitted by: Andriy Gapon <avg@icyb.net.ua> MFC after: 3 days
This commit is contained in:
parent
a10260280f
commit
5c16270365
1 changed files with 9 additions and 0 deletions
|
|
@ -61,6 +61,15 @@
|
|||
#include <netipx/ipx_if.h>
|
||||
#endif
|
||||
|
||||
/* If none of the supported layers is enabled explicitly enable them all */
|
||||
#if !defined(ETHER_II) && !defined(ETHER_8023) && !defined(ETHER_8022) && \
|
||||
!defined(ETHER_SNAP)
|
||||
#define ETHER_II 1
|
||||
#define ETHER_8023 1
|
||||
#define ETHER_8022 1
|
||||
#define ETHER_SNAP 1
|
||||
#endif
|
||||
|
||||
/* internal frame types */
|
||||
#define ETHER_FT_EII 0 /* Ethernet_II - default */
|
||||
#define ETHER_FT_8023 1 /* 802.3 (Novell) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue