Add source address to RA packet dumps.

This commit is contained in:
Simon Kelley
2022-09-06 18:08:39 +01:00
parent 84a6d07cdd
commit 32588c755a

View File

@@ -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,