Since the switch to Netlink, the IP address was not advertised
correctly. Fix `netlink_send()`. Patch courtesy of Pradosh Mohapatra
from Cumulus Networks.
+lldpd (0.7.3)
+ * Fixes:
+ + Fix IPv4/IPv6 address discovery in Linux.
+
lldpd (0.7.2)
* Features
+ lldpd can be configured through /etc/lldpd.conf and
struct netlink_req req = {
.hdr = {
.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtgenmsg)),
- .nlmsg_type = RTM_GETLINK,
+ .nlmsg_type = type,
.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP,
.nlmsg_seq = 1,
.nlmsg_pid = getpid() },
- .gen = { .rtgen_family = AF_PACKET }
+ .gen = { .rtgen_family = family }
};
struct iovec iov = {
.iov_base = &req,