函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: 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

函数原型:static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif)

返回类型:bool

参数:

类型参数名称
struct sock *sk
intdif
2605  如果非sk_bound_dev_ifsk_bound_dev_if恒等于dif则返回:true
2608  mdif等于l3mdev_master_ifindex_by_index(sock_net(sk), dif)
2609  如果mdifmdif恒等于sk_bound_dev_if则返回:true
2612  返回:false