mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-26 13:40:22 +00:00
12 lines
437 B
Diff
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));
|