diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-25 01:03:23 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-25 01:03:23 +0200 |
commit | 9ac7f3588dda7d175e04878e7b871a88306d13bf (patch) | |
tree | 00846bf23da618f6fb43da1b24c8b877dd6df60f /src/send.c | |
parent | fc5e06a19c090d98620a735e33b57aee7c43107d (diff) | |
download | fastd-9ac7f3588dda7d175e04878e7b871a88306d13bf.tar fastd-9ac7f3588dda7d175e04878e7b871a88306d13bf.zip |
Don't depend on net/if_ether.h
Instead of adding compatiblity code to make this work with musl, just duplicate
the needed definitions in fastd.
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -209,7 +209,7 @@ static inline bool send_data_tap_single(fastd_buffer_t buffer, fastd_peer_t *sou if (conf.mode != MODE_TAP) return false; - if (buffer.len < ETH_HLEN) { + if (buffer.len < sizeof(fastd_eth_header_t)) { pr_debug("truncated ethernet packet"); fastd_buffer_free(buffer); return true; |