summaryrefslogtreecommitdiffhomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-13 02:49:49 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-13 02:49:49 +0100
commitcb65731e57858bab9b60afedd70252cd3f3a6697 (patch)
tree6a41ea52019408e25a102c958ecb8b8d93f23c83 /src/device.c
parent13e1a47b6c309885f547459a223603ca91055365 (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.c2
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;