Ethereal-dev: [Ethereal-dev] New dissector available on Solaris but not on Windows

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Susanne Edlund (LI/EAB)" <susanne.edlund@xxxxxxxxxxxx>
Date: Tue, 30 Nov 2004 13:11:52 +0100
I have developed a dissector for NSIP (Network Service over IP) and an updated dissector for BSSGP. They work perfectly on Unix, but when I compile the same code on Windows 2000 none of the dissectors show up in the Enabled Protocols list, nor in the Decode As list.

The NSIP proto_reg_handoff function looks like this:

void
proto_reg_handoff_nsip(void) {
  static int nsip_prefs_initialized = FALSE;

  if (!nsip_prefs_initialized) {
    nsip_handle = create_dissector_handle(dissect_nsip, proto_nsip);
    nsip_prefs_initialized = TRUE;
  }
  else {
    dissector_delete("udp.port", nsip_udp_port1, nsip_handle);
    dissector_delete("udp.port", nsip_udp_port2, nsip_handle);
  }

  dissector_add("udp.port", nsip_udp_port1, nsip_handle);
  dissector_add("udp.port", nsip_udp_port2, nsip_handle);
  
  bssgp_handle = find_dissector("bssgp");
}

where nsip_udp_port1 defaults to 2157 and nsip_udp_port2 defaults to 20000. Any ideas?

/Susanne