Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: a socket is bound to a device, check that the given device* index is either the same or that the socket is bound to an L3* master device and the given device index is also enslaved to* that L3 master

Proto:static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif)

Type:bool

Parameter:

TypeParameterName
struct sock *sk
intdif
2605  If Not sk_bound_dev_if || sk_bound_dev_if == dif Then Return true
2608  mdif = l3mdev_master_ifindex_by_index(sock_net(sk), dif)
2609  If mdif && mdif == sk_bound_dev_if Then Return true
2612  Return false