2 * Routines for RX packet dissection
3 * Copyright 1999, Nathan Neulinger <nneul@umr.edu>
4 * Based on routines from tcpdump patches by
5 * Ken Hornstein <kenh@cmf.nrl.navy.mil>
9 * Wireshark - Network traffic analyzer
10 * By Gerald Combs <gerald@wireshark.org>
11 * Copyright 1998 Gerald Combs
13 * Copied from packet-tftp.c
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38 #include <epan/packet.h>
39 #include "packet-rx.h"
40 #include <epan/addr_resolv.h>
45 * http://web.mit.edu/kolya/afs/rx/rx-spec
47 * XXX - is the "Epoch" really a UN*X time? The high-order bit, according
48 * to that spec, is a flag bit.
51 #define UDP_PORT_RX_LOW 7000
52 #define UDP_PORT_RX_HIGH 7009
53 #define UDP_PORT_RX_AFS_BACKUPS 7021
55 static const value_string rx_types[] = {
56 { RX_PACKET_TYPE_DATA, "data" },
57 { RX_PACKET_TYPE_ACK, "ack" },
58 { RX_PACKET_TYPE_BUSY, "busy" },
59 { RX_PACKET_TYPE_ABORT, "abort" },
60 { RX_PACKET_TYPE_ACKALL, "ackall" },
61 { RX_PACKET_TYPE_CHALLENGE, "challenge" },
62 { RX_PACKET_TYPE_RESPONSE, "response" },
63 { RX_PACKET_TYPE_DEBUG, "debug" },
64 { RX_PACKET_TYPE_PARAMS, "params" },
65 { RX_PACKET_TYPE_VERSION, "version" },
69 static const value_string rx_reason[] = {
70 { RX_ACK_REQUESTED, "Ack Requested" },
71 { RX_ACK_DUPLICATE, "Duplicate Packet" },
72 { RX_ACK_OUT_OF_SEQUENCE, "Out Of Sequence" },
73 { RX_ACK_EXEEDS_WINDOW, "Exceeds Window" },
74 { RX_ACK_NOSPACE, "No Space" },
75 { RX_ACK_PING, "Ping" },
76 { RX_ACK_PING_RESPONSE, "Ping Response" },
77 { RX_ACK_DELAY, "Delay" },
78 { RX_ACK_IDLE, "Idle" },
82 static const value_string rx_ack_type[] = {
83 { RX_ACK_TYPE_NACK, "NACK" },
84 { RX_ACK_TYPE_ACK, "ACK" },
88 static int proto_rx = -1;
89 static int hf_rx_epoch = -1;
90 static int hf_rx_cid = -1;
91 static int hf_rx_seq = -1;
92 static int hf_rx_serial = -1;
93 static int hf_rx_callnumber = -1;
94 static int hf_rx_type = -1;
95 static int hf_rx_flags = -1;
96 static int hf_rx_flags_clientinit = -1;
97 static int hf_rx_flags_request_ack = -1;
98 static int hf_rx_flags_last_packet = -1;
99 static int hf_rx_flags_more_packets = -1;
100 static int hf_rx_flags_free_packet = -1;
101 static int hf_rx_userstatus = -1;
102 static int hf_rx_securityindex = -1;
103 static int hf_rx_spare = -1;
104 static int hf_rx_serviceid = -1;
105 static int hf_rx_bufferspace = -1;
106 static int hf_rx_maxskew = -1;
107 static int hf_rx_first_packet = -1;
108 static int hf_rx_prev_packet = -1;
109 static int hf_rx_reason = -1;
110 static int hf_rx_numacks = -1;
111 static int hf_rx_ack_type = -1;
112 static int hf_rx_ack = -1;
113 static int hf_rx_challenge = -1;
114 static int hf_rx_version = -1;
115 static int hf_rx_nonce = -1;
116 static int hf_rx_inc_nonce = -1;
117 static int hf_rx_min_level = -1;
118 static int hf_rx_level = -1;
119 static int hf_rx_response = -1;
120 static int hf_rx_encrypted = -1;
121 static int hf_rx_kvno = -1;
122 static int hf_rx_ticket_len = -1;
123 static int hf_rx_ticket = -1;
124 static int hf_rx_ifmtu = -1;
125 static int hf_rx_maxmtu = -1;
126 static int hf_rx_rwind = -1;
127 static int hf_rx_maxpackets = -1;
128 static int hf_rx_abort = -1;
129 static int hf_rx_abortcode = -1;
131 static gint ett_rx = -1;
132 static gint ett_rx_flags = -1;
133 static gint ett_rx_ack = -1;
134 static gint ett_rx_challenge = -1;
135 static gint ett_rx_response = -1;
136 static gint ett_rx_encrypted = -1;
137 static gint ett_rx_abort = -1;
139 static dissector_handle_t afs_handle;
142 dissect_rx_response_encrypted(tvbuff_t *tvb, proto_tree *parent_tree, int offset)
146 int old_offset=offset;
150 item = proto_tree_add_item(parent_tree, hf_rx_encrypted, tvb, offset, -1, FALSE);
151 tree = proto_item_add_subtree(item, ett_rx_encrypted);
153 /* epoch : 4 bytes */
156 ts.secs = tvb_get_ntohl(tvb, offset);
159 proto_tree_add_time(tree, hf_rx_epoch, tvb,
165 proto_tree_add_item(tree, hf_rx_cid, tvb, offset, 4, FALSE);
168 /*FIXME dont know how to handle this checksum, skipping it */
171 /* sequrityindex : 1 byte */
172 proto_tree_add_item(tree, hf_rx_securityindex, tvb, offset, 1, FALSE);
175 for (i=0; i<RX_MAXCALLS; i++) {
176 /* callnumber : 4 bytes */
177 callnumber = tvb_get_ntohl(tvb, offset);
178 proto_tree_add_uint(tree, hf_rx_callnumber, tvb,
179 offset, 4, callnumber);
183 /* inc nonce : 4 bytes */
184 proto_tree_add_item(tree, hf_rx_inc_nonce, tvb, offset, 4, FALSE);
187 /* level : 4 bytes */
188 proto_tree_add_item(tree, hf_rx_level, tvb, offset, 4, FALSE);
191 proto_item_set_len(item, offset-old_offset);
197 dissect_rx_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, guint32 seq, guint32 callnumber)
202 int old_offset=offset;
204 if (check_col(pinfo->cinfo, COL_INFO)) {
205 col_add_fstr(pinfo->cinfo, COL_INFO,
210 "Destination Port: %s ",
212 (unsigned long)callnumber,
213 get_udp_port(pinfo->srcport),
214 get_udp_port(pinfo->destport)
218 item = proto_tree_add_item(parent_tree, hf_rx_response, tvb, offset, -1, FALSE);
219 tree = proto_item_add_subtree(item, ett_rx_response);
221 version = tvb_get_ntohl(tvb, offset);
222 proto_tree_add_uint(tree, hf_rx_version, tvb,
230 /* encrypted : struct */
231 offset = dissect_rx_response_encrypted(tvb, tree, offset);
234 proto_tree_add_item(tree, hf_rx_kvno, tvb, offset, 4, FALSE);
238 tl = tvb_get_ntohl(tvb, offset);
239 proto_tree_add_uint(tree, hf_rx_ticket_len, tvb,
243 tvb_ensure_bytes_exist(tvb, offset, tl);
244 proto_tree_add_item(tree, hf_rx_ticket, tvb, offset, tl, FALSE);
248 proto_item_set_len(item, offset-old_offset);
253 dissect_rx_abort(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, guint32 seq, guint32 callnumber)
257 int old_offset=offset;
259 if (check_col(pinfo->cinfo, COL_INFO)) {
260 col_add_fstr(pinfo->cinfo, COL_INFO,
265 "Destination Port: %s ",
267 (unsigned long)callnumber,
268 get_udp_port(pinfo->srcport),
269 get_udp_port(pinfo->destport)
273 item = proto_tree_add_item(parent_tree, hf_rx_abort, tvb, offset, -1, FALSE);
274 tree = proto_item_add_subtree(item, ett_rx_abort);
277 proto_tree_add_item(tree, hf_rx_abortcode, tvb, offset, 4, FALSE);
280 proto_item_set_len(item, offset-old_offset);
286 dissect_rx_challenge(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, guint32 seq, guint32 callnumber)
291 int old_offset=offset;
293 if (check_col(pinfo->cinfo, COL_INFO)) {
294 col_add_fstr(pinfo->cinfo, COL_INFO,
299 "Destination Port: %s ",
301 (unsigned long)callnumber,
302 get_udp_port(pinfo->srcport),
303 get_udp_port(pinfo->destport)
307 item = proto_tree_add_item(parent_tree, hf_rx_challenge, tvb, offset, -1, FALSE);
308 tree = proto_item_add_subtree(item, ett_rx_challenge);
310 version = tvb_get_ntohl(tvb, offset);
311 proto_tree_add_uint(tree, hf_rx_version, tvb,
316 proto_tree_add_item(tree, hf_rx_nonce, tvb, offset, 4, FALSE);
319 proto_tree_add_item(tree, hf_rx_min_level, tvb, offset, 4, FALSE);
323 proto_item_set_len(item, offset-old_offset);
328 dissect_rx_acks(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, guint32 seq, guint32 callnumber)
333 int old_offset = offset;
335 if (check_col(pinfo->cinfo, COL_INFO)) {
336 col_add_fstr(pinfo->cinfo, COL_INFO,
341 "Destination Port: %s ",
343 (unsigned long)callnumber,
344 get_udp_port(pinfo->srcport),
345 get_udp_port(pinfo->destport)
349 item = proto_tree_add_item(parent_tree, hf_rx_ack, tvb, offset, -1, FALSE);
350 tree = proto_item_add_subtree(item, ett_rx_ack);
353 /* bufferspace: 2 bytes*/
354 proto_tree_add_item(tree, hf_rx_bufferspace, tvb, offset, 2, FALSE);
357 /* maxskew: 2 bytes*/
358 proto_tree_add_item(tree, hf_rx_maxskew, tvb, offset, 2, FALSE);
361 /* first packet: 4 bytes*/
362 proto_tree_add_item(tree, hf_rx_first_packet, tvb, offset, 4, FALSE);
365 /* prev packet: 4 bytes*/
366 proto_tree_add_item(tree, hf_rx_prev_packet, tvb, offset, 4, FALSE);
369 /* serial : 4 bytes */
370 proto_tree_add_item(tree, hf_rx_serial, tvb, offset, 4, FALSE);
373 /* reason : 1 byte */
374 proto_tree_add_item(tree, hf_rx_reason, tvb, offset, 1, FALSE);
378 num = tvb_get_guint8(tvb, offset);
379 proto_tree_add_uint(tree, hf_rx_numacks, tvb, offset, 1, num);
383 proto_tree_add_item(tree, hf_rx_ack_type, tvb, offset, 1,
388 /* Some implementations adds some extra fields.
389 * As far as I can see, these first add 3 padding bytes and then
390 * up to 4 32-bit values. (0,3,4 have been witnessed)
392 * RX as a protocol seems to be completely nondefined and seems to lack
393 * any sort of documentation other than "read the source of any of the
394 * (compatible?) implementations.
396 if (tvb_length_remaining(tvb, offset)>3) {
397 offset += 3; /* guess. some implementations adds 3 bytes */
399 if (tvb_reported_length_remaining(tvb, offset) >= 4){
400 proto_tree_add_item(tree, hf_rx_ifmtu, tvb, offset, 4,
404 if (tvb_reported_length_remaining(tvb, offset) >= 4){
405 proto_tree_add_item(tree, hf_rx_maxmtu, tvb, offset, 4,
409 if (tvb_reported_length_remaining(tvb, offset) >= 4){
410 proto_tree_add_item(tree, hf_rx_rwind, tvb, offset, 4,
414 if (tvb_reported_length_remaining(tvb, offset) >= 4){
415 proto_tree_add_item(tree, hf_rx_maxpackets, tvb, offset, 4,
421 proto_item_set_len(item, offset-old_offset);
427 dissect_rx_flags(tvbuff_t *tvb, struct rxinfo *rxinfo, proto_tree *parent_tree, int offset)
433 flags = tvb_get_guint8(tvb, offset);
434 rxinfo->flags = flags;
436 item = proto_tree_add_uint(parent_tree, hf_rx_flags, tvb,
438 tree = proto_item_add_subtree(item, ett_rx_flags);
440 proto_tree_add_boolean(tree, hf_rx_flags_free_packet, tvb,
442 proto_tree_add_boolean(tree, hf_rx_flags_more_packets, tvb,
444 proto_tree_add_boolean(tree, hf_rx_flags_last_packet, tvb,
446 proto_tree_add_boolean(tree, hf_rx_flags_request_ack, tvb,
448 proto_tree_add_boolean(tree, hf_rx_flags_clientinit, tvb,
456 dissect_rx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
461 struct rxinfo rxinfo;
464 guint32 seq, callnumber;
467 /* Ensure we have enough data */
468 if (tvb_length(tvb) < 28)
471 /* Make sure it's a known type */
472 type = tvb_get_guint8(tvb, 20);
473 if (type == 0 || type == 10 || type == 11 || type == 12 || type > 13)
476 col_set_str(pinfo->cinfo, COL_PROTOCOL, "RX");
477 col_clear(pinfo->cinfo, COL_INFO);
479 item = proto_tree_add_protocol_format(parent_tree, proto_rx, tvb,
480 offset, 28, "RX Protocol");
481 tree = proto_item_add_subtree(item, ett_rx);
483 /* epoch : 4 bytes */
484 rxinfo.epoch = tvb_get_ntohl(tvb, offset);
485 ts.secs = rxinfo.epoch;
487 proto_tree_add_time(tree, hf_rx_epoch, tvb, offset, 4, &ts);
491 rxinfo.cid = tvb_get_ntohl(tvb, offset);
492 proto_tree_add_item(tree, hf_rx_cid, tvb, offset, 4, FALSE);
495 /* callnumber : 4 bytes */
496 callnumber = tvb_get_ntohl(tvb, offset);
497 proto_tree_add_uint(tree, hf_rx_callnumber, tvb,
498 offset, 4, callnumber);
500 rxinfo.callnumber = callnumber;
503 seq = tvb_get_ntohl(tvb, offset);
504 proto_tree_add_uint(tree, hf_rx_seq, tvb,
509 /* serial : 4 bytes */
510 proto_tree_add_item(tree, hf_rx_serial, tvb, offset, 4, FALSE);
514 type = tvb_get_guint8(tvb, offset);
515 proto_tree_add_uint(tree, hf_rx_type, tvb,
521 offset = dissect_rx_flags(tvb, &rxinfo, tree, offset);
523 /* userstatus : 1 byte */
524 proto_tree_add_item(tree, hf_rx_userstatus, tvb, offset, 1, FALSE);
527 /* sequrityindex : 1 byte */
528 proto_tree_add_item(tree, hf_rx_securityindex, tvb, offset, 1, FALSE);
532 * How clever: even though the AFS header files indicate that the
533 * serviceId is first, it's really encoded _after_ the spare field.
534 * I wasted a day figuring that out!
538 proto_tree_add_item(tree, hf_rx_spare, tvb, offset, 2, FALSE);
541 /* service id : 2 bytes */
542 serviceid = tvb_get_ntohs(tvb, offset);
543 proto_tree_add_uint(tree, hf_rx_serviceid, tvb,
544 offset, 2, serviceid);
546 rxinfo.serviceid = serviceid;
549 case RX_PACKET_TYPE_ACK:
550 /*dissect_rx_acks(tvb, pinfo, parent_tree, offset,
551 cant create it in a parallell tree, then ett seasrch
553 dissect_rx_acks(tvb, pinfo, tree, offset,
556 case RX_PACKET_TYPE_ACKALL:
557 /* does not contain any payload */
558 if (check_col(pinfo->cinfo, COL_INFO)) {
559 col_add_fstr(pinfo->cinfo, COL_INFO,
564 "Destination Port: %s ",
566 (unsigned long)callnumber,
567 get_udp_port(pinfo->srcport),
568 get_udp_port(pinfo->destport)
572 case RX_PACKET_TYPE_CHALLENGE:
573 dissect_rx_challenge(tvb, pinfo, tree, offset, seq, callnumber);
575 case RX_PACKET_TYPE_RESPONSE:
576 dissect_rx_response(tvb, pinfo, tree, offset, seq, callnumber);
578 case RX_PACKET_TYPE_DATA: {
581 pd_save = pinfo->private_data;
582 pinfo->private_data = &rxinfo;
583 next_tvb = tvb_new_subset(tvb, offset, -1, -1);
584 call_dissector(afs_handle, next_tvb, pinfo, parent_tree);
585 pinfo->private_data = pd_save;
588 case RX_PACKET_TYPE_ABORT:
589 dissect_rx_abort(tvb, pinfo, tree, offset, seq, callnumber);
593 return(tvb_length(tvb));
597 proto_register_rx(void)
599 static hf_register_info hf[] = {
601 "Epoch", "rx.epoch", FT_ABSOLUTE_TIME, BASE_NONE,
602 NULL, 0, NULL, HFILL }},
605 "CID", "rx.cid", FT_UINT32, BASE_DEC,
606 NULL, 0, NULL, HFILL }},
608 { &hf_rx_callnumber, {
609 "Call Number", "rx.callnumber", FT_UINT32, BASE_DEC,
610 NULL, 0, NULL, HFILL }},
613 "Sequence Number", "rx.seq", FT_UINT32, BASE_DEC,
614 NULL, 0, NULL, HFILL }},
617 "Serial", "rx.serial", FT_UINT32, BASE_DEC,
618 NULL, 0, NULL, HFILL }},
621 "Type", "rx.type", FT_UINT8, BASE_DEC,
622 VALS(rx_types), 0, NULL, HFILL }},
625 "Flags", "rx.flags", FT_UINT8, BASE_HEX,
626 NULL, 0, NULL, HFILL }},
628 { &hf_rx_flags_clientinit, {
629 "Client Initiated", "rx.flags.client_init", FT_BOOLEAN, 8,
630 NULL, RX_CLIENT_INITIATED, NULL, HFILL }},
632 { &hf_rx_flags_request_ack, {
633 "Request Ack", "rx.flags.request_ack", FT_BOOLEAN, 8,
634 NULL, RX_REQUEST_ACK, NULL, HFILL }},
636 { &hf_rx_flags_last_packet, {
637 "Last Packet", "rx.flags.last_packet", FT_BOOLEAN, 8,
638 NULL, RX_LAST_PACKET, NULL, HFILL }},
640 { &hf_rx_flags_more_packets, {
641 "More Packets", "rx.flags.more_packets", FT_BOOLEAN, 8,
642 NULL, RX_MORE_PACKETS, NULL, HFILL }},
644 { &hf_rx_flags_free_packet, {
645 "Free Packet", "rx.flags.free_packet", FT_BOOLEAN, 8,
646 NULL, RX_FREE_PACKET, NULL, HFILL }},
648 /* XXX - what about RX_SLOW_START_OR_JUMBO? */
650 { &hf_rx_userstatus, {
651 "User Status", "rx.userstatus", FT_UINT32, BASE_DEC,
652 NULL, 0, NULL, HFILL }},
654 { &hf_rx_securityindex, {
655 "Security Index", "rx.securityindex", FT_UINT32, BASE_DEC,
656 NULL, 0, NULL, HFILL }},
659 "Spare/Checksum", "rx.spare", FT_UINT16, BASE_DEC,
660 NULL, 0, NULL, HFILL }},
662 { &hf_rx_serviceid, {
663 "Service ID", "rx.serviceid", FT_UINT16, BASE_DEC,
664 NULL, 0, NULL, HFILL }},
666 { &hf_rx_bufferspace, {
667 "Bufferspace", "rx.bufferspace", FT_UINT16, BASE_DEC,
668 NULL, 0, "Number Of Packets Available", HFILL }},
671 "Max Skew", "rx.maxskew", FT_UINT16, BASE_DEC,
672 NULL, 0, NULL, HFILL }},
674 { &hf_rx_first_packet, {
675 "First Packet", "rx.first", FT_UINT32, BASE_DEC,
676 NULL, 0, NULL, HFILL }},
678 { &hf_rx_prev_packet, {
679 "Prev Packet", "rx.prev", FT_UINT32, BASE_DEC,
680 NULL, 0, "Previous Packet", HFILL }},
683 "Reason", "rx.reason", FT_UINT8, BASE_DEC,
684 VALS(rx_reason), 0, "Reason For This ACK", HFILL }},
687 "Num ACKs", "rx.num_acks", FT_UINT8, BASE_DEC,
688 NULL, 0, "Number Of ACKs", HFILL }},
691 "ACK Type", "rx.ack_type", FT_UINT8, BASE_DEC,
692 VALS(rx_ack_type), 0, "Type Of ACKs", HFILL }},
695 "ACK Packet", "rx.ack", FT_NONE, BASE_NONE,
696 NULL, 0, NULL, HFILL }},
698 { &hf_rx_challenge, {
699 "CHALLENGE Packet", "rx.challenge", FT_NONE, BASE_NONE,
700 NULL, 0, NULL, HFILL }},
703 "Version", "rx.version", FT_UINT32, BASE_DEC,
704 NULL, 0, "Version Of Challenge/Response", HFILL }},
707 "Nonce", "rx.nonce", FT_UINT32, BASE_HEX,
708 NULL, 0, NULL, HFILL }},
710 { &hf_rx_inc_nonce, {
711 "Inc Nonce", "rx.inc_nonce", FT_UINT32, BASE_HEX,
712 NULL, 0, "Incremented Nonce", HFILL }},
714 { &hf_rx_min_level, {
715 "Min Level", "rx.min_level", FT_UINT32, BASE_DEC,
716 NULL, 0, NULL, HFILL }},
719 "Level", "rx.level", FT_UINT32, BASE_DEC,
720 NULL, 0, NULL, HFILL }},
723 "RESPONSE Packet", "rx.response", FT_NONE, BASE_NONE,
724 NULL, 0, NULL, HFILL }},
727 "ABORT Packet", "rx.abort", FT_NONE, BASE_NONE,
728 NULL, 0, NULL, HFILL }},
730 { &hf_rx_encrypted, {
731 "Encrypted", "rx.encrypted", FT_NONE, BASE_NONE,
732 NULL, 0, "Encrypted part of response packet", HFILL }},
735 "kvno", "rx.kvno", FT_UINT32, BASE_DEC,
736 NULL, 0, NULL, HFILL }},
738 { &hf_rx_ticket_len, {
739 "Ticket len", "rx.ticket_len", FT_UINT32, BASE_DEC,
740 NULL, 0, "Ticket Length", HFILL }},
743 "ticket", "rx.ticket", FT_BYTES, BASE_NONE,
744 NULL, 0, "Ticket", HFILL }},
747 "Interface MTU", "rx.if_mtu", FT_UINT32, BASE_DEC,
748 NULL, 0, NULL, HFILL }},
751 "Max MTU", "rx.max_mtu", FT_UINT32, BASE_DEC,
752 NULL, 0, NULL, HFILL }},
755 "rwind", "rx.rwind", FT_UINT32, BASE_DEC,
756 NULL, 0, NULL, HFILL }},
758 { &hf_rx_maxpackets, {
759 "Max Packets", "rx.max_packets", FT_UINT32, BASE_DEC,
760 NULL, 0, NULL, HFILL }},
762 { &hf_rx_abortcode, {
763 "Abort Code", "rx.abort_code", FT_UINT32, BASE_DEC,
764 NULL, 0, NULL, HFILL }},
767 static gint *ett[] = {
777 proto_rx = proto_register_protocol("RX Protocol", "RX", "rx");
778 proto_register_field_array(proto_rx, hf, array_length(hf));
779 proto_register_subtree_array(ett, array_length(ett));
783 proto_reg_handoff_rx(void)
785 dissector_handle_t rx_handle;
790 * Get handle for the AFS dissector.
792 afs_handle = find_dissector("afs");
794 /* Ports in the range UDP_PORT_RX_LOW to UDP_PORT_RX_HIGH
795 are all used for various AFS services. */
796 rx_handle = new_create_dissector_handle(dissect_rx, proto_rx);
797 for (port = UDP_PORT_RX_LOW; port <= UDP_PORT_RX_HIGH; port++)
798 dissector_add("udp.port", port, rx_handle);
799 dissector_add("udp.port", UDP_PORT_RX_AFS_BACKUPS, rx_handle);