Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:22:06 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smk_ipv6_localhost - Check for local ipv6 host address*@sip: the address* Returns boolean true if this is the localhost address
Proto:static bool smk_ipv6_localhost(struct sockaddr_in6 *sip)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sockaddr_in6 * | sip |
| 2337 | __be16 * be16p = (__be16 * ) & IPv6 address |
| 2338 | __be32 * be32p = (__be32 * ) & IPv6 address |
| 2340 | If be32p[0] == 0 && be32p[1] == 0 && be32p[2] == 0 && be16p[6] == 0 && ntohs(be16p[7]) == 1 Then Return true |
| 2343 | Return false |
| Name | Describe |
|---|---|
| smack_ipv6host_label | smack_ipv6host_label - check host based restrictions*@sip: the object end* looks for host based access restrictions* This version will only be appropriate for really small sets of single label* hosts |
| smk_ipv6_port_check | smk_ipv6_port_check - check Smack port access*@sk: socket*@address: address*@act: the action being taken* Create or update the port list entry |
| smack_socket_sock_rcv_skb | smack_socket_sock_rcv_skb - Smack packet delivery access check*@sk: socket*@skb: packet* Returns 0 if the packet should be delivered, an error code otherwise |
| 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 |