mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Add source address to RA packet dumps.
This commit is contained in:
@@ -560,7 +560,13 @@ static void send_ra_alias(time_t now, int iface, char *iface_name, struct in6_ad
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DUMPFILE
|
#ifdef HAVE_DUMPFILE
|
||||||
dump_packet_icmp(DUMP_RA, (void *)daemon->outpacket.iov_base, save_counter(-1), NULL, (union mysockaddr *)&addr);
|
{
|
||||||
|
struct sockaddr_in6 src;
|
||||||
|
src.sin6_family = AF_INET6;
|
||||||
|
src.sin6_addr = parm.link_local;
|
||||||
|
|
||||||
|
dump_packet_icmp(DUMP_RA, (void *)daemon->outpacket.iov_base, save_counter(-1), (union mysockaddr *)&src, (union mysockaddr *)&addr);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (retry_send(sendto(daemon->icmp6fd, daemon->outpacket.iov_base,
|
while (retry_send(sendto(daemon->icmp6fd, daemon->outpacket.iov_base,
|
||||||
|
|||||||
Reference in New Issue
Block a user