我如何testingICMPredirect消息?

我想testing我的linux机器是否真的接受ICMPredirect消息并更新路由表中的条目。这是我迄今为止所做的一样。

  1. 模拟来自ostinato数据包生成器的带有0,1,2,3代码的ICMPredirect消息,并将其转发给Linux机器。

仍然路由表没有得到更新与新的网关。

下面显示的是我的机器中的当前路由表。

Destination Gateway Genmask Flags Metric Ref Use Iface 10.222.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 

我要testing的是接收ICMPredirect报文后主机是否更新路由表。