函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:flowi4_init_output

函数原型:static inline void flowi4_init_output(struct flowi4 *fl4, int oif, __u32 mark, __u8 tos, __u8 scope, __u8 proto, __u8 flags, __be32 daddr, __be32 saddr, __be16 dport, __be16 sport, kuid_t uid)

返回类型:void

参数:

类型参数名称
struct flowi4 *fl4
intoif
__u32mark
__u8tos
__u8scope
__u8proto
__u8flags
__be32daddr
__be32saddr
__be16dport
__be16sport
kuid_tuid
105  flowi4_oif等于oif
106  flowi4_iif等于dex generation is per-net namespace, and loopback is* always the 1st device in ns (see net_dev_init), thus any* loopback device should get ifindex 1
107  flowi4_mark等于mark
108  flowi4_tos等于tos
109  flowi4_scope等于scope
110  flowi4_proto等于proto
111  flowi4_flags等于flags
112  flowi4_secid等于0
113  tun_id等于0
114  flowi4_uid等于uid
115  daddr等于daddr
116  (saddr,daddr) must be grouped, same order as in IP header 等于saddr
117  fl4_dport等于dport
118  fl4_sport等于sport
调用者
名称描述
ip_route_output_ports
ip_route_connect_initp_route_connect() and ip_route_newports() work in tandem whilst* binding a socket for a new outgoing connection.* In order to use IPSEC properly, we must, in the end, have a* route that was looked up using all available keys including source