configs: atmel: at91sam9260eknf: update defconfig
[buildroot-gz.git] / package / mrouted / 0001-DVMRP-report-missing-subnet.patch
blob023c8cfd8ddc71f5a91c59d48cff6233ca4bb18d
1 From 687f41680d51585e9a5a135e39efee330588bea7 Mon Sep 17 00:00:00 2001
2 From: Matt Weber <matthew.weber@rockwellcollins.com>
3 Date: Fri, 11 Sep 2015 12:49:30 -0500
4 Subject: [PATCH 1/1] DVMRP report missing subnet
6 Accepted upstream and will be included in 3.9.8.
7 https://github.com/troglobit/mrouted/commit/512af5ffe0f48ffa2ba3b45898c66c2a561a5c2d
9 A subnet is missing in the DVMRP report sent to it's neighbor after
10 the initial probe occurs. The issue was with the traversal of a double
11 linked list from end to start. Once the traversing pointer reaches
12 the start of routing table for loop (condition) it would break and
13 always drop the first subnet.
15 Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
16 ---
17 route.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/route.c b/route.c
21 index f74e601..9fe779d 100644
22 --- a/route.c
23 +++ b/route.c
24 @@ -1193,7 +1193,7 @@ static int report_chunk(int which_routes, struct rtentry *start_rt, vifi_t vifi,
26 p = send_buf + MIN_IP_HEADER_LEN + IGMP_MINLEN;
28 - for (r = start_rt; r != routing_table; r = r->rt_prev) {
29 + for (r = start_rt; r != NULL; r = r->rt_prev) {
30 if (which_routes == CHANGED_ROUTES && !(r->rt_flags & RTF_CHANGED)) {
31 nrt++;
32 continue;
33 --
34 1.9.1