Fix wrong rta type.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
parent
1df1b625a8
commit
8f944eeb21
1 changed files with 1 additions and 1 deletions
2
l2tpns.c
2
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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue