Re: [PATCH] ipset: Fix ethernet address parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 30 Apr 2014, Janeks Jaunups wrote:

> Currently ipset would not parse ether addresses which are not exactly
> 17 characters long, for ex. 1:2:3:4:5:6
> 
> I've ran into this problem when trying to do fancy things with ISC
> DHCP scripts/events, which gladly skips zeroes in front of address
> element, at least in a way I was doing it.
> 
> on commit {
>   set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
>   set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
> 
>   execute("sudo", "/usr/sbin/ipset", "add", "-exist", "dynnet",
> concat( ClientIP, ",", ClientMac));
> }

Patch is applied, thanks.

Best regards,
Jozsef
-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlecsik.jozsef@xxxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
          H-1525 Budapest 114, POB. 49, Hungary
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux