Skip to content

Commit f92c385

Browse files
author
Juha Heiskanen
committed
Enabled PMTU timeout to destination cache after used.
1 parent 957b358 commit f92c385

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/Common_Protocols/ipv6.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ buffer_routing_info_t *ipv6_buffer_route_to(buffer_t *buf, const uint8_t *next_h
212212
* reduce an existing entry if route has changed) */
213213
if (dest_entry->pmtu > outgoing_if->ipv6_neighbour_cache.link_mtu) {
214214
dest_entry->pmtu = outgoing_if->ipv6_neighbour_cache.link_mtu;
215+
dest_entry->pmtu_lifetime = outgoing_if->pmtu_lifetime;
215216
}
216217
/* Route can also limit PMTU */
217218
if (dest_entry->pmtu > route->route_info.pmtu) {
218219
dest_entry->pmtu = route->route_info.pmtu;
220+
dest_entry->pmtu_lifetime = outgoing_if->pmtu_lifetime;
219221
}
220222
/* Buffer then gets this PMTU (overwriting what we wrote from the route) */
221223
route->route_info.pmtu = dest_entry->pmtu;

0 commit comments

Comments
 (0)