summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-04-13 15:54:54 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-04-13 15:54:54 +0200
commitf16e6c9569cafdcccdeb52034bcdab45eba64bfc (patch)
tree5ecc3fa14437b10289929b30607cabfdde23fdb8 /src/ipcpd
parent58a31360a6637b564dc73246b8e50ca9d0f39b8c (diff)
downloadouroboros-f16e6c9569cafdcccdeb52034bcdab45eba64bfc.tar.gz
ouroboros-f16e6c9569cafdcccdeb52034bcdab45eba64bfc.zip
ipcpd: Fix LLC shim for BSD using netmap
Fixes #22
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/shim-eth-llc/main.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ipcpd/shim-eth-llc/main.c b/src/ipcpd/shim-eth-llc/main.c
index 9a9e11b5..5ac3bb6f 100644
--- a/src/ipcpd/shim-eth-llc/main.c
+++ b/src/ipcpd/shim-eth-llc/main.c
@@ -745,18 +745,16 @@ static int eth_llc_ipcp_bootstrap(const struct ipcp_config * conf)
struct ifreq ifr;
#ifdef HAVE_NETMAP
char ifn[IFNAMSIZ];
- #ifndef __FreeBSD__
- int skfd;
- #endif
#else
struct timeval tv = {0, EVENT_WAIT_TIMEOUT * 1000};
- #ifdef __FreeBSD__
+#endif /* HAVE_NETMAP */
+
+#ifdef __FreeBSD__
struct ifaddrs * ifaddr;
struct ifaddrs * ifa;
- #endif
+#else
int skfd;
-#endif /* HAVE_NETMAP */
-
+#endif
assert(conf);
assert(conf->type == THIS_TYPE);