summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2018-01-04 14:11:57 +0100
committerPatrik Flykt <patrik.flykt@linux.intel.com>2018-01-04 14:22:44 +0100
commitde661ccec7b75f196dff5cd2546a94a4fbf46c82 (patch)
tree913cf7dedaa77d295bb2adac25ef2a7c4981fb03
parentradv: Add function to remove prefixes (diff)
downloadsystemd-de661ccec7b75f196dff5cd2546a94a4fbf46c82.tar.xz
systemd-de661ccec7b75f196dff5cd2546a94a4fbf46c82.zip
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.
-rw-r--r--src/libsystemd-network/sd-radv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsystemd-network/sd-radv.c b/src/libsystemd-network/sd-radv.c
index b2483bcf2b..757eabaea7 100644
--- a/src/libsystemd-network/sd-radv.c
+++ b/src/libsystemd-network/sd-radv.c
@@ -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;