summaryrefslogtreecommitdiffstats
path: root/userspace/arptables/arptables.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2010-10-09 18:57:11 +0000
committerBart De Schuymer <bdschuym@pandora.be>2010-10-09 18:57:11 +0000
commit873142311262fe6c85628496257fbf64ab88e9c5 (patch)
tree94584a615a0fefc2e851d0d92bb504b0307c1b52 /userspace/arptables/arptables.c
parent56e2da3962c52264dbf4533071646a67a75d1804 (diff)
make arptables --proto-type also accept hexadecimal inputs (Jeroen van Wolffelaar)
Diffstat (limited to 'userspace/arptables/arptables.c')
-rw-r--r--userspace/arptables/arptables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userspace/arptables/arptables.c b/userspace/arptables/arptables.c
index 265b2d2..4832fd8 100644
--- a/userspace/arptables/arptables.c
+++ b/userspace/arptables/arptables.c
@@ -2040,7 +2040,7 @@ int do_command(int argc, char *argv[], char **table, arptc_handle_t *handle)
check_inverse(optarg, &invert, &optind, argc);
set_option(&options, OPT_P_TYPE, &fw.arp.invflags,
invert);
- if (get16_and_mask(argv[optind - 1], &fw.arp.arpro, &fw.arp.arpro_mask, 10)) {
+ if (get16_and_mask(argv[optind - 1], &fw.arp.arpro, &fw.arp.arpro_mask, 0)) {
if (strcasecmp(argv[optind-1], "ipv4"))
exit_error(PARAMETER_PROBLEM, "Problem with specified protocol type");
fw.arp.arpro = htons(0x800);