diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2010-10-09 18:57:11 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2010-10-09 18:57:11 +0000 |
commit | 45213286f4500a70614c61ac98e412c50f4f4f61 (patch) | |
tree | fdf5fb655a80fb37ab22aa825e2c376e3dfb6a78 /arptables.c | |
parent | 176c2005d37ceffec30019e608c90ed568f1915e (diff) |
make arptables --proto-type also accept hexadecimal inputs (Jeroen van Wolffelaar)
Diffstat (limited to 'arptables.c')
-rw-r--r-- | arptables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arptables.c b/arptables.c index 265b2d2..4832fd8 100644 --- a/arptables.c +++ b/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); |