diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-13 02:49:49 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-13 02:49:49 +0100 |
commit | cb65731e57858bab9b60afedd70252cd3f3a6697 (patch) | |
tree | 6a41ea52019408e25a102c958ecb8b8d93f23c83 /src/device.c | |
parent | 13e1a47b6c309885f547459a223603ca91055365 (diff) |
peer: don't use sockaddr_storage to reduce memory usage
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index 68e74b9..0c9434a 100644 --- a/src/device.c +++ b/src/device.c @@ -135,7 +135,7 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev) } read_lock_bh(&peer->endpoint_lock); - ret = peer->endpoint.addr_storage.ss_family != AF_INET && peer->endpoint.addr_storage.ss_family != AF_INET6; + ret = peer->endpoint.addr.sa_family != AF_INET && peer->endpoint.addr.sa_family != AF_INET6; read_unlock_bh(&peer->endpoint_lock); if (unlikely(ret)) { ret = -EHOSTUNREACH; |