Lines Matching refs:prefixlen
35 int sd_rtnl_message_route_set_dst_prefixlen(sd_netlink_message *m, unsigned char prefixlen) {
44 if ((rtm->rtm_family == AF_INET && prefixlen > 32) ||
45 (rtm->rtm_family == AF_INET6 && prefixlen > 128))
48 rtm->rtm_dst_len = prefixlen;
53 int sd_rtnl_message_route_set_src_prefixlen(sd_netlink_message *m, unsigned char prefixlen) {
62 if ((rtm->rtm_family == AF_INET && prefixlen > 32) ||
63 (rtm->rtm_family == AF_INET6 && prefixlen > 128))
66 rtm->rtm_src_len = prefixlen;
423 int sd_rtnl_message_addr_set_prefixlen(sd_netlink_message *m, unsigned char prefixlen) {
432 if ((ifa->ifa_family == AF_INET && prefixlen > 32) ||
433 (ifa->ifa_family == AF_INET6 && prefixlen > 128))
436 ifa->ifa_prefixlen = prefixlen;
484 int sd_rtnl_message_addr_get_prefixlen(sd_netlink_message *m, unsigned char *prefixlen) {
490 assert_return(prefixlen, -EINVAL);
494 *prefixlen = ifa->ifa_prefixlen;