Browse Source

* rename file: src/match.h -> src/ipaddr.h

master
Alex 'AdUser' Z 8 years ago
parent
commit
65523b55fa
  1. 19
      src/ipaddr.h
  2. 10
      src/match.h

19
src/ipaddr.h

@ -0,0 +1,19 @@
#ifndef F2B_IPADDR_H_
#define F2B_IPADDR_H_
#include <arpa/inet.h>
#include "matches.h"
typedef struct {
struct f2b_ipaddr_t *next;
char text[40]; /* 8 x "ffff" + 7 x ":" + '\0' */
int addr_type;
union {
struct in_addr v4;
struct in6_addr v6;
} binary;
f2b_matches_t matches;
} f2b_ipaddr_t;
#endif /* F2B_IPADDR_H_ */

10
src/match.h

@ -1,10 +0,0 @@
#ifndef F2B_MATCH_H_
#define F2B_MATCH_H_
typedef struct {
struct f2b_match_t *next;
char ip[40]; /* 8 x "ffff" + 7 x ":" + '\0' */
time_t seen;
} f2b_match_t;
#endif /* F2B_MATCH_H_ */
Loading…
Cancel
Save