]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/p_eth.c
tc: Remove pointless assignments in batch()
[mirror_iproute2.git] / tc / p_eth.c
index ad3e28f80eb64128b11e65d2050dc0c43e73fcb0..53ce736a1d78d3aa25aecdf475c2b65b10c8e13d 100644 (file)
@@ -13,7 +13,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <syslog.h>
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -34,6 +33,9 @@ parse_eth(int *argc_p, char ***argv_p,
        if (argc < 2)
                return -1;
 
+       if (!sel->extended)
+               return -1;
+
        tkey->htype = TCA_PEDIT_KEY_EX_HDR_TYPE_ETH;
 
        if (strcmp(*argv, "type") == 0) {