]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/netfilter/xt_DSCP.c
netfilter: xtables: slightly better error reporting
[karo-tx-linux.git] / net / netfilter / xt_DSCP.c
index aa263b80f8c09782d40a8267fd0b6027b445b65f..969634f293e5232a8c71757162534097d88b3d07 100644 (file)
@@ -66,7 +66,7 @@ static int dscp_tg_check(const struct xt_tgchk_param *par)
 
        if (info->dscp > XT_DSCP_MAX) {
                pr_info("dscp %x out of range\n", info->dscp);
-               return -EINVAL;
+               return -EDOM;
        }
        return 0;
 }