Function report | 
Source Code:security\selinux\netport.c | 
Create Date:2022-07-28 19:10:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:sel_netport_find - Search for a port record*@protocol: protocol*@port: pnum* Description:* Search the network port table and return the matching record. If an entry* can not be found in the table return NULL.
Proto:static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum)
Type:struct sel_netport
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| u8 | protocol | |
| u16 | pnum | 
| 89 | idx = sel_netport_hashfn - Hashing function for the port table*@pnum: port number* Description:* This is the hashing function for the port table, it returns the bucket* number for the given port. | 
| 91 | If port number == pnum && transport protocol == protocol Then Return port | 
| 94 | Return NULL | 
| Name | Describe | 
|---|---|
| sel_netport_sid_slow | sel_netport_sid_slow - Lookup the SID of a network address using the policy*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port by quering the security* policy | 
| sel_netport_sid | sel_netport_sid - Lookup the SID of a network port*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port using the fastest method* possible | 
| 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  |