Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ip_route_output_ports

Proto:static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4, struct sock *sk, __be32 daddr, __be32 saddr, __be16 dport, __be16 sport, __u8 proto, __u8 tos, int oif)

Type:struct rtable

Parameter:

TypeParameterName
struct net *net
struct flowi4 *fl4
struct sock *sk
__be32daddr
__be32saddr
__be16dport
__be16sport
__u8proto
__u8tos
intoif
157  flowi4_init_output(fl4, oif, sk ? sk_mark : 0, tos, RT_SCOPE_UNIVERSE, proto, sk ? inet_sk_flowi_flags(sk) : 0, daddr, saddr, dport, sport, sock_net_uid(net, sk))
161  If sk Then security_sk_classify_flow(sk, flowi4_to_flowi(fl4))
163  Return ip_route_output_flow(net, fl4, sk)