Prep for 6-in-6, 4-in-6, 6-in-4
This commit is contained in:
@@ -23,12 +23,13 @@ struct peer_context {
|
||||
|
||||
unsigned int path_mtu;
|
||||
|
||||
/* Probably don't need these
|
||||
struct rloc *rloc_x;
|
||||
struct rloc *rloc_y;
|
||||
*/
|
||||
struct rlocs *reg;
|
||||
struct rloc *x;
|
||||
struct rloc *y;
|
||||
};
|
||||
|
||||
typedef struct peer_context PeerCtx;
|
||||
|
||||
struct rloc {
|
||||
short family;
|
||||
union {
|
||||
@@ -95,17 +96,19 @@ int rlocs_find_two_ipv4(
|
||||
struct rloc **d_rloc_ptr, struct in_addr *d_rloc_addr
|
||||
);
|
||||
|
||||
struct peer_context *rlocs_get_peer_ctx( struct rlocs *reg, struct rloc *x, struct rloc *y );
|
||||
|
||||
int rloc_add_private_key( struct rloc *rloc, char *filename );
|
||||
|
||||
void rlocs_debug_output( struct rlocs *reg );
|
||||
|
||||
/* Returns -1 on error, or number of bytes written */
|
||||
ssize_t rlocs_encrypt( struct rlocs *reg, struct rloc *x, struct rloc *y, unsigned char *data, size_t data_len, unsigned char *dest, size_t dest_len );
|
||||
ssize_t rlocs_decrypt( struct rlocs *reg, struct rloc *x, struct rloc *y, unsigned char *data, size_t data_len, unsigned char *dest, size_t dest_len );
|
||||
ssize_t rlocs_encrypt( struct peer_context *pctx, unsigned char *data, size_t data_len, unsigned char *dest, size_t dest_len );
|
||||
ssize_t rlocs_decrypt( struct peer_context *pctx, unsigned char *data, size_t data_len, unsigned char *dest, size_t dest_len );
|
||||
|
||||
unsigned short rlocs_get_path_mtu( struct rlocs *reg, struct rloc *x, struct rloc *y );
|
||||
void rlocs_set_path_mtu( struct rlocs *reg, struct rloc *x, struct rloc *y, unsigned short new_mtu );
|
||||
|
||||
void rlocs_free( struct rlocs *registry );
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user