X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4d15aeb193b2c68f1d38666c317f8d3734f5f083..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/bsd/net/ether_if_module.c diff --git a/bsd/net/ether_if_module.c b/bsd/net/ether_if_module.c index 8fd6074f1..3335bb6c4 100644 --- a/bsd/net/ether_if_module.c +++ b/bsd/net/ether_if_module.c @@ -102,11 +102,12 @@ #if IF_BRIDGE #include #endif /* IF_BRIDGE */ +#if IF_FAKE +#include +#endif /* IF_FAKE */ #include -#define memcpy(x,y,z) bcopy(y, x, z) - SYSCTL_DECL(_net_link); SYSCTL_NODE(_net_link, IFT_ETHER, ether, CTLFLAG_RW|CTLFLAG_LOCKED, 0, "Ethernet"); @@ -118,7 +119,11 @@ struct en_desc { }; /* descriptors are allocated in blocks of ETHER_DESC_BLK_SIZE */ +#if CONFIG_EMBEDDED +#define ETHER_DESC_BLK_SIZE (2) /* IP, ARP */ +#else #define ETHER_DESC_BLK_SIZE (10) +#endif /* * Header for the demux list, hangs off of IFP at if_family_cookie @@ -636,6 +641,10 @@ ether_family_init(void) #if IF_BRIDGE bridgeattach(0); #endif /* IF_BRIDGE */ +#if IF_FAKE + if_fake_init(); +#endif /* IF_FAKE */ + done: return (error);