函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\network.c Create Date:2022-07-27 21:13:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_parse_ipaddr_union - Parse an IP address.*@param: Pointer to "struct tomoyo_acl_param".*@ptr: Pointer to "struct tomoyo_ipaddr_union".* Returns true on success, false otherwise.

函数原型:bool tomoyo_parse_ipaddr_union(struct tomoyo_acl_param *param, struct tomoyo_ipaddr_union *ptr)

返回类型:bool

参数:

类型参数名称
struct tomoyo_acl_param *param
struct tomoyo_ipaddr_union *ptr
53  min等于u6_addr8
54  max等于u6_addr8
55  address等于tomoyo_read_token(param)
58  如果非strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search forin4_pton(address, - 1, min, '-', & end)大于0则
60  Valid only if @group == NULL. = false
61  如果非ends6_addr32[0]等于s6_addr32[0]
63  否则如果end自加不等于'-'或in4_pton(end, - 1, max, '\0', & end)小于等于0或end则返回:false
66  返回:true
68  如果in6_pton(address, - 1, min, '-', & end)大于0则
69  Valid only if @group == NULL. = true
70  如果非endmemmove(max, min, sizeof(u16) * 8)
72  否则如果end自加不等于'-'或in6_pton(end, - 1, max, '\0', & end)小于等于0或end则返回:false
75  返回:true
77  返回:false
调用者
名称描述
tomoyo_write_inet_networkmoyo_write_inet_network - Write "struct tomoyo_inet_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().