]>
Commit | Line | Data |
---|---|---|
ac2f15b3 A |
1 | // natd_matches checks if the natd_record matches either the |
2 | // source address and port or the destination address and port | |
3 | // if natd_record matches source, returns 1. | |
4 | // if natd_record matches desination, returns 2. | |
5 | // if natd_record doesn't match any entries, returns 0. | |
2b484d24 A |
6 | |
7 | #ifndef __ISAKMP_NATD_H__ | |
8 | #define __ISAKMP_NATD_H__ | |
9 | ||
ac2f15b3 A |
10 | typedef enum |
11 | { | |
12 | natd_match_none = 0, | |
13 | natd_match_local = 1, | |
14 | natd_match_remote = 2 | |
15 | } natd_match_t; | |
16 | ||
17 | natd_match_t natd_matches(struct ph1handle* iph1, struct isakmp_gen *natd_record); | |
18 | int natd_create(struct ph1handle* iph1); | |
2b484d24 A |
19 | int natd_hasnat(const struct ph1handle* iph1); |
20 | ||
21 | ||
22 | #endif /* __ISAKMP_NATD_H__ */ | |
23 |