diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-10-18 11:04:21 -0400 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-10-18 11:04:21 -0400 |
commit | 698fb0d1f0539bc480c188a08d54c42de8d55f4d (patch) | |
tree | 1ad5613ddcfb1c7353da9299c77d2e5fe3d2c960 | |
parent | 4046ce09e28d0f0c76b5b977e9d0c2ec2e445a54 (diff) | |
download | alpine_aports-698fb0d1f0539bc480c188a08d54c42de8d55f4d.tar.bz2 alpine_aports-698fb0d1f0539bc480c188a08d54c42de8d55f4d.tar.xz alpine_aports-698fb0d1f0539bc480c188a08d54c42de8d55f4d.zip |
main/opennhrp: apply shortcut-target holding-time bugfix from upstream
-rw-r--r-- | main/opennhrp/0001-config-really-fix-holding-time-to-apply-to-shortcut-.patch | 39 | ||||
-rw-r--r-- | main/opennhrp/APKBUILD | 4 |
2 files changed, 42 insertions, 1 deletions
diff --git a/main/opennhrp/0001-config-really-fix-holding-time-to-apply-to-shortcut-.patch b/main/opennhrp/0001-config-really-fix-holding-time-to-apply-to-shortcut-.patch new file mode 100644 index 0000000000..da1e8ffefa --- /dev/null +++ b/main/opennhrp/0001-config-really-fix-holding-time-to-apply-to-shortcut-.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 3554acce7fec0ce6e7560444c5e3975affb78260 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi> | ||
3 | Date: Tue, 18 Oct 2011 10:56:16 -0400 | ||
4 | Subject: [PATCH] config: really fix holding-time to apply to shortcut-target | ||
5 | |||
6 | commit 94d1a7d4884346a5ba830ac209e1b746d23ec0c1 was supposed to | ||
7 | fix it, but it didn't fix resetting of the peer variable properly. | ||
8 | --- | ||
9 | nhrp/opennhrp.c | 9 +++++---- | ||
10 | 1 files changed, 5 insertions(+), 4 deletions(-) | ||
11 | |||
12 | diff --git a/nhrp/opennhrp.c b/nhrp/opennhrp.c | ||
13 | index f2ecd44..0ff34ea 100644 | ||
14 | --- a/nhrp/opennhrp.c | ||
15 | +++ b/nhrp/opennhrp.c | ||
16 | @@ -243,15 +243,16 @@ static int load_config(const char *config_file) | ||
17 | NEED_PEER(); | ||
18 | peer->flags |= NHRP_PEER_FLAG_CISCO; | ||
19 | } else if (strcmp(word, "holding-time") == 0) { | ||
20 | - peer = NULL; | ||
21 | read_word(in, &lineno, sizeof(word), word); | ||
22 | if (peer != NULL && | ||
23 | - peer->type == NHRP_PEER_TYPE_LOCAL_ADDR) | ||
24 | + peer->type == NHRP_PEER_TYPE_LOCAL_ADDR) { | ||
25 | peer->holding_time = atoi(word); | ||
26 | - else if (iface != NULL) | ||
27 | + } else if (iface != NULL) { | ||
28 | iface->holding_time = atoi(word); | ||
29 | - else | ||
30 | + peer = NULL; | ||
31 | + } else { | ||
32 | rc = 7; | ||
33 | + } | ||
34 | } else if (strcmp(word, "cisco-authentication") == 0) { | ||
35 | struct nhrp_buffer *buf; | ||
36 | struct nhrp_cisco_authentication_extension *auth; | ||
37 | -- | ||
38 | 1.7.4.1 | ||
39 | |||
diff --git a/main/opennhrp/APKBUILD b/main/opennhrp/APKBUILD index da777e2337..b2daec0530 100644 --- a/main/opennhrp/APKBUILD +++ b/main/opennhrp/APKBUILD | |||
@@ -1,7 +1,7 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=opennhrp | 2 | pkgname=opennhrp |
3 | pkgver=0.12.3 | 3 | pkgver=0.12.3 |
4 | pkgrel=0 | 4 | pkgrel=1 |
5 | pkgdesc="NBMA Next Hop Resolution Protocol daemon" | 5 | pkgdesc="NBMA Next Hop Resolution Protocol daemon" |
6 | url="http://sourceforge.net/projects/opennhrp" | 6 | url="http://sourceforge.net/projects/opennhrp" |
7 | arch="all" | 7 | arch="all" |
@@ -11,6 +11,7 @@ makedepends="c-ares-dev" | |||
11 | subpackages="$pkgname-doc" | 11 | subpackages="$pkgname-doc" |
12 | source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 | 12 | source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 |
13 | opennhrp-0.9.3-peer-up-bgp.patch | 13 | opennhrp-0.9.3-peer-up-bgp.patch |
14 | 0001-config-really-fix-holding-time-to-apply-to-shortcut-.patch | ||
14 | $pkgname.initd | 15 | $pkgname.initd |
15 | $pkgname.confd | 16 | $pkgname.confd |
16 | " | 17 | " |
@@ -34,5 +35,6 @@ package() { | |||
34 | } | 35 | } |
35 | md5sums="4d0ec7c0282e181ecca4d78e52067da3 opennhrp-0.12.3.tar.bz2 | 36 | md5sums="4d0ec7c0282e181ecca4d78e52067da3 opennhrp-0.12.3.tar.bz2 |
36 | f81539fc92800bb79668dda119a97d1d opennhrp-0.9.3-peer-up-bgp.patch | 37 | f81539fc92800bb79668dda119a97d1d opennhrp-0.9.3-peer-up-bgp.patch |
38 | 884c085eedace7eab4d65ae3a47c4bde 0001-config-really-fix-holding-time-to-apply-to-shortcut-.patch | ||
37 | ae65f88ccf849ef882669a8b4f0c7fc0 opennhrp.initd | 39 | ae65f88ccf849ef882669a8b4f0c7fc0 opennhrp.initd |
38 | 8eee86233728dc0d156bbfee6d98f338 opennhrp.confd" | 40 | 8eee86233728dc0d156bbfee6d98f338 opennhrp.confd" |