Skip to content

Commit

Permalink
permissions: clang-format for coherent indentation and coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed May 18, 2023
1 parent 4bf8282 commit 71571d6
Show file tree
Hide file tree
Showing 13 changed files with 1,255 additions and 1,129 deletions.
380 changes: 205 additions & 175 deletions src/modules/permissions/address.c

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions src/modules/permissions/address.h
Expand Up @@ -68,8 +68,8 @@ int allow_address(sip_msg_t *_msg, int addr_group, str *ips, int port);
* given address group and has given ip address and port. Port value
* 0 in cached address table matches any port.
*/
int w_allow_address(struct sip_msg* _msg, char* _addr_group, char* _addr_sp,
char* _port_sp);
int w_allow_address(struct sip_msg *_msg, char *_addr_group, char *_addr_sp,
char *_port_sp);


int allow_source_address(sip_msg_t *_msg, int addr_group);
Expand All @@ -78,25 +78,26 @@ int allow_source_address(sip_msg_t *_msg, int addr_group);
* w_allow_source_address("group") equals to allow_address("group", "$si", "$sp")
* but is faster.
*/
int w_allow_source_address(struct sip_msg* _msg, char* _addr_group, char* _str2);
int w_allow_source_address(
struct sip_msg *_msg, char *_addr_group, char *_str2);


/*
* Checks if source address/port is found in cached address or
* subnet table in any group. If yes, returns that group. If not returns -1.
* Port value 0 in cached address and group table matches any port.
*/
int allow_source_address_group(struct sip_msg* _msg, char* _str1, char* _str2);
int allow_source_address_group(struct sip_msg *_msg, char *_str1, char *_str2);

int ki_allow_source_address_group(sip_msg_t* _msg);
int ki_allow_source_address_group(sip_msg_t *_msg);

/*
* Checks if address/port is found in cached address or
* subnet table in any group. If yes, returns that group. If not returns -1.
* Port value 0 in cached address and group table matches any port.
*/
int allow_address_group(struct sip_msg* _msg, char* _addr, char* _port);
int allow_address_group(struct sip_msg *_msg, char *_addr, char *_port);

int ki_allow_address_group(sip_msg_t* _msg, str* _addr, int _port);
int ki_allow_address_group(sip_msg_t *_msg, str *_addr, int _port);

#endif /* ADDRESS_H */

0 comments on commit 71571d6

Please sign in to comment.