AnyConnect Secure Mobility Client  4.10.08025
FirewallInfo.h
1 
2 /**************************************************************************
3 * Copyright (c) 2009, Cisco Systems, All Rights Reserved
4 ***************************************************************************
5 *
6 * File: FirewallInfo.h
7 * Author: Vishwa Krishnamurthy
8 * Date: 12/06/2009
9 *
10 ***************************************************************************/
11 
12 
13 #ifndef _FIREWALLINFO_
14 #define _FIREWALLINFO_
15 
16 #include <iostream>
17 #include <stdint.h>
18 
19 #include "GlobalEnums.h"
20 #include "api.h"
21 
22 class VPN_VPNAPI FirewallInfo
23 {
24 public:
25  /**
26  * Constructor used to create a firewall instance. This method is not
27  * intended for public use.
28  */
29  FirewallInfo(FW_Interface fwInterface,
30  FW_Permission fwPermission,
31  FW_Protocol fwProtocol,
32  uint16_t fwSrcPortLowerBound,
33  uint16_t fwSrcPortUpperBound,
34  uint16_t fwDstPortLowerBound,
35  uint16_t fwDstPortUpperBound,
36  tstring fwDstAddress,
37  uint32_t fwDstAddressPrefixLength);
38 
39  /**
40  * Constructor used to copy a firewall instance. This method is not
41  * intended for public use.
42  */
43  FirewallInfo(const FirewallInfo &fwInfo);
44  ~FirewallInfo() {}
45 
46  tstring getPermission();
47  tstring getProtocol();
48  tstring getInterface();
49  tstring getSrcPortRange();
50  tstring getDstPortRange();
51  tstring getDstAddr();
52 
53 private:
54  FW_Interface nInterface;
55  FW_Permission nPermission;
56  FW_Protocol nProtocol;
57  uint32_t nSrcPortLowerBound;
58  uint32_t nSrcPortUpperBound;
59  uint32_t nDstPortLowerBound;
60  uint32_t nDstPortUpperBound;
61  tstring szDstAddress;
62  uint32_t nPrefixLength;
63 
64 };
65 
66 tostream& operator <<(tostream &outStream, FirewallInfo &fwRule);
67 
68 #endif // _FIREWALLINFO_
69 
#define tstring
Definition: api.h:35
Definition: FirewallInfo.h:22