Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\route.h Create Date:2022-07-28 06:41:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ip_neigh_for_gw

Proto:static inline struct neighbour *ip_neigh_for_gw(struct rtable *rt, struct sk_buff *skb, bool *is_v6gw)

Type:struct neighbour

Parameter:

TypeParameterName
struct rtable *rt
struct sk_buff *skb
bool *is_v6gw
377  dev = dev
380  If Value is more likely to compile time(rt_gw_family == Internet IP Protocol ) Then
381  neigh = ip_neigh_gw4(dev, rt_gw4)
382  Else if rt_gw_family == IP version 6 Then
383  neigh = ses ipv6_stub and is meant for use outside of IPv6 core
384  * is_v6gw = true
385  Else
386  neigh = ip_neigh_gw4(dev, daddr)
388  Return neigh