|
Description
|
During Clearview IPMP development, I happened upon an edge case
in the current DL_NOTE_SDU_SIZE handling in ip: if a user has
lowered ill_max_mtu via SIOCSLIFLNKINFO, then a subsequent
DL_NOTE_SDU_SIZE only affects ill_max_frag and leaves ill_max_mtu
untouched. This is incorrect if the new value of ill_max_frag
rendered ill_max_mtu unusable. For instance, if the original
MTU was 1500, and a SIOCSLIFLNKINFO lowered it to 1496, but then
a subsequent DL_NOTE_SDU_SIZE lowers it to 1200, then the MTU
value needs to be lowered to 1200 as well, regardless of the
user's desire to use 1496.
|