Fix two bugs in the example code that I revised.

svn path=/trunk/; revision=47626
This commit is contained in:
Bill Meier 2013-02-11 01:31:49 +00:00
parent 1cb08ae444
commit 1e6e56c631
1 changed files with 2 additions and 2 deletions

View File

@ -163,8 +163,8 @@ proto_reg_handoff_PROTOABBREV(void)
proto_PROTOABBREV);
/* register as heuristic dissector for both TCP and UDP */
heur_dissector_add("tcp", dissect_PROTOABBREV, proto_PROTOABBREV);
heur_dissector_add("udp", dissect_PROTOABBREV, proto_PROTOABBREV);
heur_dissector_add("tcp", dissect_PROTOABBREV_heur, proto_PROTOABBREV);
heur_dissector_add("udp", dissect_PROTOABBREV_heur, proto_PROTOABBREV);
#ifdef OPTIONAL
/* It's possible to write a dissector to be a dual heuristic/normal dissector */