diff options
author | charan makkina <charan795m@gmail.com> | 2019-04-30 17:40:53 +0530 |
---|---|---|
committer | charan makkina <charan795m@gmail.com> | 2019-05-20 18:14:40 +0530 |
commit | a826fe833d3f2a8fe2673fa05811fe1a22baf045 (patch) | |
tree | da11a17c46ca9b8a002a52a290628574fa3f5eda /src/nSocket/include/nstack_rd.h | |
parent | 3e6bf7b64eea418c59959c18750261b815b2892c (diff) |
Feature: 19.04 part 1
Change-Id: Ibba924b8deca1f246b9dcb12d89d085b6fd33046
Signed-off-by: charan makkina <charan795m@gmail.com>
Diffstat (limited to 'src/nSocket/include/nstack_rd.h')
-rw-r--r-- | src/nSocket/include/nstack_rd.h | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/nSocket/include/nstack_rd.h b/src/nSocket/include/nstack_rd.h index a93f6a6..0df64b2 100644 --- a/src/nSocket/include/nstack_rd.h +++ b/src/nSocket/include/nstack_rd.h @@ -17,31 +17,38 @@ #ifndef __NSTACK_RD_H #define __NSTACK_RD_H +#include <sys/socket.h> +#include <netinet/in.h> +#include "nstack_rd_priv.h" + /*look up chose info by key*/ typedef struct __nstack_rd_key { - int type; - union - { - unsigned int ip_addr; - unsigned int proto_type; - }; + int type; + union + { + unsigned int ip_addr; + int socket_type; + int proto; + struct in6_addr in6_addr; + }; } nstack_rd_key; -#define NSTACK_RD_MAX (1 * 1024 * 1024) - /* *rd synchronism * */ -int nstack_rd_sys (); -int nstack_rd_age (); +int nstack_rd_init(nstack_rd_stack_info * pstack, int num); +int nstack_rd_sys(); +int nstack_rd_age(); +int nstack_rd_match_pre(int domain, int type, int protocol, + rd_data_item * item); /* *get stackid by some info *if input is ip, the value must be net order * */ -int nstack_rd_get_stackid (nstack_rd_key * addr, int *stackid); +int nstack_rd_get_stackid(nstack_rd_key * addr, rd_data_item * item); #endif |