Function gnunet_sys::GNUNET_STRINGS_parse_ipv6_policy[][src]

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

Parse an IPv6 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 colon-hex notation. The netmask must be given in CIDR notation (/16) or can be omitted to specify a single host. Note that the netmask is mandatory if ports are specified.

@param routeListX a string specifying the policy @return the converted list, 0-terminated, NULL if the synatx is flawed