Magellan Linux

Contents of /trunk/systemd/patches/systemd-228-sd-ndisc-drop-RA-packets-from-non-link-local-addresses.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2751 - (show annotations) (download)
Thu Jan 14 13:29:31 2016 UTC (8 years, 3 months ago) by niro
File size: 438 byte(s)
-upstream networkd fixes
1 --- systemd/src/libsystemd-network/sd-ndisc.c 2016-01-14 14:31:32.502553178 +0100
2 +++ systemd-patched/src/libsystemd-network/sd-ndisc.c 2016-01-14 14:29:50.346061064 +0100
3 @@ -508,6 +508,9 @@
4 return 0;
5 }
6
7 + if (!in_addr_is_link_local(AF_INET6, (const union in_addr_union*) &router.in6.sin6_addr))
8 + return 0;
9 +
10 if (ra->nd_ra_type != ND_ROUTER_ADVERT)
11 return 0;
12