@@ -10523,6 +10523,11 @@ my %reject_tests = (
10523
10523
expr => ' ip6 proto nosuchprotocol' ,
10524
10524
errstr => ' unknown ip proto' ,
10525
10525
},
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
+ },
10526
10531
# In the tests below the hostname normally should not matter because the
10527
10532
# lookup would be made not in the IPv4/IPv6 space, or not at all. Still
10528
10533
# use a hostname that does not exist on the Internet, just in case.
@@ -10658,6 +10663,42 @@ my %reject_tests = (
10658
10663
expr => " ip6 gateway eth-ipv4-ipv6.host123.libpcap.test" ,
10659
10664
errstr => ' illegal modifier of \' gateway\' ' ,
10660
10665
},
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
+ },
10661
10702
);
10662
10703
10663
10704
sub accept_test_label {
0 commit comments