Files
termux-packages/packages/nmap/libdnet-stripped-src-route-linux.c.patch
termux-pacman-bot 964ce79d02 bump(main/nmap): 7.97
2025-06-15 15:06:38 +00:00

12 lines
437 B
Diff

--- a/libdnet-stripped/src/route-linux.c
+++ b/libdnet-stripped/src/route-linux.c
@@ -146,7 +146,7 @@
memcpy(&rt.rtmsg_dst, &dst.addr_ip6, sizeof(rt.rtmsg_dst));
- if (!IN6_IS_ADDR_UNSPECIFIED(&entry->route_gw.addr_ip6)) {
+ if (!IN6_IS_ADDR_UNSPECIFIED((const struct in6_addr *)&entry->route_gw.addr_ip6)) {
rt.rtmsg_flags |= RTF_GATEWAY;
memcpy(&rt.rtmsg_gateway, &entry->route_gw.addr_ip6,
sizeof(rt.rtmsg_gateway));