函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__inet_lookup_skb

函数原型:static inline struct sock *__inet_lookup_skb(struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const __be16 sport, const __be16 dport, const int sdif, bool *refcounted)

返回类型:struct sock

参数:

类型参数名称
struct inet_hashinfo *hashinfo
struct sk_buff *skb
intdoff
const __be16sport
const __be16dport
const intsdif
bool *refcounted
382  sk等于skb_steal_sock(skb)
383  iph等于ip_hdr(skb)
385  * refcounted = true
386  如果sk则返回:sk
389  返回:__inet_lookup(Net namespace inlines, hashinfo, skb, doff, saddr, sport, daddr, dport, inet_iif(skb), sdif, refcounted)