MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_ip_check_source_lists

Function ff_ip_check_source_lists

libavformat/ip.c:46–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46int ff_ip_check_source_lists(struct sockaddr_storage *source_addr_ptr, IPSourceFilters *s)
47{
48 int i;
49 if (s->nb_exclude_addrs) {
50 for (i = 0; i < s->nb_exclude_addrs; i++) {
51 if (!compare_addr(source_addr_ptr, &s->exclude_addrs[i]))
52 return 1;
53 }
54 }
55 if (s->nb_include_addrs) {
56 for (i = 0; i < s->nb_include_addrs; i++) {
57 if (!compare_addr(source_addr_ptr, &s->include_addrs[i]))
58 return 0;
59 }
60 return 1;
61 }
62 return 0;
63}
64
65struct addrinfo *ff_ip_resolve_host(void *log_ctx,
66 const char *hostname, int port,

Callers 3

rtp_readFunction · 0.85
circular_buffer_task_rxFunction · 0.85
udp_readFunction · 0.85

Calls 1

compare_addrFunction · 0.85

Tested by

no test coverage detected