https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7633
--- Comment #2 from Andrei Emeltchenko <andrei.emeltchenko.news@xxxxxxxxx> 2012-09-18 01:15:03 PDT ---
(In reply to comment #1)
> Comment on attachment 8954 [details]
> [PATCH] Decode Bluetooth HS 4-way handshake over 802.11 media
>
> 0x0003 is not an Ethernet type, so the EAPOL dissector should *NOT* be
> registered in the "ethertype" table with a value of 0x0003.
>
> Instead, it's a protocol ID in the space of SNAP protocol IDs for the OUI value
> 00:19:58, i.e. OUI_BLUETOOTH, so what you want to do is to:
>
> register a dissector table for the OUI value OUI_BLUETOOTH - for an example
> of how to do this, see proto_register_cisco_oui() in
> epan/dissectors/packet-cisco-oui.c;
>
> in that dissector table, register the EAPOL dissector in *THAT* dissector
> table with a protocol ID of 0x0003.
Do you mean something like this:
void
proto_reg_handoff_bt_oui(void)
{
eapol_handle = find_dissector("eapol");
printf("%s handle %p\n", __FUNCTION__, eapol_handle);
dissector_add_uint("llc.bluetooth_pid", 0x0003, eapol_handle);
}
void
proto_register_bt_oui(void)
{
static hf_register_info hf[] = {
{ &hf_llc_bluetooth_pid,
{ "PID", "llc.bluetooth_pid", FT_UINT16, BASE_HEX,
VALS(bluetooth_pid_vals), 0x0, "Protocol ID", HFILL }
}
};
llc_add_oui(OUI_BLUETOOTH, "llc.bluetooth_pid", "Bluetooth OUI PID", hf);
}
For some reason eapol_handle == NULL. Have I done something wrong?
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.