@@ -10523,6 +10523,11 @@ my %reject_tests = (
1052310523 expr => ' ip6 proto nosuchprotocol' ,
1052410524 errstr => ' unknown ip proto' ,
1052510525 },
10526+ proto_1_2_3_4 => {
10527+ DLT => ' RAW' ,
10528+ expr => ' proto 1.2.3.4' ,
10529+ errstr => ' \' proto\' modifier applied to IP address' ,
10530+ },
1052610531 # In the tests below the hostname normally should not matter because the
1052710532 # lookup would be made not in the IPv4/IPv6 space, or not at all. Still
1052810533 # use a hostname that does not exist on the Internet, just in case.
@@ -10658,6 +10663,42 @@ my %reject_tests = (
1065810663 expr => " ip6 gateway eth-ipv4-ipv6.host123.libpcap.test" ,
1065910664 errstr => ' illegal modifier of \' gateway\' ' ,
1066010665 },
10666+ gateway_1 => {
10667+ skip => skip_config_def1 (' INET6' ),
10668+ DLT => ' EN10MB' ,
10669+ expr => ' gateway 1' ,
10670+ errstr => ' \' gateway\' requires a name' ,
10671+ },
10672+ gateway_1_2 => {
10673+ skip => skip_config_def1 (' INET6' ),
10674+ DLT => ' EN10MB' ,
10675+ expr => ' gateway 1.2' ,
10676+ errstr => ' \' gateway\' requires a name' ,
10677+ },
10678+ gateway_1_2_3 => {
10679+ skip => skip_config_def1 (' INET6' ),
10680+ DLT => ' EN10MB' ,
10681+ expr => ' gateway 1.2.3' ,
10682+ errstr => ' \' gateway\' requires a name' ,
10683+ },
10684+ gateway_1_2_3_4 => {
10685+ skip => skip_config_def1 (' INET6' ),
10686+ DLT => ' EN10MB' ,
10687+ expr => ' gateway 1.2.3.4' ,
10688+ errstr => ' \' gateway\' requires a name' ,
10689+ },
10690+ gateway_mac48 => {
10691+ skip => skip_config_def1 (' INET6' ),
10692+ DLT => ' EN10MB' ,
10693+ expr => ' gateway 11:22:33:44:55:66' ,
10694+ errstr => ' ethernet address used in non-ether expression' ,
10695+ },
10696+ gateway_arcnet => {
10697+ skip => skip_config_def1 (' INET6' ),
10698+ DLT => ' EN10MB' ,
10699+ expr => ' gateway $af' ,
10700+ errstr => ' aid supported only on ARCnet' ,
10701+ },
1066110702);
1066210703
1066310704sub accept_test_label {
0 commit comments