when "echo-reply" then "129"
when "router-solicitation" then "133"
when "router-advertisement" then "134"
+ when "neighbour-solicitation" then "135"
+ when "neighbour-advertisement" then "136"
when "redirect" then "137"
else nil
end
specify { subject.icmp_name_to_number('echo-reply', proto).should == '129' }
specify { subject.icmp_name_to_number('router-solicitation', proto).should == '133' }
specify { subject.icmp_name_to_number('router-advertisement', proto).should == '134' }
+ specify { subject.icmp_name_to_number('neighbour-solicitation', proto).should == '135' }
+ specify { subject.icmp_name_to_number('neighbour-advertisement', proto).should == '136' }
specify { subject.icmp_name_to_number('redirect', proto).should == '137' }
end
end