函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ip_route_output_ports

函数原型: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)

返回类型:struct rtable

参数:

类型参数名称
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  如果sksecurity_sk_classify_flow(sk, flowi4_to_flowi(fl4))
163  返回:ip_route_output_flow(net, fl4, sk)