Lines Matching refs:dl

221 datalink_t	dl;  variable
223 #define IPV4_SRCADDR_OFFSET (dl.dl_link_header_len + 12)
224 #define IPV4_DSTADDR_OFFSET (dl.dl_link_header_len + 16)
225 #define IPV6_SRCADDR_OFFSET (dl.dl_link_header_len + 8)
226 #define IPV6_DSTADDR_OFFSET (dl.dl_link_header_len + 24)
694 if (dl.dl_type == DL_ETHER) in pf_ipaddr_match()
725 if (dl.dl_type == DL_ETHER) { in pf_ipaddr_match()
764 if (dl.dl_type == DL_ETHER) { in pf_ipaddr_match()
861 pf_compare_address(dl.dl_link_dest_offset, dl.dl_link_addr_len, in pf_etheraddr_match()
865 pf_compare_address(dl.dl_link_src_offset, dl.dl_link_addr_len, in pf_etheraddr_match()
869 pf_compare_address(dl.dl_link_dest_offset, dl.dl_link_addr_len, in pf_etheraddr_match()
871 pf_compare_address(dl.dl_link_src_offset, dl.dl_link_addr_len, in pf_etheraddr_match()
935 if (dl.dl_type != DL_IPNET) in pf_match_zone()
1031 pf_compare_value(dl.dl_link_type_offset, 2, in pf_check_vlan_tag()
1098 pf_compare_value(dl.dl_link_type_offset, 2, htons(ethertype)); in pf_match_ethertype()
1104 pf_compare_value(dl.dl_link_type_offset, 2, htons(type)); in pf_match_ipnettype()
1110 pf_compare_value(dl.dl_link_type_offset, 2, htons(type)); in pf_match_ibtype()
1130 for (i = 0; dl.dl_trans_map_tbl[i].transport_protocol != -1; i++) { in pf_check_transport_protocol()
1132 (uint_t)dl.dl_trans_map_tbl[i].transport_protocol) { in pf_check_transport_protocol()
1134 dl.dl_match_fn(dl.dl_trans_map_tbl[i].network_protocol); in pf_check_transport_protocol()
1136 pf_compare_value(dl.dl_trans_map_tbl[i].offset + in pf_check_transport_protocol()
1137 dl.dl_link_header_len, 1, in pf_check_transport_protocol()
1158 for (i = 0; dl.dl_net_map_tbl[i].nmt_val != -1; i++) { in pf_matchfn()
1159 if (strcmp(proto, dl.dl_net_map_tbl[i].nmt_name) == 0) { in pf_matchfn()
1160 dl.dl_match_fn(dl.dl_net_map_tbl[i].nmt_val); in pf_matchfn()
1372 IPV4_TYPE_HEADER_OFFSET + dl.dl_link_header_len, 1, in pf_primary()
1381 pf_compare_value(dl.dl_link_dest_offset, 4, 0xffffffff); in pf_primary()
1390 dl.dl_link_dest_offset, 1, 0x01, 0x01); in pf_primary()
1531 dl.dl_type = DL_ETHER; in pf_compile()
1532 dl.dl_match_fn = pf_match_ethertype; in pf_compile()
1533 dl.dl_trans_map_tbl = ether_transport_mapping_table; in pf_compile()
1534 dl.dl_net_map_tbl = ether_network_mapping_table; in pf_compile()
1535 dl.dl_link_header_len = 14; in pf_compile()
1536 dl.dl_link_type_offset = 12; in pf_compile()
1537 dl.dl_link_dest_offset = 0; in pf_compile()
1538 dl.dl_link_src_offset = 6; in pf_compile()
1539 dl.dl_link_addr_len = 6; in pf_compile()
1543 dl.dl_type = DL_IB; in pf_compile()
1544 dl.dl_link_header_len = 4; in pf_compile()
1545 dl.dl_link_type_offset = 0; in pf_compile()
1546 dl.dl_link_dest_offset = dl.dl_link_src_offset = -1; in pf_compile()
1547 dl.dl_link_addr_len = 20; in pf_compile()
1548 dl.dl_match_fn = pf_match_ibtype; in pf_compile()
1549 dl.dl_trans_map_tbl = ib_transport_mapping_table; in pf_compile()
1550 dl.dl_net_map_tbl = ib_network_mapping_table; in pf_compile()
1554 dl.dl_type = DL_IPNET; in pf_compile()
1555 dl.dl_link_header_len = 24; in pf_compile()
1556 dl.dl_link_type_offset = 0; in pf_compile()
1557 dl.dl_link_dest_offset = dl.dl_link_src_offset = -1; in pf_compile()
1558 dl.dl_link_addr_len = -1; in pf_compile()
1559 dl.dl_match_fn = pf_match_ipnettype; in pf_compile()
1560 dl.dl_trans_map_tbl = ipnet_transport_mapping_table; in pf_compile()
1561 dl.dl_net_map_tbl = ipnet_network_mapping_table; in pf_compile()