]> git.ipfire.org Git - people/ms/dnsmasq.git/commit - src/dnsmasq.h
Set interface with longest prefix in DHCP & DHCPv6 lease
authorLung-Pin Chang <changlp@cs.nctu.edu.tw>
Wed, 2 Jul 2014 02:48:05 +0000 (10:48 +0800)
committerLung-Pin Chang <changlp@cs.nctu.edu.tw>
Sun, 6 Jul 2014 13:08:47 +0000 (21:08 +0800)
commitdc8a1b1bcf1a4420063c3a708580fcd3277130c5
treef5cd735ba37a8ab5ccef45415251ac2e403f1f16
parentcdb755c5f16a6768c3e8b1f345fe15fc9244228d
Set interface with longest prefix in DHCP & DHCPv6 lease

- With nested prefixes reside on different interfaces of single host

  (e.g., in 6to4, 2002::/16 on WAN and 2002:<IPv4>:<subnet>::/64 on LAN),

  current matching mechanism might return the interface with shorter prefix

  length instead of the longer one, if it appears later in the netlink message.

Signed-off-by: Lung-Pin Chang <changlp@cs.nctu.edu.tw>
src/dnsmasq.h
src/lease.c
src/util.c