Project Alice
Loading...
Searching...
No Matches
pcp_client_db.c File Reference
#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 "pcp.h"
#include "pcp_utils.h"
#include "pcp_client_db.h"
#include "pcp_logger.h"
Include dependency graph for pcp_client_db.c:

Go to the source code of this file.

Classes

struct  find_data
 

Macros

#define EMPTY   0xFFFFFFFF
 
#define PCP_INIT_SERVER_COUNT   5
 

Typedefs

typedef struct find_data find_data_t
 

Functions

pcp_flow_tpcp_create_flow (pcp_server_t *s, struct flow_key_data *fkd)
 
void pcp_flow_clear_msg_buf (pcp_flow_t *f)
 
pcp_errno pcp_delete_flow_intern (pcp_flow_t *f)
 
pcp_errno pcp_db_add_flow (pcp_flow_t *f)
 
pcp_flow_tpcp_get_flow (struct flow_key_data *fkd, pcp_server_t *s)
 
pcp_errno pcp_db_rem_flow (pcp_flow_t *f)
 
pcp_errno pcp_db_foreach_flow (pcp_ctx_t *ctx, pcp_db_flow_iterate f, void *data)
 
int pcp_new_server (pcp_ctx_t *ctx, struct in6_addr *ip, uint16_t port, uint32_t scope_id)
 
pcp_server_tget_pcp_server (pcp_ctx_t *ctx, int pcp_server_index)
 
pcp_errno pcp_db_foreach_server (pcp_ctx_t *ctx, pcp_db_server_iterate f, void *data)
 
pcp_server_tget_pcp_server_by_ip (pcp_ctx_t *ctx, struct in6_addr *ip)
 
void pcp_db_free_pcp_servers (pcp_ctx_t *ctx)
 

Macro Definition Documentation

◆ EMPTY

#define EMPTY   0xFFFFFFFF

Definition at line 44 of file pcp_client_db.c.

◆ PCP_INIT_SERVER_COUNT

#define PCP_INIT_SERVER_COUNT   5

Definition at line 45 of file pcp_client_db.c.

Typedef Documentation

◆ find_data_t

typedef struct find_data find_data_t

Function Documentation

◆ get_pcp_server()

pcp_server_t * get_pcp_server ( pcp_ctx_t ctx,
int  pcp_server_index 
)

Definition at line 347 of file pcp_client_db.c.

Here is the caller graph for this function:

◆ get_pcp_server_by_ip()

pcp_server_t * get_pcp_server_by_ip ( pcp_ctx_t ctx,
struct in6_addr *  ip 
)

Definition at line 412 of file pcp_client_db.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pcp_create_flow()

pcp_flow_t * pcp_create_flow ( pcp_server_t s,
struct flow_key_data fkd 
)

Definition at line 64 of file pcp_client_db.c.

◆ pcp_db_add_flow()

pcp_errno pcp_db_add_flow ( pcp_flow_t f)

Definition at line 136 of file pcp_client_db.c.

◆ pcp_db_foreach_flow()

pcp_errno pcp_db_foreach_flow ( pcp_ctx_t ctx,
pcp_db_flow_iterate  f,
void *  data 
)

Definition at line 215 of file pcp_client_db.c.

Here is the caller graph for this function:

◆ pcp_db_foreach_server()

pcp_errno pcp_db_foreach_server ( pcp_ctx_t ctx,
pcp_db_server_iterate  f,
void *  data 
)

Definition at line 373 of file pcp_client_db.c.

Here is the caller graph for this function:

◆ pcp_db_free_pcp_servers()

void pcp_db_free_pcp_servers ( pcp_ctx_t ctx)

Definition at line 428 of file pcp_client_db.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pcp_db_rem_flow()

pcp_errno pcp_db_rem_flow ( pcp_flow_t f)

Definition at line 187 of file pcp_client_db.c.

Here is the caller graph for this function:

◆ pcp_delete_flow_intern()

pcp_errno pcp_delete_flow_intern ( pcp_flow_t f)

Definition at line 102 of file pcp_client_db.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pcp_flow_clear_msg_buf()

void pcp_flow_clear_msg_buf ( pcp_flow_t f)

Definition at line 91 of file pcp_client_db.c.

Here is the caller graph for this function:

◆ pcp_get_flow()

pcp_flow_t * pcp_get_flow ( struct flow_key_data fkd,
pcp_server_t s 
)

Definition at line 164 of file pcp_client_db.c.

◆ pcp_new_server()

int pcp_new_server ( pcp_ctx_t ctx,
struct in6_addr *  ip,
uint16_t  port,
uint32_t  scope_id 
)

Definition at line 275 of file pcp_client_db.c.

Here is the call graph for this function:
Here is the caller graph for this function: