fix packet_peer_context to actually do the right thing

This commit is contained in:
Nick Thomas
2013-08-22 02:54:36 +01:00
parent f36089eb23
commit 08b209d810
2 changed files with 43 additions and 21 deletions

View File

@@ -87,8 +87,13 @@ void rlocs_init(void);
struct rlocs *rlocs_new( char *filename );
// find a struct rlocs corresponding to a particular IPv4 eid
struct rloc *rloc_find_for_ipv4( struct rlocs *reg, struct in_addr *eid );
// find a struct rlocs corresponding to a particular IPv6 eid
struct rloc *rloc_find_for_ipv6( struct rlocs *reg, struct in6_addr *eid );
// find a struct rloc corresponding to a particular IPv4 or IPv6 RLOC
struct rloc *rloc_find_by_address( struct rlocs *reg, struct in_addr *ipv4, struct in6_addr *ipv6 );
int rlocs_find_two_ipv4(