aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2002-05-18 14:58:00 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2002-05-18 14:58:00 +0000
commitc57ef9520d85898859f81d119b77814d6080cdf9 (patch)
tree83d049f8ea705c42d45378cc75e6f45a935ec8e0 /randpkt.c
parent5afa0d4aaaee1efeb064b6398c055726a9a174ac (diff)
Add initial support for GIOP.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5501 f5534014-38df-0310-8fa8-9805f1628bb7
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 da17a8aa4c..639afd206f 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) },
+
};