radv: Allow setting MTU in all cases

Setting MTU is allowed in all cases and the MTU value will be
announced in the subsequent Router Advertisements.
This commit is contained in:
Patrik Flykt
2018-01-04 15:22:44 +02:00
parent 34c169c462
commit de661ccec7
-3
View File
@@ -464,9 +464,6 @@ _public_ int sd_radv_set_mtu(sd_radv *ra, uint32_t mtu) {
assert_return(ra, -EINVAL);
assert_return(mtu >= 1280, -EINVAL);
if (ra->state != SD_RADV_STATE_IDLE)
return -EBUSY;
ra->mtu = mtu;
return 0;