Function gnunet_sys::GNUNET_STRINGS_parse_ipv4_policy[][src]

pub unsafe extern "C" fn GNUNET_STRINGS_parse_ipv4_policy(
    routeListX: *const c_char
) -> *mut GNUNET_STRINGS_IPv4NetworkPolicy

Parse an IPv4 network policy. The argument specifies a list of subnets. The format is (network[/netmask][:!SPORT-DPORT];)* (no whitespace, must be terminated with a semicolon). The network must be given in dotted-decimal notation. The netmask can be given in CIDR notation (/16) or in dotted-decimal (/255.255.0.0).

@param routeListX a string specifying the IPv4 subnets @return the converted list, terminated with all zeros; NULL if the synatx is flawed