函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ip_route_newports

函数原型:static inline struct rtable *ip_route_newports(struct flowi4 *fl4, struct rtable *rt, __be16 orig_sport, __be16 orig_dport, __be16 sport, __be16 dport, struct sock *sk)

返回类型:struct rtable

参数:

类型参数名称
struct flowi4 *fl4
struct rtable *rt
__be16orig_sport
__be16orig_dport
__be16sport
__be16dport
struct sock *sk
328  如果sport不等于orig_sportdport不等于orig_dport
329  fl4_dport等于dport
330  fl4_sport等于sport
331  ip_rt_put(rt)
332  Reset some input parameters after previous lookup
335  security_sk_classify_flow(sk, flowi4_to_flowi(fl4))
336  返回:ip_route_output_flow(sock_net(sk), fl4, sk)
338  返回:rt