MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / check_blacklists

Function check_blacklists

blacklists.h:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 unsigned short proto);
87
88static inline int check_blacklists( unsigned short proto,
89 union sockaddr_union *to, char *body_s, int body_len)
90{
91 str body;
92 struct ip_addr ip;
93 unsigned short port;
94
95 body.s = body_s;
96 body.len = body_len;
97 su2ip_addr(&ip, to);
98 port = su_getport(to);
99 return check_against_blacklist(&ip, &body, port, proto);
100}
101
102
103struct bl_net_flags {

Callers 2

forward_requestFunction · 0.85
t_forward_nonackFunction · 0.85

Calls 3

su2ip_addrFunction · 0.85
su_getportFunction · 0.85
check_against_blacklistFunction · 0.85

Tested by

no test coverage detected