函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\route.h Create Date:2022-07-27 07:39:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ip_neigh_for_gw

函数原型:static inline struct neighbour *ip_neigh_for_gw(struct rtable *rt, struct sk_buff *skb, bool *is_v6gw)

返回类型:struct neighbour

参数:

类型参数名称
struct rtable *rt
struct sk_buff *skb
bool *is_v6gw
377  dev等于dev
380  如果此条件成立可能性大(为编译器优化)(rt_gw_family == Internet IP Protocol )则
381  neigh等于ip_neigh_gw4(dev, rt_gw4)
382  否则如果rt_gw_family恒等于IP version 6
383  neigh等于ses ipv6_stub and is meant for use outside of IPv6 core
384  * is_v6gw = true
385  否则
386  neigh等于ip_neigh_gw4(dev, daddr)
388  返回:neigh