aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2002-05-18 14:58:00 +0000
committerGerald Combs <gerald@wireshark.org>2002-05-18 14:58:00 +0000
commit0d33d7280fb6565a723153ddf1bde5c254f0a18a (patch)
tree83d049f8ea705c42d45378cc75e6f45a935ec8e0 /randpkt.c
parent024306cdcff016352be25b805db87b2d1774de3e (diff)
Add initial support for GIOP.
svn path=/trunk/; revision=5501
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c40
1 files changed, 37 insertions, 3 deletions
diff --git a/randpkt.c b/randpkt.c
index da17a8a..639afd2 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -4,7 +4,7 @@
* Creates random packet traces. Useful for debugging sniffers by testing
* assumptions about the veracity of the data found in the packet.
*
- * $Id: randpkt.c,v 1.13 2002/02/24 01:26:42 guy Exp $
+ * $Id: randpkt.c,v 1.14 2002/05/18 14:58:00 gerald Exp $
*
* Copyright (C) 1999 by Gilbert Ramirez <gram@alumni.rice.edu>
*
@@ -61,7 +61,8 @@ enum {
PKT_TR,
PKT_UDP,
PKT_BVLC,
- PKT_NCP2222
+ PKT_NCP2222,
+ PKT_GIOP
};
typedef struct {
@@ -129,7 +130,7 @@ guint8 pkt_llc[] = {
0xc4, 0x67
};
-/* Ethernet+IP+UP, indicating NBNS */
+/* Ethernet+IP+UDP, indicating NBNS */
guint8 pkt_nbns[] = {
0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0x01, 0x01,
@@ -230,6 +231,36 @@ guint8 pkt_ncp2222[] = {
0x22
};
+/* Ethernet+IP+TCP, indicating GIOP */
+guint8 pkt_giop[] = {
+ 0xff, 0xff, 0xff, 0xff,
+ 0xff, 0xff, 0x01, 0x01,
+ 0x01, 0x01, 0x01, 0x01,
+ 0x08, 0x00,
+
+ 0x45, 0x00, 0x00, 0xa6,
+ 0x00, 0x2f, 0x40, 0x00,
+ 0x40, 0x06, 0x3c, 0x21,
+ 0x7f, 0x00, 0x00, 0x01,
+ 0x7f, 0x00, 0x00, 0x01,
+
+ 0x30, 0x39, 0x04, 0x05,
+ 0xac, 0x02, 0x1e, 0x69,
+ 0xab, 0x74, 0xab, 0x64,
+ 0x80, 0x18, 0x79, 0x60,
+ 0xc4, 0xb8, 0x00, 0x00,
+ 0x01, 0x01, 0x08, 0x0a,
+ 0x00, 0x00, 0x48, 0xf5,
+ 0x00, 0x00, 0x48, 0xf5,
+
+ 0x47, 0x49, 0x4f, 0x50,
+ 0x01, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x30,
+ 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x01,
+ 0x01
+};
+
/* This little data table drives the whole program */
pkt_example examples[] = {
{ "arp", "Address Resolution Protocol",
@@ -274,6 +305,9 @@ pkt_example examples[] = {
{ "ncp2222", "NetWare Core Protocol",
PKT_NCP2222, pkt_ncp2222, WTAP_ENCAP_TOKEN_RING, array_length(pkt_ncp2222) },
+ { "giop", "General Inter-ORB Protocol",
+ PKT_GIOP, pkt_giop, WTAP_ENCAP_ETHERNET, array_length(pkt_giop) },
+
};