aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/field.lua
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-08-28 15:38:33 -0700
committerAnders Broman <a.broman58@gmail.com>2018-08-31 05:25:17 +0000
commitef013598494e8a6571d042bc73c2dab393934b2f (patch)
tree81c642e80868d852c8022f4caeea747e11bcd1ab /test/lua/field.lua
parent9a71ec042e68743ad709ae1b8b718985d4c79450 (diff)
Add support for protocol aliases. Switch BOOTP to DHCP.
Add support for aliasing one protocol name to another and for filtering using aliased fields. Mark aliased fields as deprecated. Rename the BOOTP dissector to DHCP and alias "bootp" to "dhcp". This lets you use both "dhcp.type" and "bootp.type" as display filter fields without having to duplicate all 500+ DHCP/BOOTP fields. To do: - Add checks to proto.c:check_valid_filter_name_or_fail? - Transition SSL to TLS. - Rename packet-bootp.c to packet-dhcp.c? Change-Id: I29977859995e8347d80b8e83f1618db441b10279 Ping-Bug: 14922 Reviewed-on: https://code.wireshark.org/review/29327 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'test/lua/field.lua')
-rw-r--r--test/lua/field.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lua/field.lua b/test/lua/field.lua
index 2e9d1c62bb..008a9bc942 100644
--- a/test/lua/field.lua
+++ b/test/lua/field.lua
@@ -67,8 +67,8 @@ local f_ip_src = Field.new("ip.src")
local f_ip_dst = Field.new("ip.dst")
local f_udp_srcport = Field.new("udp.srcport")
local f_udp_dstport = Field.new("udp.dstport")
-local f_bootp_hw = Field.new("bootp.hw.mac_addr")
-local f_bootp_opt = Field.new("bootp.option.type")
+local f_dhcp_hw = Field.new("dhcp.hw.mac_addr")
+local f_dhcp_opt = Field.new("dhcp.option.type")
test("Field__tostring-1", tostring(f_frame_proto) == "frame.protocols")
@@ -82,7 +82,7 @@ test("Field.type-1", f_frame_proto.type == ftypes.STRING)
test("Field.type-2", f_eth_src.type == ftypes.ETHER)
test("Field.type-3", f_ip_src.type == ftypes.IPv4)
test("Field.type-4", f_udp_srcport.type == ftypes.UINT16)
-test("Field.type-5", f_bootp_opt.type == ftypes.UINT8)
+test("Field.type-5", f_dhcp_opt.type == ftypes.UINT8)
-- make sure can't create a FieldInfo outside tap
test("Field__call-1",not pcall(makeFieldInfo,f_eth_src))
@@ -112,7 +112,7 @@ function tap.packet(pinfo,tvb)
test("Field.type-7", f_eth_src.type == ftypes.ETHER)
test("Field.type-8", f_ip_src.type == ftypes.IPv4)
test("Field.type-9", f_udp_srcport.type == ftypes.UINT16)
- test("Field.type-10", f_bootp_opt.type == ftypes.UINT8)
+ test("Field.type-10", f_dhcp_opt.type == ftypes.UINT8)
testing("FieldInfo")