Added NetBIOS Datagram (over UDP) support.
authorGilbert Ramirez <gram@alumni.rice.edu>
Fri, 20 Nov 1998 05:58:42 +0000 (05:58 -0000)
committerGilbert Ramirez <gram@alumni.rice.edu>
Fri, 20 Nov 1998 05:58:42 +0000 (05:58 -0000)
svn path=/trunk/; revision=113

packet-udp.c
packet.h

index 81841e48bde542f30408dcf8cdfc9ca724497efd..488e6fd863d7217ea52853b23bc08b1ee07bbed8 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-udp.c
  * Routines for UDP packet disassembly
  *
- * $Id: packet-udp.c,v 1.8 1998/11/17 05:04:04 gerald Exp $
+ * $Id: packet-udp.c,v 1.9 1998/11/20 05:58:41 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -100,6 +100,9 @@ dissect_udp(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {
        case UDP_PORT_NBNS:
          dissect_nbns(pd, offset, fd, tree);
          break;
+       case UDP_PORT_NBDGM:
+         dissect_nbdgm(pd, offset, fd, tree);
+         break;
     case UDP_PORT_IPX: /* RFC 1234 */
       dissect_ipx(pd, offset, fd, tree);
       break;
index d032635e8937fee0039c5753c9753a3b214ac3c3..ab7a71f1b65d31a7196d3bb317b1f1b79be09117 100644 (file)
--- a/packet.h
+++ b/packet.h
@@ -1,7 +1,7 @@
 /* packet.h
  * Definitions for packet disassembly structures and routines
  *
- * $Id: packet.h,v 1.25 1998/11/18 03:01:40 gerald Exp $
+ * $Id: packet.h,v 1.26 1998/11/20 05:58:42 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -363,6 +363,7 @@ typedef struct _e_udphdr {
 #define UDP_PORT_BOOTPS  67
 #define UDP_PORT_IPX    213
 #define UDP_PORT_NBNS  137
+#define UDP_PORT_NBDGM 138
 #define UDP_PORT_RIP    520
 
 /* TCP Ports */
@@ -432,7 +433,8 @@ enum {
        ETT_NBNS_RR,
        ETT_NBIPX,
        ETT_AARP,
-        ETT_GIOP,
+       ETT_GIOP,
+       ETT_NBDGM,
        NUM_TREE_TYPES  /* last item number plus one */
 };
 
@@ -535,6 +537,7 @@ void dissect_ipx(const u_char *, int, frame_data *, GtkTree *);
 void dissect_giop(const u_char *, int, frame_data *, GtkTree *);
 void dissect_llc(const u_char *, int, frame_data *, GtkTree *);
 void dissect_lpd(const u_char *, int, frame_data *, GtkTree *);
+void dissect_nbdgm(const u_char *, int, frame_data *, GtkTree *);
 void dissect_nbipx_ns(const u_char *, int, frame_data *, GtkTree *);
 void dissect_nbns(const u_char *, int, frame_data *, GtkTree *);
 void dissect_ncp(const u_char *, int, frame_data *, GtkTree *);