Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__inet_lookup_skb

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

Type:struct sock

Parameter:

TypeParameterName
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  If sk Then Return sk
389  Return __inet_lookup(Net namespace inlines, hashinfo, skb, doff, saddr, sport, daddr, dport, inet_iif(skb), sdif, refcounted)