2020-05-27 00:39:19 +00:00
|
|
|
load("//test/packetimpact/runner:defs.bzl", "packetimpact_go_test")
|
2020-03-17 15:52:14 +00:00
|
|
|
|
|
|
|
package(
|
|
|
|
default_visibility = ["//test/packetimpact:__subpackages__"],
|
|
|
|
licenses = ["notice"],
|
|
|
|
)
|
|
|
|
|
|
|
|
packetimpact_go_test(
|
|
|
|
name = "fin_wait2_timeout",
|
|
|
|
srcs = ["fin_wait2_timeout_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-05-29 18:51:02 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "ipv4_id_uniqueness",
|
|
|
|
srcs = ["ipv4_id_uniqueness_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/abi/linux",
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-04-01 02:51:52 +00:00
|
|
|
packetimpact_go_test(
|
2020-07-13 18:44:41 +00:00
|
|
|
name = "udp_recv_mcast_bcast",
|
|
|
|
srcs = ["udp_recv_mcast_bcast_test.go"],
|
2020-04-01 02:51:52 +00:00
|
|
|
# TODO(b/152813495): Fix netstack then remove the line below.
|
2020-05-15 01:16:10 +00:00
|
|
|
expect_netstack_failure = True,
|
2020-04-01 02:51:52 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip",
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-04-29 01:49:19 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "udp_icmp_error_propagation",
|
|
|
|
srcs = ["udp_icmp_error_propagation_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip",
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-06-12 01:02:58 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_reordering",
|
|
|
|
srcs = ["tcp_reordering_test.go"],
|
|
|
|
# TODO(b/139368047): Fix netstack then remove the line below.
|
|
|
|
expect_netstack_failure = True,
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//pkg/tcpip/seqnum",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-04-08 00:48:06 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_window_shrink",
|
|
|
|
srcs = ["tcp_window_shrink_test.go"],
|
2020-05-05 21:28:28 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_zero_window_probe",
|
|
|
|
srcs = ["tcp_zero_window_probe_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_zero_window_probe_retransmit",
|
|
|
|
srcs = ["tcp_zero_window_probe_retransmit_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_zero_window_probe_usertimeout",
|
|
|
|
srcs = ["tcp_zero_window_probe_usertimeout_test.go"],
|
2020-04-08 00:48:06 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
2020-05-14 04:25:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_retransmits",
|
|
|
|
srcs = ["tcp_retransmits_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
2020-04-08 00:48:06 +00:00
|
|
|
)
|
|
|
|
|
2020-04-16 02:36:03 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_outside_the_window",
|
|
|
|
srcs = ["tcp_outside_the_window_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//pkg/tcpip/seqnum",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-04-10 15:20:56 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_noaccept_close_rst",
|
|
|
|
srcs = ["tcp_noaccept_close_rst_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-04-14 18:04:30 +00:00
|
|
|
packetimpact_go_test(
|
2020-06-03 15:48:23 +00:00
|
|
|
name = "tcp_send_window_sizes_piggyback",
|
|
|
|
srcs = ["tcp_send_window_sizes_piggyback_test.go"],
|
2020-04-14 18:04:30 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-04-16 19:21:06 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_close_wait_ack",
|
|
|
|
srcs = ["tcp_close_wait_ack_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//pkg/tcpip/seqnum",
|
2020-05-21 00:52:05 +00:00
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_paws_mechanism",
|
|
|
|
srcs = ["tcp_paws_mechanism_test.go"],
|
|
|
|
# TODO(b/156682000): Fix netstack then remove the line below.
|
|
|
|
expect_netstack_failure = True,
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//pkg/tcpip/seqnum",
|
2020-04-16 19:21:06 +00:00
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-04-20 03:47:55 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_user_timeout",
|
|
|
|
srcs = ["tcp_user_timeout_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-05-30 00:22:56 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_queue_receive_in_syn_sent",
|
|
|
|
srcs = ["tcp_queue_receive_in_syn_sent_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-05-29 19:27:55 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_synsent_reset",
|
|
|
|
srcs = ["tcp_synsent_reset_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_synrcvd_reset",
|
|
|
|
srcs = ["tcp_synrcvd_reset_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-06-04 21:22:46 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_cork_mss",
|
|
|
|
srcs = ["tcp_cork_mss_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-06-15 23:18:25 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "tcp_handshake_window_size",
|
|
|
|
srcs = ["tcp_handshake_window_size_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-04-24 22:55:11 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "icmpv6_param_problem",
|
|
|
|
srcs = ["icmpv6_param_problem_test.go"],
|
|
|
|
# TODO(b/153485026): Fix netstack then remove the line below.
|
2020-05-15 01:16:10 +00:00
|
|
|
expect_netstack_failure = True,
|
2020-04-24 22:55:11 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip",
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
Packetimpact test for IPv6 unknown options action
The Option Type identifiers are internally encoded such that their
highest-order two bits specify the action that must be taken if the
processing IPv6 node does not recognize the Option Type:
00 - skip over this option and continue processing the header.
01 - discard the packet.
10 - discard the packet and, regardless of whether or not the
packet's Destination Address was a multicast address, send an
ICMP Parameter Problem, Code 2, message to the packet's
Source Address, pointing to the unrecognized Option Type.
11 - discard the packet and, only if the packet's Destination
Address was not a multicast address, send an ICMP Parameter
Problem, Code 2, message to the packet's Source Address,
pointing to the unrecognized Option Type.
PiperOrigin-RevId: 318566613
2020-06-26 23:42:38 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "ipv6_unknown_options_action",
|
|
|
|
srcs = ["ipv6_unknown_options_action_test.go"],
|
|
|
|
# TODO(b/159928940): Fix netstack then remove the line below.
|
|
|
|
expect_netstack_failure = True,
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip",
|
|
|
|
"//pkg/tcpip/header",
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-05-08 22:38:42 +00:00
|
|
|
packetimpact_go_test(
|
|
|
|
name = "udp_send_recv_dgram",
|
|
|
|
srcs = ["udp_send_recv_dgram_test.go"],
|
|
|
|
deps = [
|
|
|
|
"//test/packetimpact/testbench",
|
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
|
|
],
|
|
|
|
)
|