Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:udp_flow_src_port

Proto:static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb, int min, int max, bool use_eth)

Type:__be16

Parameter:

TypeParameterName
struct net *net
struct sk_buff *skb
intmin
intmax
booluse_eth
215  If min >= max Then
217  inet_get_local_port_range(net, & min, & max)
220  hash = skb_get_hash(skb)
221  If Value for the false possibility is greater at compile time(!hash) Then
222  If use_eth Then
228  Else
241  hash ^= hash << 16
243  Return htons((((u64)hash * (max - min)) >> 32) + min)