]> git.saurik.com Git - apple/network_cmds.git/blame_incremental - racoon.tproj/isakmp_natd.h
network_cmds-176.4.1.tar.gz
[apple/network_cmds.git] / racoon.tproj / isakmp_natd.h
... / ...
CommitLineData
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.
6typedef enum
7{
8 natd_match_none = 0,
9 natd_match_local = 1,
10 natd_match_remote = 2
11} natd_match_t;
12
13natd_match_t natd_matches(struct ph1handle* iph1, struct isakmp_gen *natd_record);
14int natd_create(struct ph1handle* iph1);
15int natd_hasnat(const struct ph1handle* iph1);