Lines Matching refs:mask_attr
955 struct rtattr *mask_attr) in flower_print_eth_addr() argument
964 if (!mask_attr || RTA_PAYLOAD(mask_attr) != ETH_ALEN) in flower_print_eth_addr()
966 bits = __mask_bits(RTA_DATA(mask_attr), ETH_ALEN); in flower_print_eth_addr()
968 fprintf(f, "/%s", ll_addr_n2a(RTA_DATA(mask_attr), ETH_ALEN, in flower_print_eth_addr()
1024 struct rtattr *mask_attr) in flower_print_ip_attr() argument
1030 if (!mask_attr) in flower_print_ip_attr()
1032 fprintf(f, "/%x", rta_getattr_u8(mask_attr)); in flower_print_ip_attr()
1038 struct rtattr *mask_attr) in flower_print_matching_flags() argument
1045 if (!mask_attr || RTA_PAYLOAD(mask_attr) != 4) in flower_print_matching_flags()
1049 mtf_mask = ntohl(rta_getattr_u32(mask_attr)); in flower_print_matching_flags()
1075 struct rtattr *mask_attr; in flower_print_ip_addr() local
1083 mask_attr = mask4_attr; in flower_print_ip_addr()
1088 mask_attr = mask6_attr; in flower_print_ip_addr()
1096 if (!mask_attr || RTA_PAYLOAD(mask_attr) != len) in flower_print_ip_addr()
1098 bits = __mask_bits(RTA_DATA(mask_attr), len); in flower_print_ip_addr()
1100 fprintf(f, "/%s", rt_addr_n2a_rta(family, mask_attr)); in flower_print_ip_addr()
1106 struct rtattr *mask_attr) in flower_print_ip4_addr() argument
1109 addr_attr, mask_attr, 0, 0); in flower_print_ip4_addr()
1120 struct rtattr *mask_attr) in flower_print_tcp_flags() argument
1125 if (!mask_attr) in flower_print_tcp_flags()
1127 fprintf(f, "/%x", rta_getattr_be16(mask_attr)); in flower_print_tcp_flags()
1140 struct rtattr *mask_attr, in flower_print_masked_u8() argument
1150 mask = mask_attr ? rta_getattr_u8(mask_attr) : UINT8_MAX; in flower_print_masked_u8()
1167 struct rtattr *mask_attr) in flower_print_arp_op() argument
1169 flower_print_masked_u8(f, name, op_attr, mask_attr, in flower_print_arp_op()