]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.util
port: ethernet: Allow setting the MTU
[people/ms/network.git] / src / functions / functions.util
index 7377818049d5b1953cf54bb0e53bd41348373579..a326d239225463c832bac1e2b9d8af55a6b326c0 100644 (file)
@@ -399,7 +399,7 @@ mtu_is_valid() {
        local mtu=${2}
 
        case ${proto} in
-               ipv4)
+               ethernet|ipv4)
                        [ ${mtu} -ge 576 ] && [ ${mtu} -le 9000 ]
                        ;;
                ipv6)