Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:23:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smk_skb_to_addr_ipv6
Proto:static int smk_skb_to_addr_ipv6(struct sk_buff *skb, struct sockaddr_in6 *sip)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sk_buff * | skb | |
struct sockaddr_in6 * | sip |
3797 | Transport layer port # = 0 |
3799 | offset = skb_network_offset(skb) |
3803 | IPv6 address = saddr |
3813 | Case proto == IPPROTO_TCP |
3815 | If (th != NULL) Then Transport layer port # = source |
3817 | Break |
3818 | Case proto == IPPROTO_UDP |
3819 | Case proto == IPPROTO_UDPLITE |
3821 | If (uh != NULL) Then Transport layer port # = source |
3823 | Break |
3824 | Case proto == IPPROTO_DCCP |
3826 | If (dh != NULL) Then Transport layer port # = dccph_sport |
3828 | Break |
3830 | Return proto |
Name | Describe |
---|---|
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 |