From 8f944eeb2197070c98c0e98b92d95cf3d35fdf67 Mon Sep 17 00:00:00 2001 From: Benjamin Cama Date: Tue, 16 Aug 2011 19:04:08 +0200 Subject: [PATCH] Fix wrong rta type. Signed-off-by: Benjamin Cama --- l2tpns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l2tpns.c b/l2tpns.c index 96c6b00..8224275 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -723,7 +723,7 @@ static void inittun(void) req.ifmsg.ifaddr.ifa_index = ifinfo.ifi_index; ipv4_attr.rta.rta_len = RTA_LENGTH(sizeof(ipv4_attr.addr)); - ipv4_attr.rta.rta_type = IFA_ADDRESS; + ipv4_attr.rta.rta_type = IFA_LOCAL; ipv4_attr.addr.s_addr = config->bind_address ? config->bind_address : 0x01010101; // 1.1.1.1 memcpy(NLMSG_DATA(&req.nh) + sizeof(req.ifmsg.ifaddr), &ipv4_attr, sizeof(ipv4_attr)); -- 2.20.1