Skip to content

Commit f45bca3

Browse files
authored
support Huawei DSVPN's NHRP implementation
If MTU in the request packet is 0, Huawei NHRP daemon will not reply any packet. Hard code MTU to 9216 (Cisco IOS XE 16 also use this value) is a valid workaround. Tested on Huaweu USG6320, software version V500R005C00SPC200
1 parent e71d852 commit f45bca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nhrp/nhrp_peer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ static void nhrp_peer_send_protocol_purge(struct nhrp_peer *peer)
828828

829829
*cie = (struct nhrp_cie) {
830830
.hdr.code = NHRP_CODE_SUCCESS,
831-
.hdr.mtu = 0,
831+
.hdr.mtu = htons(9216),
832832
.hdr.preference = 0,
833833
.hdr.prefix_length = 0xff,
834834
};
@@ -1336,7 +1336,7 @@ static void nhrp_peer_send_resolve(struct nhrp_peer *peer)
13361336
*cie = (struct nhrp_cie) {
13371337
.hdr.code = NHRP_CODE_SUCCESS,
13381338
.hdr.prefix_length = 0,
1339-
.hdr.mtu = 0,
1339+
.hdr.mtu = htons(9216),
13401340
.hdr.holding_time = htons(peer->interface->holding_time),
13411341
};
13421342

0 commit comments

Comments
 (0)