diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-11 00:47:38 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-11 08:48:18 +0000 |
commit | 3d38b87d86736a976dd28f03b989282e093191bb (patch) | |
tree | 15b12ccde9c685f7345e7e384dcc80713a0a4cfd /plugins/wimax/packet-wmx.c | |
parent | 93ea677ec4bc61966966cc71a67bbbca4125d607 (diff) |
Fix registration.
Some routines are registered by the standard plugin mechanism, others
are registered internally. If a first-stage ("register") routine is
registered internally, we must register the second-stage ("reg_handoff")
routine internally as well, otherwise the second-stage routine isn't
recognized by tools/make-plugin-reg.py and is never called.
Bug: 14322
Change-Id: I6eb94c0b74b6fb4d60eb57113d4ada73f4240150
Reviewed-on: https://code.wireshark.org/review/25256
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'plugins/wimax/packet-wmx.c')
-rw-r--r-- | plugins/wimax/packet-wmx.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c index 89aded3a99..1cdbd97e82 100644 --- a/plugins/wimax/packet-wmx.c +++ b/plugins/wimax/packet-wmx.c @@ -352,6 +352,18 @@ void proto_register_wimax(void) } /* + * If we're going to give the register routines for the above files special + * names to ensure that they're called in the above order in the above + * routine, we have to do the same with their handoff routines, if they + * have any - that's the way the registration generation stuff now works. + */ +void proto_reg_handoff_wimax(void) +{ + wimax_proto_reg_handoff_wimax_pdu(); + wimax_proto_reg_handoff_mac_header_generic(); +} + +/* * Editor modelines - http://www.wireshark.org/tools/modelines.html * * Local variables: |