Function report |
Source Code:security\lsm_audit.c |
Create Date:2022-07-28 19:30:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pv6_skb_to_auditdata : fill auditdata from skb*@skb : the skb*@ad : the audit data to fill*@proto : the layer 4 protocol* return 0 on success
Proto:int ipv6_skb_to_auditdata(struct sk_buff *skb, struct common_audit_data *ad, u8 *proto)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sk_buff * | skb | |
| struct common_audit_data * | ad | |
| u8 * | proto |
| 111 | ret = 0 |
| 121 | ret = 0 |
| 124 | offset = skb_network_offset(skb) |
| 128 | If offset < 0 Then Return 0 |
| 133 | Case nexthdr == IPPROTO_TCP |
| 137 | If (th == NULL) Then Break |
| 142 | Break |
| 144 | Case nexthdr == IPPROTO_UDP |
| 148 | If (uh == NULL) Then Break |
| 153 | Break |
| 155 | Case nexthdr == IPPROTO_DCCP |
| 166 | Case nexthdr == IPPROTO_SCTP |
| 170 | If (sh == NULL) Then Break |
| 174 | Break |
| 176 | Default |
| 179 | Return ret |
| 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 |