Function gnunet_sys::GNUNET_TUN_ipv4policy2regex[][src]

pub unsafe extern "C" fn GNUNET_TUN_ipv4policy2regex(
    policy: *const c_char
) -> *mut c_char

Convert an exit policy to a regular expression. The exit policy specifies a set of subnets this peer is willing to serve as an exit for; the resulting regular expression will match the IPv4 address strings as returned by #GNUNET_TUN_ipv4toregexsearch.

@param policy exit policy specification @return regular expression, NULL on error