#include "default_config.h"
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sys/select.h>
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include "pcp.h"
#include "net/pcp_socket.h"
#include "pcp_client_db.h"
#include "pcp_logger.h"
#include "pcp_event_handler.h"
#include "pcp_utils.h"
#include "pcp_server_discovery.h"
#include "net/findsaddr.h"
Go to the source code of this file.
|
PCP_SOCKET | pcp_get_socket (pcp_ctx_t *ctx) |
|
int | pcp_add_server (pcp_ctx_t *ctx, struct sockaddr *pcp_server, uint8_t pcp_version) |
|
pcp_ctx_t * | pcp_init (uint8_t autodiscovery, pcp_socket_vt_t *socket_vt) |
|
int | pcp_eval_flow_state (pcp_flow_t *flow, pcp_fstate_e *fstate) |
|
pcp_fstate_e | pcp_wait (pcp_flow_t *flow, int timeout, int exit_on_partial_res) |
|
pcp_flow_t * | pcp_new_flow (pcp_ctx_t *ctx, struct sockaddr *src_addr, struct sockaddr *dst_addr, struct sockaddr *ext_addr, uint8_t protocol, uint32_t lifetime, void *userdata) |
|
void | pcp_flow_set_lifetime (pcp_flow_t *f, uint32_t lifetime) |
|
void | pcp_flow_set_3rd_party_opt (pcp_flow_t *f, struct sockaddr *thirdp_addr) |
|
void | pcp_flow_set_filter_opt (pcp_flow_t *f, struct sockaddr *filter_ip, uint8_t filter_prefix) |
|
void | pcp_flow_set_prefer_failure_opt (pcp_flow_t *f) |
|
void | pcp_close_flow (pcp_flow_t *f) |
|
void | pcp_delete_flow (pcp_flow_t *f) |
|
void | pcp_terminate (pcp_ctx_t *ctx, int close_flows) |
|
pcp_flow_info_t * | pcp_flow_get_info (pcp_flow_t *f, size_t *info_count) |
|
void | pcp_flow_set_user_data (pcp_flow_t *f, void *userdata) |
|
void * | pcp_flow_get_user_data (pcp_flow_t *f) |
|
◆ pcp_add_server()
int pcp_add_server |
( |
pcp_ctx_t * |
ctx, |
|
|
struct sockaddr * |
pcp_server, |
|
|
uint8_t |
pcp_version |
|
) |
| |
◆ pcp_close_flow()
◆ pcp_delete_flow()
◆ pcp_eval_flow_state()
◆ pcp_flow_get_info()
◆ pcp_flow_get_user_data()
◆ pcp_flow_set_3rd_party_opt()
void pcp_flow_set_3rd_party_opt |
( |
pcp_flow_t * |
f, |
|
|
struct sockaddr * |
thirdp_addr |
|
) |
| |
◆ pcp_flow_set_filter_opt()
void pcp_flow_set_filter_opt |
( |
pcp_flow_t * |
f, |
|
|
struct sockaddr * |
filter_ip, |
|
|
uint8_t |
filter_prefix |
|
) |
| |
◆ pcp_flow_set_lifetime()
◆ pcp_flow_set_prefer_failure_opt()
void pcp_flow_set_prefer_failure_opt |
( |
pcp_flow_t * |
f | ) |
|
◆ pcp_flow_set_user_data()
void pcp_flow_set_user_data |
( |
pcp_flow_t * |
f, |
|
|
void * |
userdata |
|
) |
| |
◆ pcp_get_socket()
◆ pcp_init()
◆ pcp_new_flow()
pcp_flow_t * pcp_new_flow |
( |
pcp_ctx_t * |
ctx, |
|
|
struct sockaddr * |
src_addr, |
|
|
struct sockaddr * |
dst_addr, |
|
|
struct sockaddr * |
ext_addr, |
|
|
uint8_t |
protocol, |
|
|
uint32_t |
lifetime, |
|
|
void * |
userdata |
|
) |
| |
◆ pcp_terminate()
void pcp_terminate |
( |
pcp_ctx_t * |
ctx, |
|
|
int |
close_flows |
|
) |
| |
◆ pcp_wait()