summaryrefslogtreecommitdiff
path: root/counter_hash.h
blob: 9041238fbda9565dd78654c2939a10d2bb47e4ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * addr_hash.h:
 *
 */

#ifndef __ADDR_HASH_H_ /* include guard */
#define __ADDR_HASH_H_

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "hash.h"

typedef struct {
  unsigned long long sent;
  unsigned long long recv;
} counter_type;

typedef counter_type key_type;      /* index into hash table */

hash_type* counter_hash_create(void);

#endif /* __ADDR_HASH_H_ */