Ethereal-dev: RE: [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: "Anders Broman (AL/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Tue, 30 Nov 2004 15:05:40 +0100
Hi,
If you send the dissector to the list for inclusion we could have a look.
Best regards
Anders

-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx]On Behalf Of Susanne Edlund
(LI/EAB)
Sent: den 30 november 2004 13:12
To: 'ethereal-dev@xxxxxxxxxxxx'
Subject: [Ethereal-dev] New dissector available on Solaris but not on
Windows


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

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev