aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-10-07 07:55:12 +0000
committerGuy Harris <guy@alum.mit.edu>1999-10-07 07:55:12 +0000
commitdb5f4239dc774aa207bcb7bed3c0ffee48d97841 (patch)
treefa7e40d9f6519435b997080970debe86f30a81b5 /randpkt.c
parent1fa5650f17a24bb4ba876b8a511a18484d55bf20 (diff)
Add NBNS support.
svn path=/trunk/; revision=780
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/randpkt.c b/randpkt.c
index 746ed812d8..a4d9890fc5 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.4 1999/10/06 20:29:26 gram Exp $
+ * $Id: randpkt.c,v 1.5 1999/10/07 07:55:12 guy Exp $
*
* Copyright (C) 1999 by Gilbert Ramirez <gram@xiexie.org>
*
@@ -55,6 +55,7 @@ enum {
PKT_ICMP,
PKT_IP,
PKT_LLC,
+ PKT_NBNS,
PKT_TCP,
PKT_TR,
PKT_UDP
@@ -95,7 +96,7 @@ guint8 pkt_dns[] = {
0x30
};
-/* Ethernet+IP, indicating ICMPP */
+/* Ethernet+IP, indicating ICMP */
guint8 pkt_icmp[] = {
0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0x01, 0x01,
@@ -125,6 +126,24 @@ guint8 pkt_llc[] = {
0xc4, 0x67
};
+/* Ethernet+IP+UP, indicating NBNS */
+guint8 pkt_nbns[] = {
+ 0xff, 0xff, 0xff, 0xff,
+ 0xff, 0xff, 0x01, 0x01,
+ 0x01, 0x01, 0x01, 0x01,
+ 0x08, 0x00,
+
+ 0x45, 0x00, 0x00, 0x3c,
+ 0xc5, 0x9e, 0x40, 0x00,
+ 0xff, 0x11, 0xd7, 0xe0,
+ 0xd0, 0x15, 0x02, 0xb8,
+ 0x0a, 0x01, 0x01, 0x63,
+
+ 0x00, 0x89, 0x00, 0x89,
+ 0x00, 0x00, 0x2a, 0xb9,
+ 0x30
+};
+
/* TR+LLC+IP, indicating TCP */
guint8 pkt_tcp[] = {
0x10, 0x40, 0x68, 0x00,
@@ -179,6 +198,9 @@ pkt_example examples[] = {
{ "llc", "Logical Link Control",
PKT_LLC, pkt_llc, WTAP_ENCAP_TR, array_length(pkt_llc) },
+ { "nbns", "NetBIOS-over-TCP Name Service",
+ PKT_NBNS, pkt_nbns, WTAP_ENCAP_ETHERNET, array_length(pkt_nbns) },
+
{ "tcp", "Transmission Control Protocol",
PKT_TCP, pkt_tcp, WTAP_ENCAP_TR, array_length(pkt_tcp) },