Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct sock * | sk | |
int | dif |
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |