Lines Matching refs:prefixlen

20 int sd_rtnl_message_route_set_dst_prefixlen(sd_netlink_message *m, unsigned char prefixlen) {  in sd_rtnl_message_route_set_dst_prefixlen()  argument
29 if ((rtm->rtm_family == AF_INET && prefixlen > 32) || in sd_rtnl_message_route_set_dst_prefixlen()
30 (rtm->rtm_family == AF_INET6 && prefixlen > 128)) in sd_rtnl_message_route_set_dst_prefixlen()
33 rtm->rtm_dst_len = prefixlen; in sd_rtnl_message_route_set_dst_prefixlen()
38 int sd_rtnl_message_route_set_src_prefixlen(sd_netlink_message *m, unsigned char prefixlen) { in sd_rtnl_message_route_set_src_prefixlen() argument
47 if ((rtm->rtm_family == AF_INET && prefixlen > 32) || in sd_rtnl_message_route_set_src_prefixlen()
48 (rtm->rtm_family == AF_INET6 && prefixlen > 128)) in sd_rtnl_message_route_set_src_prefixlen()
51 rtm->rtm_src_len = prefixlen; in sd_rtnl_message_route_set_src_prefixlen()
544 int sd_rtnl_message_addr_set_prefixlen(sd_netlink_message *m, unsigned char prefixlen) { in sd_rtnl_message_addr_set_prefixlen() argument
553 if ((ifa->ifa_family == AF_INET && prefixlen > 32) || in sd_rtnl_message_addr_set_prefixlen()
554 (ifa->ifa_family == AF_INET6 && prefixlen > 128)) in sd_rtnl_message_addr_set_prefixlen()
557 ifa->ifa_prefixlen = prefixlen; in sd_rtnl_message_addr_set_prefixlen()
605 int sd_rtnl_message_addr_get_prefixlen(sd_netlink_message *m, unsigned char *prefixlen) { in sd_rtnl_message_addr_get_prefixlen() argument
611 assert_return(prefixlen, -EINVAL); in sd_rtnl_message_addr_get_prefixlen()
615 *prefixlen = ifa->ifa_prefixlen; in sd_rtnl_message_addr_get_prefixlen()
829 int sd_rtnl_message_addrlabel_set_prefixlen(sd_netlink_message *m, unsigned char prefixlen) { in sd_rtnl_message_addrlabel_set_prefixlen() argument
838 if (prefixlen > 128) in sd_rtnl_message_addrlabel_set_prefixlen()
841 addrlabel->ifal_prefixlen = prefixlen; in sd_rtnl_message_addrlabel_set_prefixlen()
846 int sd_rtnl_message_addrlabel_get_prefixlen(sd_netlink_message *m, unsigned char *prefixlen) { in sd_rtnl_message_addrlabel_get_prefixlen() argument
855 *prefixlen = addrlabel->ifal_prefixlen; in sd_rtnl_message_addrlabel_get_prefixlen()