[sr-dev] git:master: modules_k/nathelper: Add is_rfc1918(ip_addr) function to test ip_addr for rfc1918addresses.

Iñaki Baz Castillo ibc at aliax.net
Mon Aug 1 12:44:54 CEST 2011


2011/8/1 Henning Westerholt <henning.westerholt at 1und1.de>:
> i saw that you just commited it. Does the new function does implement the same
> functionality as the one in nathelper?

Basically yes, it allows passing an string or pv and returns true if
the given IP is a private IP according to RFC 1918.

I think it's useful to also have this function in ipops module as no
all the deployments require nathelper features, but of course maybe
other people don't think the same.

Cheers.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-dev mailing list