/* If this dissector uses sub-dissector registration add a registration routine. This format is required because a script is used to find these routines and create the code that calls these routines. */ void proto_reg_handoff_daap(void) { dissector_handle_t daap_handle; daap_handle = create_dissector_handle(dissect_daap, proto_daap); http_dissector_add(TCP_PORT_DAAP, daap_handle); }
void proto_reg_handoff_ipp(void) { dissector_handle_t ipp_handle; /* * Register ourselves as running atop HTTP and using port 631. */ ipp_handle = create_dissector_handle(dissect_ipp, proto_ipp); http_dissector_add(631, ipp_handle); dissector_add_string("media_type", "application/ipp", ipp_handle); data_handle = find_dissector("data"); }