aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt_core/randpkt_core.c
diff options
context:
space:
mode:
authorRémy Léone <remy.leone@gmail.com>2017-04-03 11:01:36 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2017-04-06 06:23:43 +0000
commit2bd5adcf71792fc2a9431ad98aa803b2c03a93dc (patch)
tree4a9d8c405f1ce0ad08e0f8ff73f60a8a3958197b /randpkt_core/randpkt_core.c
parent280f2feeaf95fcf50f028162b49be1bf6866c918 (diff)
randpkt: Add support to generate IEEE802.15.4 packets
Change-Id: I17a93c18d204cb7ab70a5c6898f866b32f745a4b Reviewed-on: https://code.wireshark.org/review/20878 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'randpkt_core/randpkt_core.c')
-rw-r--r--randpkt_core/randpkt_core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/randpkt_core/randpkt_core.c b/randpkt_core/randpkt_core.c
index 06f9ab910f..d9f4a1b1f2 100644
--- a/randpkt_core/randpkt_core.c
+++ b/randpkt_core/randpkt_core.c
@@ -49,6 +49,7 @@ enum {
PKT_FDDI,
PKT_GIOP,
PKT_ICMP,
+ PKT_IEEE802154,
PKT_IP,
PKT_IPv6,
PKT_LLC,
@@ -420,6 +421,14 @@ static randpkt_example examples[] = {
1000,
},
+ { "ieee802.15.4", "IEEE 802.15.4",
+ PKT_IEEE802154, WTAP_ENCAP_IEEE802_15_4,
+ NULL, 0,
+ NULL, 0,
+ NULL, NULL,
+ 127,
+ },
+
{ "ip", "Internet Protocol",
PKT_IP, WTAP_ENCAP_ETHERNET,
pkt_ip, array_length(pkt_ip),