add fix for olsrd hna announcements where the host part is not 0
git-svn-id: svn://svn.openwrt.org/openwrt/packages@4976 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1a4bff054b
commit
7afcb164ad
11
net/olsrd/patches/150-hna_ip_fix.patch
Normal file
11
net/olsrd/patches/150-hna_ip_fix.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -ur olsrd.old/src/cfgparser/oparse.c olsrd.dev/src/cfgparser/oparse.c
|
||||
--- olsrd.old/src/cfgparser/oparse.c 2006-01-01 17:15:57.000000000 +0100
|
||||
+++ olsrd.dev/src/cfgparser/oparse.c 2006-10-09 01:06:27.000000000 +0200
|
||||
@@ -1921,6 +1921,7 @@
|
||||
return -1;
|
||||
}
|
||||
h->netmask.v4 = in.s_addr;
|
||||
+ h->net.v4 &= h->netmask.v4;
|
||||
/* Queue */
|
||||
h->next = cnf->hna4_entries;
|
||||
cnf->hna4_entries = h;
|
Loading…
x
Reference in New Issue
Block a user