diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-07-24 16:09:30 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-07-24 16:09:30 +0300 |
commit | 0df48acd155da7f5a1a6ed28ffa0c3d3624084a5 (patch) | |
tree | 5b9f28fb5973a49b7e8b8faada465ccf96644548 /main/opennhrp/0006-modify-packet-destination-only-for-registration-requ.patch | |
parent | df1c822e76d712cb306e491fd652b5acb54acaa0 (diff) | |
download | aports-0df48acd155da7f5a1a6ed28ffa0c3d3624084a5.tar.bz2 aports-0df48acd155da7f5a1a6ed28ffa0c3d3624084a5.tar.xz |
main/opennhrp: cherry-pick upstream fixes
Diffstat (limited to 'main/opennhrp/0006-modify-packet-destination-only-for-registration-requ.patch')
-rw-r--r-- | main/opennhrp/0006-modify-packet-destination-only-for-registration-requ.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/main/opennhrp/0006-modify-packet-destination-only-for-registration-requ.patch b/main/opennhrp/0006-modify-packet-destination-only-for-registration-requ.patch new file mode 100644 index 0000000000..4fb2a576d1 --- /dev/null +++ b/main/opennhrp/0006-modify-packet-destination-only-for-registration-requ.patch @@ -0,0 +1,26 @@ +From 409b4e18250ef32197191d37a9c5ade7abcf3594 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi> +Date: Wed, 27 May 2015 18:01:17 +0300 +Subject: [PATCH] modify packet destination only for registration requests + +--- + nhrp/nhrp_packet.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/nhrp/nhrp_packet.c b/nhrp/nhrp_packet.c +index 566a6cb..d428cd9 100644 +--- a/nhrp/nhrp_packet.c ++++ b/nhrp/nhrp_packet.c +@@ -762,7 +762,8 @@ static int nhrp_packet_receive_local(struct nhrp_packet *packet) + return FALSE; + } + +- if (packet->dst_peer->next_hop_address.type != PF_UNSPEC) { ++ if (packet->dst_peer->next_hop_address.type != PF_UNSPEC && ++ packet->hdr.type == NHRP_PACKET_REGISTRATION_REQUEST) { + /* Broadcast destinations gets rewritten as if destinied to + * our local address */ + packet->dst_protocol_address = +-- +2.4.6 + |