Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:59:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Returns error only if unable to parse addresses
Proto:static int selinux_parse_skb_ipv4(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 |
4189 | offset = skb_network_offset(skb) |
4200 | ret = 0 |
4206 | Case protocol == IPPROTO_TCP |
4209 | If ntohs(frag_off) & "Fragment Offset" part Then Break |
4214 | If (th == NULL) Then Break |
4219 | Break |
4222 | Case protocol == IPPROTO_UDP |
4225 | If ntohs(frag_off) & "Fragment Offset" part Then Break |
4230 | If (uh == NULL) Then Break |
4235 | Break |
4238 | Case protocol == IPPROTO_DCCP |
4241 | If ntohs(frag_off) & "Fragment Offset" part Then Break |
4246 | If (dh == NULL) Then Break |
4249 | sport = dccph_sport |
4250 | dport = dccph_dport |
4251 | Break |
4255 | Case protocol == IPPROTO_SCTP |
4258 | If ntohs(frag_off) & "Fragment Offset" part Then Break |
4263 | If (sh == NULL) Then Break |
4268 | Break |
4271 | Default |
4272 | Break |
4274 | out : |
4275 | Return ret |
Name | Describe |
---|---|
selinux_parse_skb |
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 |