diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-08 07:07:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-08 07:07:42 +0000 |
commit | 42107e86146c473a06a11769ef2f5a8bedc1ef88 (patch) | |
tree | 8c2187183a707d04b8678a4cbfddb5577187c015 /packet-pptp.c | |
parent | 160928a318385aa2fb59af968ab1cd85847ad963 (diff) |
Move calls to "dissector_add()" out of the register routines for TCP and
UDP and into the handoff registration routines for the protocols in
question.
Make the dissectors for those protocols static if they're not called
outside the dissector's source file.
Get rid of header files if all they did was declare dissectors that are
now static; remove declarations of now-static dissectors from header
files that do more than just declare the dissector.
svn path=/trunk/; revision=1823
Diffstat (limited to 'packet-pptp.c')
-rw-r--r-- | packet-pptp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packet-pptp.c b/packet-pptp.c index 068e731686..b6b9319b2d 100644 --- a/packet-pptp.c +++ b/packet-pptp.c @@ -2,7 +2,7 @@ * Routines for the Point-to-Point Tunnelling Protocol (PPTP) (RFC 2637) * Brad Robel-Forrest <brad.robel-forrest@watchguard.com> * - * $Id: packet-pptp.c,v 1.8 2000/01/20 07:31:29 guy Exp $ + * $Id: packet-pptp.c,v 1.9 2000/04/08 07:07:33 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -43,6 +43,8 @@ static gint ett_pptp = -1; +#define TCP_PORT_PPTP 1723 + #define NUM_MSG_TYPES 3 #define msgtype2str(t) \ ((t < NUM_MSG_TYPES) ? msgtypestr[t] : "UNKNOWN-MESSAGES-TYPE") @@ -376,7 +378,7 @@ struct set_link guint32 recv_acm; }; -void +static void dissect_pptp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { struct pptp_hdr * hdr = (struct pptp_hdr *)(pd + offset); @@ -897,3 +899,9 @@ proto_register_pptp(void) proto_register_subtree_array(ett, array_length(ett)); } + +void +proto_reg_handoff_pptp(void) +{ + dissector_add("tcp.port", TCP_PORT_PPTP, dissect_pptp); +} |