Peter Torvals' Internet Cache Protocol dissector.
[obnox/wireshark/wip.git] / packet.h
1 /* packet.h
2  * Definitions for packet disassembly structures and routines
3  *
4  * $Id: packet.h,v 1.99 1999/09/14 08:06:23 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * 
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  * 
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26
27 #ifndef __PACKET_H__
28 #define __PACKET_H__
29
30 #ifndef __WTAP_H__
31 #include "wiretap/wtap.h"
32 #endif
33
34 #ifndef __PROTO_H__
35 #include "proto.h"
36 #endif
37
38 /* Pointer versions of ntohs and ntohl.  Given a pointer to a member of a
39  * byte array, returns the value of the two or four bytes at the pointer.
40  * The pletoh[sl] versions return the little-endian representation.
41  */
42
43 #define pntohs(p)  ((guint16)                       \
44                     ((guint16)*((guint8 *)p+0)<<8|  \
45                      (guint16)*((guint8 *)p+1)<<0))
46
47 #define pntohl(p)  ((guint32)*((guint8 *)p+0)<<24|  \
48                     (guint32)*((guint8 *)p+1)<<16|  \
49                     (guint32)*((guint8 *)p+2)<<8|   \
50                     (guint32)*((guint8 *)p+3)<<0)
51
52 #define pletohs(p) ((guint16)                       \
53                     ((guint16)*((guint8 *)p+1)<<8|  \
54                      (guint16)*((guint8 *)p+0)<<0))
55
56 #define pletohl(p) ((guint32)*((guint8 *)p+3)<<24|  \
57                     (guint32)*((guint8 *)p+2)<<16|  \
58                     (guint32)*((guint8 *)p+1)<<8|   \
59                     (guint32)*((guint8 *)p+0)<<0)
60
61
62 #define hi_nibble(b) ((b & 0xf0) >> 4)
63 #define lo_nibble(b) (b & 0x0f)
64
65 /* Useful when you have an array whose size you can tell at compile-time */
66 #define array_length(x) (sizeof x / sizeof x[0])
67
68
69 /* Useful when highlighting regions inside a dissect_*() function. With this
70  * macro, you can highlight from an arbitrary offset to the end of the
71  * packet (which may come before the end of the frame).
72  * See dissect_data() for an example.
73  */
74 #define END_OF_FRAME    (pi.captured_len - offset)
75                 
76 /* To pass one of two strings, singular or plural */
77 #define plurality(d,s,p) ((d) == 1 ? (s) : (p))
78
79 typedef struct _column_info {
80   gint       num_cols;  /* Number of columns */
81   gint      *col_fmt;   /* Format of column */
82   gboolean **fmt_matx;  /* Specifies which formats apply to a column */
83   gint      *col_width; /* Column widths to use during a "-S" capture */
84   gchar    **col_title; /* Column titles */
85   gchar    **col_data;  /* Column data */
86 } column_info;
87
88 #define COL_MAX_LEN 256
89
90 typedef struct _packet_counts {
91   gint           tcp;
92   gint           udp;
93   gint           icmp;
94   gint           ospf;
95   gint           gre;
96   gint           netbios;
97   gint           other;
98   gint           total;
99 } packet_counts;
100
101 typedef struct _frame_data {
102   struct _frame_data *next; /* Next element in list */
103   guint32      num;       /* Frame number */
104   guint32      pkt_len;   /* Packet length */
105   guint32      cap_len;   /* Amount actually captured */
106   guint32      rel_secs;  /* Relative seconds */
107   guint32      rel_usecs; /* Relative microseconds */
108   guint32      abs_secs;  /* Absolute seconds */
109   guint32      abs_usecs; /* Absolute microseconds */
110   guint32      del_secs;  /* Delta seconds */
111   guint32      del_usecs; /* Delta microseconds */
112   long         file_off;  /* File offset */
113   column_info *cinfo;     /* Column formatting information */
114   gint         row;       /* Row number for this packet in the display */
115   int          lnk_t;     /* Per-packet encapsulation/data-link type */
116   gboolean     passed_dfilter; /* TRUE = display, FALSE = no display */
117   union pseudo_header pseudo_header; /* "pseudo-header" from wiretap */
118 } frame_data;
119
120 typedef struct _packet_info {
121   int len;
122   int captured_len;
123   guint32 ip_src;
124   guint32 ip_dst;
125   guint32 ipproto;
126   guint32 srcport;
127   guint32 destport;
128   guint32 match_port;
129   int iplen;
130   int iphdrlen;
131 } packet_info;
132
133 extern packet_info pi;
134
135 /* Struct for the match_strval function */
136
137 typedef struct _value_string {
138   guint32  value;
139   gchar   *strptr;
140 } value_string;
141
142 /* Many of the structs and definitions below and in packet-*.c files
143  * were taken from include files in the Linux distribution. */
144
145 typedef struct tcp_extra_data {
146   int match_port;
147   int sport;
148   int dport;
149 } tcp_extra_data;
150
151 /* Tree types.  Each dissect_* routine should have one for each
152    add_subtree() call. */
153
154 enum {
155         ETT_NONE,
156         ETT_FRAME,
157         ETT_IEEE8023,
158         ETT_ETHER2,
159         ETT_LLC,
160         ETT_TOKEN_RING,
161         ETT_TOKEN_RING_AC,
162         ETT_TOKEN_RING_FC,
163         ETT_TR_IERR_CNT,
164         ETT_TR_NERR_CNT,
165         ETT_TR_MAC,
166         ETT_PPP,
167         ETT_ARP,
168         ETT_FDDI,
169         ETT_NULL,
170         ETT_IP,
171         ETT_IP_OPTIONS,
172         ETT_IP_OPTION_SEC,
173         ETT_IP_OPTION_ROUTE,
174         ETT_IP_OPTION_TIMESTAMP,
175         ETT_IP_TOS,
176         ETT_IP_OFF,
177         ETT_UDP,
178         ETT_TCP,
179         ETT_TCP_OPTIONS,
180         ETT_TCP_OPTION_SACK,
181         ETT_TCP_FLAGS,
182         ETT_ICMP,
183         ETT_IGMP,
184         ETT_IPX,
185         ETT_SPX,
186         ETT_NCP,
187         ETT_NCP_REQUEST_FIELDS,
188         ETT_NCP_REPLY_FIELDS,
189         ETT_DNS,
190         ETT_DNS_FLAGS,
191         ETT_DNS_QRY,
192         ETT_DNS_QD,
193         ETT_DNS_ANS,
194         ETT_DNS_RR,
195         ETT_ISAKMP,
196         ETT_ISAKMP_FLAGS,
197         ETT_ISAKMP_PAYLOAD,
198         ETT_RIP,
199         ETT_RIP_VEC,
200         ETT_OSPF,
201         ETT_OSPF_HDR,
202         ETT_OSPF_HELLO,
203         ETT_OSPF_DESC,
204         ETT_OSPF_LSR,
205         ETT_OSPF_LSA_UPD,
206         ETT_OSPF_LSA,
207         ETT_LPD,
208         ETT_RAW,
209         ETT_CLIP,
210         ETT_BOOTP,
211         ETT_BOOTP_OPTION,
212         ETT_IPv6,
213         ETT_CLNP,
214         ETT_COTP,
215         ETT_VINES_FRP,
216         ETT_VINES,
217         ETT_VINES_ARP,
218         ETT_VINES_ICP,
219         ETT_VINES_IPC,
220         ETT_VINES_RTP,
221         ETT_VINES_SPP,
222         ETT_IPXRIP,
223         ETT_IPXSAP,
224         ETT_IPXSAP_SERVER,
225         ETT_NBNS,
226         ETT_NBNS_FLAGS,
227         ETT_NBNS_NB_FLAGS,
228         ETT_NBNS_NAME_FLAGS,
229         ETT_NBNS_QRY,
230         ETT_NBNS_QD,
231         ETT_NETB,
232         ETT_NETB_FLAGS,
233         ETT_NETB_STATUS,
234         ETT_NETB_NAME,
235         ETT_NBNS_ANS,
236         ETT_NBNS_RR,
237         ETT_NBIPX,
238         ETT_NBIPX_NAME_TYPE_FLAGS,
239         ETT_AARP,
240         ETT_GIOP,
241         ETT_NBDGM,
242         ETT_CDP,
243         ETT_CDP_TLV,
244         ETT_HTTP,
245         ETT_TFTP,
246         ETT_AH,
247         ETT_ESP,
248         ETT_ICMPv6,
249         ETT_ICMPv6OPT,
250         ETT_ICMPv6FLAG,
251         ETT_POP,
252         ETT_FTP,
253         ETT_TELNET,
254         ETT_TELNET_SUBOPT,
255         ETT_NNTP,
256         ETT_SNMP,
257         ETT_NBSS,
258         ETT_NBSS_FLAGS,
259         ETT_SMB,
260         ETT_SMB_FLAGS,
261         ETT_SMB_FLAGS2,
262         ETT_SMB_DIALECTS,
263         ETT_SMB_MODE,
264         ETT_SMB_CAPABILITIES,
265         ETT_SMB_RAWMODE,
266         ETT_SMB_AFLAGS,
267         ETT_SMB_DESIREDACCESS,
268         ETT_SMB_SEARCH,
269         ETT_SMB_FILE,
270         ETT_SMB_OPENFUNCTION,
271         ETT_SMB_FILEATTRIBUTES,
272         ETT_SMB_FILETYPE,
273         ETT_SMB_ACTION,
274         ETT_PPTP,
275         ETT_GRE,
276         ETT_GRE_FLAGS,
277         ETT_ICP,
278         ETT_ICP_PAYLOAD,
279         ETT_PPPOED,
280         ETT_PPPOED_TAGS,
281         ETT_PPPOES,
282         ETT_LCP,
283         ETT_LCP_OPTIONS,
284         ETT_LCP_MRU_OPT,
285         ETT_LCP_ASYNC_MAP_OPT,
286         ETT_LCP_AUTHPROT_OPT,
287         ETT_LCP_QUALPROT_OPT,
288         ETT_LCP_MAGICNUM_OPT,
289         ETT_LCP_FCS_ALTERNATIVES_OPT,
290         ETT_LCP_NUMBERED_MODE_OPT,
291         ETT_LCP_CALLBACK_OPT,
292         ETT_LCP_MULTILINK_EP_DISC_OPT,
293         ETT_LCP_INTERNATIONALIZATION_OPT,
294         ETT_IPCP,
295         ETT_IPCP_OPTIONS,
296         ETT_IPCP_IPADDRS_OPT,
297         ETT_IPCP_COMPRESSPROT_OPT,
298         ETT_RSVP,
299         ETT_RSVP_UNKNOWN_CLASS,
300         ETT_RSVP_HDR,
301         ETT_RSVP_SESSION,
302         ETT_RSVP_SGROUP,
303         ETT_RSVP_HOP,
304         ETT_RSVP_INTEGRITY,
305         ETT_RSVP_TIME_VALUES,
306         ETT_RSVP_ERROR,
307         ETT_RSVP_SCOPE,
308         ETT_RSVP_STYLE,
309         ETT_RSVP_FLOWSPEC,
310         ETT_RSVP_FILTER_SPEC,
311         ETT_RSVP_SENDER_TEMPLATE,
312         ETT_RSVP_SENDER_TSPEC,
313         ETT_RSVP_ADSPEC,
314         ETT_RSVP_POLICY,
315         ETT_RSVP_CONFIRM,
316         ETT_RSVP_ADSPEC_SUBTREE1,
317         ETT_RSVP_ADSPEC_SUBTREE2,
318         ETT_RSVP_ADSPEC_SUBTREE3,
319         ETT_RTSP,
320         ETT_SDP,
321         ETT_RADIUS,
322         ETT_RADIUS_AVP,
323         ETT_LAPB,
324         ETT_X25,
325         ETT_XDLC_CONTROL,
326         ETT_ATM,
327         ETT_ATM_LANE,
328         ETT_ATM_LANE_LC_FLAGS,
329         ETT_ATM_LANE_LC_LAN_DEST,
330         ETT_ATM_LANE_LC_LAN_DEST_RD,
331         ETT_MP,
332         ETT_MP_FLAGS,
333         NUM_TREE_TYPES  /* last item number plus one */
334 };
335
336 /* TRUE if subtrees of an item of the specified type are to be expanded. */
337 extern gboolean      tree_is_expanded[NUM_TREE_TYPES];
338
339 /* Utility routines used by packet*.c */
340 gchar*     ether_to_str(const guint8 *);
341 gchar*     ip_to_str(const guint8 *);
342 gchar*     abs_time_to_str(struct timeval*);
343 gchar*     rel_time_to_str(struct timeval*);
344 gchar*     time_secs_to_str(guint32);
345 gchar*     bytes_to_str(const guint8 *, int);
346 const u_char *find_line_end(const u_char *data, const u_char *dataend,
347     const u_char **eol);
348 int        get_token_len(const u_char *linep, const u_char *lineend,
349     const u_char **next_token);
350 gchar*     format_text(const u_char *line, int len);
351 gchar*     val_to_str(guint32, const value_string *, const char *);
352 gchar*     match_strval(guint32, const value_string*);
353 const char *decode_boolean_bitfield(guint32 val, guint32 mask, int width,
354   const char *truedesc, const char *falsedesc);
355 const char *decode_enumerated_bitfield(guint32 val, guint32 mask, int width,
356   const value_string *tab, const char *fmt);
357 const char *decode_numeric_bitfield(guint32 val, guint32 mask, int width,
358   const char *fmt);
359 gint       check_col(frame_data *, gint);
360 #if __GNUC__ == 2
361 void       col_add_fstr(frame_data *, gint, gchar *, ...)
362     __attribute__((format (printf, 3, 4)));
363 void       col_append_fstr(frame_data *, gint, gchar *, ...)
364     __attribute__((format (printf, 3, 4)));
365 #else
366 void       col_add_fstr(frame_data *, gint, gchar *, ...);
367 void       col_append_fstr(frame_data *, gint, gchar *, ...);
368 #endif
369 void       col_add_str(frame_data *, gint, const gchar *);
370 void       col_append_str(frame_data *, gint, gchar *);
371
372
373 void dissect_packet(const u_char *, frame_data *, proto_tree *);
374 /*
375  * Routines in packet-*.c
376  * Routines should take three args: packet data *, cap_len, packet_counts *
377  * They should never modify the packet data.
378  */
379 void capture_clip(const u_char *, guint32, packet_counts *);
380 void capture_eth(const u_char *, guint32, packet_counts *);
381 void capture_fddi(const u_char *, guint32, packet_counts *);
382 void capture_null(const u_char *, guint32, packet_counts *);
383 void capture_ppp(const u_char *, guint32, packet_counts *);
384 void capture_raw(const u_char *, guint32, packet_counts *);
385 void capture_tr(const u_char *, guint32, packet_counts *);
386
387 /*
388  * Routines in packet-*.c
389  * Routines should take four args: packet data *, offset, cap_len,
390  * packet_counts *
391  * They should never modify the packet data.
392  */
393 void capture_netbios(const u_char *, int, guint32, packet_counts *);
394 void capture_llc(const u_char *, int, guint32, packet_counts *);
395 void capture_ip(const u_char *, int, guint32, packet_counts *);
396
397 /*
398  * Routines in packet-*.c
399  * Routines should take three args: packet data *, frame_data *, tree *
400  * They should never modify the packet data.
401  */
402 void dissect_ascend(const u_char *, frame_data *, proto_tree *);
403 void dissect_atm(const u_char *, frame_data *, proto_tree *);
404 void dissect_clip(const u_char *, frame_data *, proto_tree *);
405 void dissect_lapb(const u_char *, frame_data *, proto_tree *);
406 void dissect_null(const u_char *, frame_data *, proto_tree *);
407 void dissect_ppp(const u_char *, frame_data *, proto_tree *);
408 void dissect_raw(const u_char *, frame_data *, proto_tree *);
409
410 /*
411  * Routines in packet-*.c
412  * Routines should take four args: packet data *, frame_data *, tree *,
413  * gboolean
414  * They should never modify the packet data.
415  */
416 void dissect_fddi(const u_char *, frame_data *, proto_tree *, gboolean);
417
418 /*
419  * Routines in packet-*.c
420  * Routines should take four args: packet data *, offset, frame_data *,
421  * tree *
422  * They should never modify the packet data.
423  */
424 int dissect_ah(const u_char *, int, frame_data *, proto_tree *);
425 void dissect_aarp(const u_char *, int, frame_data *, proto_tree *);
426 void dissect_arp(const u_char *, int, frame_data *, proto_tree *);
427 void dissect_bootp(const u_char *, int, frame_data *, proto_tree *);
428 void dissect_cdp(const u_char *, int, frame_data *, proto_tree *);
429 void dissect_cotp(const u_char *, int, frame_data *, proto_tree *);
430 void dissect_data(const u_char *, int, frame_data *, proto_tree *);
431 void dissect_ddp(const u_char *, int, frame_data *, proto_tree *);
432 void dissect_dns(const u_char *, int, frame_data *, proto_tree *);
433 void dissect_esp(const u_char *, int, frame_data *, proto_tree *);
434 void dissect_eth(const u_char *, int, frame_data *, proto_tree *);
435 void dissect_ftp(const u_char *, int, frame_data *, proto_tree *);
436 void dissect_ftpdata(const u_char *, int, frame_data *, proto_tree *);
437 void dissect_giop(const u_char *, int, frame_data *, proto_tree *);
438 void dissect_http(const u_char *, int, frame_data *, proto_tree *);
439 void dissect_icmp(const u_char *, int, frame_data *, proto_tree *);
440 void dissect_icmpv6(const u_char *, int, frame_data *, proto_tree *);
441 void dissect_igmp(const u_char *, int, frame_data *, proto_tree *);
442 void dissect_ip(const u_char *, int, frame_data *, proto_tree *);
443 void dissect_ipv6(const u_char *, int, frame_data *, proto_tree *);
444 void dissect_ipx(const u_char *, int, frame_data *, proto_tree *);
445 void dissect_llc(const u_char *, int, frame_data *, proto_tree *);
446 void dissect_lpd(const u_char *, int, frame_data *, proto_tree *);
447 void dissect_nbdgm(const u_char *, int, frame_data *, proto_tree *);
448 void dissect_netbios(const u_char *, int, frame_data *, proto_tree *);
449 void dissect_nbipx(const u_char *, int, frame_data *, proto_tree *);
450 void dissect_nbns(const u_char *, int, frame_data *, proto_tree *);
451 void dissect_nbss(const u_char *, int, frame_data *, proto_tree *);
452 void dissect_ncp(const u_char *, int, frame_data *, proto_tree *);
453 void dissect_nntp(const u_char *, int, frame_data *, proto_tree *);
454 void dissect_nwlink_dg(const u_char *, int, frame_data *, proto_tree *);
455 void dissect_osi(const u_char *, int, frame_data *, proto_tree *);
456 void dissect_ospf(const u_char *, int, frame_data *, proto_tree *);
457 void dissect_ospf_hello(const u_char *, int, frame_data *, proto_tree *);
458 void dissect_pop(const u_char *, int, frame_data *, proto_tree *);
459 void dissect_pppoed(const u_char *, int, frame_data *, proto_tree *);
460 void dissect_pppoes(const u_char *, int, frame_data *, proto_tree *);
461 void dissect_icp(const u_char *,int, frame_data *, proto_tree *);
462 void dissect_isakmp(const u_char *, int, frame_data *, proto_tree *);
463 void dissect_radius(const u_char *, int, frame_data *, proto_tree *);
464 void dissect_rip(const u_char *, int, frame_data *, proto_tree *);
465 void dissect_rsvp(const u_char *, int, frame_data *, proto_tree *);
466 void dissect_rtsp(const u_char *, int, frame_data *, proto_tree *);
467 void dissect_sdp(const u_char *, int, frame_data *, proto_tree *);
468 void dissect_snmp(const u_char *, int, frame_data *, proto_tree *);
469 void dissect_tcp(const u_char *, int, frame_data *, proto_tree *);
470 void dissect_telnet(const u_char *, int, frame_data *, proto_tree *);
471 void dissect_tftp(const u_char *, int, frame_data *, proto_tree *);
472 void dissect_tr(const u_char *, int, frame_data *, proto_tree *);
473 void dissect_trmac(const u_char *, int, frame_data *, proto_tree *);
474 void dissect_udp(const u_char *, int, frame_data *, proto_tree *);
475 void dissect_vines(const u_char *, int, frame_data *, proto_tree *);
476 void dissect_vines_arp(const u_char *, int, frame_data *, proto_tree *);
477 void dissect_vines_frp(const u_char *, int, frame_data *, proto_tree *);
478 void dissect_vines_icp(const u_char *, int, frame_data *, proto_tree *);
479 void dissect_vines_ipc(const u_char *, int, frame_data *, proto_tree *);
480 void dissect_vines_rtp(const u_char *, int, frame_data *, proto_tree *);
481 void dissect_vines_spp(const u_char *, int, frame_data *, proto_tree *);
482 void dissect_payload_ppp(const u_char *, int, frame_data *, proto_tree *);
483 void dissect_x25(const u_char *, int, frame_data *, proto_tree *);
484
485 void dissect_smb(const u_char *, int, frame_data *, proto_tree *, int);
486 void dissect_pptp(const u_char *, int, frame_data *, proto_tree *);
487 void dissect_gre(const u_char *, int, frame_data *, proto_tree *);
488
489 void init_dissect_udp(void);
490 void init_dissect_x25(void);
491
492 /* These functions are in ethertype.c */
493 void capture_ethertype(guint16 etype, int offset,
494                 const u_char *pd, guint32 cap_len, packet_counts *ld);
495 void ethertype(guint16 etype, int offset,
496                 const u_char *pd, frame_data *fd, proto_tree *tree,
497                 proto_tree *fh_tree, int item_id);
498 extern const value_string etype_vals[];
499
500 /* These functions are in packet-arp.c */
501 gchar *arphrdaddr_to_str(guint8 *ad, int ad_len, guint16 type);
502 gchar *arphrdtype_to_str(guint16 hwtype, const char *fmt);
503
504 /*
505  * All of the possible columns in summary listing.
506  *
507  * NOTE: The SRC and DST entries MUST remain in this order, or else you
508  * need to fix the offset #defines before get_column_format!
509  */
510 enum {
511   COL_NUMBER,         /* Packet list item number */
512   COL_CLS_TIME,       /* Command line-specified time (default relative) */
513   COL_REL_TIME,       /* Relative time */
514   COL_ABS_TIME,       /* Absolute time */
515   COL_DELTA_TIME,     /* Delta time */
516   COL_DEF_SRC,        /* Source address */
517   COL_RES_SRC,        /* Resolved source */
518   COL_UNRES_SRC,      /* Unresolved source */
519   COL_DEF_DL_SRC,     /* Data link layer source address */
520   COL_RES_DL_SRC,     /* Resolved DL source */
521   COL_UNRES_DL_SRC,   /* Unresolved DL source */
522   COL_DEF_NET_SRC,    /* Network layer source address */
523   COL_RES_NET_SRC,    /* Resolved net source */
524   COL_UNRES_NET_SRC,  /* Unresolved net source */
525   COL_DEF_DST,        /* Destination address */
526   COL_RES_DST,        /* Resolved dest */
527   COL_UNRES_DST,      /* Unresolved dest */
528   COL_DEF_DL_DST,     /* Data link layer dest address */
529   COL_RES_DL_DST,     /* Resolved DL dest */
530   COL_UNRES_DL_DST,   /* Unresolved DL dest */
531   COL_DEF_NET_DST,    /* Network layer dest address */
532   COL_RES_NET_DST,    /* Resolved net dest */
533   COL_UNRES_NET_DST,  /* Unresolved net dest */
534   COL_DEF_SRC_PORT,   /* Source port */
535   COL_RES_SRC_PORT,   /* Resolved source port */
536   COL_UNRES_SRC_PORT, /* Unresolved source port */
537   COL_DEF_DST_PORT,   /* Destination port */
538   COL_RES_DST_PORT,   /* Resolved dest port */
539   COL_UNRES_DST_PORT, /* Unresolved dest port */
540   COL_PROTOCOL,       /* Protocol */
541   COL_INFO,           /* Description */
542   COL_PACKET_LENGTH,  /* Packet length in bytes */
543   NUM_COL_FMTS        /* Should always be last */
544 };
545
546 #endif /* packet.h */