skb_dst_is_noref 检查skb的dst未被引用 skb_rtable skb_rtable - Returns the skb &rtable*@skb: buffer __skb_dst_copy skb_dst_force 确保DST是引用计数 dst_link_failure dst_output Output packet to network from transport. dst_input Input packet from network to transport. skb_dst_update...
上面看到的代码调用了 dst_output(skb) 。此函数只是查找关联到这个 skb 的 dst 条目 ,然后调用 output 方法。代码如下: /* Output packet to network from transport. */ staticinlineintdst_output(structsk_buff*skb) { returnskb_dst(skb)->output(skb); } 看起来很简单,但是 output 方法之前是如何关联...