/* Init routine for the IEEE 802.15.4 dissector. Creates hash tables for mapping between 16-bit to 64-bit addresses and populates them with static address pairs from a UAT preference table.  */
static void proto_init_ieee802154(void)
/* Init routine for the IEEE 802.15.4 dissector. Creates hash tables for mapping between 16-bit to 64-bit addresses and populates them with static address pairs from a UAT preference table.  */
static void proto_init_ieee802154(void)
{
    guint       i;
    ieee802154_map.short_table = g_hash_table_new(ieee802154_short_addr_hash, ieee802154_short_addr_equal);
    ieee802154_map.long_table = g_hash_table_new(ieee802154_long_addr_hash, ieee802154_long_addr_equal);
    for (i=0; (i<num_static_addrs) && (static_addrs); i++) {
        ieee802154_addr_update(&ieee802154_map,(guint16)static_addrs[i].addr16, (guint16)static_addrs[i].pan,
               pntoh64(static_addrs[i].eui64), ieee802154_user, IEEE802154_USER_MAPPING);
    }
}