Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:flowi4_init_output

Proto: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)

Type:void

Parameter:

TypeParameterName
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