FFmpeg
|
#include "network.h"
Go to the source code of this file.
Data Structures | |
struct | IPSourceFilters |
Structure for storing IP (UDP) source filters or block lists. More... | |
Functions | |
int | ff_ip_check_source_lists (struct sockaddr_storage *source_addr_ptr, IPSourceFilters *s) |
Checks the source address against a given IP source filter. More... | |
struct addrinfo * | ff_ip_resolve_host (void *log_ctx, const char *hostname, int port, int type, int family, int flags) |
Resolves hostname into an addrinfo structure. More... | |
int | ff_ip_parse_sources (void *log_ctx, const char *buf, IPSourceFilters *filters) |
Parses the address[,address] source list in buf and adds it to the filters in the IPSourceFilters structure. More... | |
int | ff_ip_parse_blocks (void *log_ctx, const char *buf, IPSourceFilters *filters) |
Parses the address[,address] source block list in buf and adds it to the filters in the IPSourceFilters structure. More... | |
void | ff_ip_reset_filters (IPSourceFilters *filters) |
Resets the IP filter list and frees the internal fields of an IPSourceFilters structure. More... | |
int ff_ip_check_source_lists | ( | struct sockaddr_storage * | source_addr_ptr, |
IPSourceFilters * | s | ||
) |
Checks the source address against a given IP source filter.
Definition at line 46 of file ip.c.
Referenced by rtp_read(), and udp_read().
struct addrinfo* ff_ip_resolve_host | ( | void * | log_ctx, |
const char * | hostname, | ||
int | port, | ||
int | type, | ||
int | family, | ||
int | flags | ||
) |
Resolves hostname into an addrinfo structure.
Definition at line 65 of file ip.c.
Referenced by ip_parse_addr_list(), udp_set_url(), and udp_socket_create().
int ff_ip_parse_sources | ( | void * | log_ctx, |
const char * | buf, | ||
IPSourceFilters * | filters | ||
) |
Parses the address[,address] source list in buf and adds it to the filters in the IPSourceFilters structure.
Definition at line 145 of file ip.c.
Referenced by rtp_open(), and udp_open().
int ff_ip_parse_blocks | ( | void * | log_ctx, |
const char * | buf, | ||
IPSourceFilters * | filters | ||
) |
Parses the address[,address] source block list in buf and adds it to the filters in the IPSourceFilters structure.
Definition at line 150 of file ip.c.
Referenced by rtp_open(), and udp_open().
void ff_ip_reset_filters | ( | IPSourceFilters * | filters | ) |
Resets the IP filter list and frees the internal fields of an IPSourceFilters structure.
Definition at line 155 of file ip.c.
Referenced by rtp_close(), rtp_open(), udp_close(), and udp_open().