Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ScriptParams.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * author: Tomasz Mrugalski <thomson@klub.com.pl>
5  *
6  * released under GNU GPL v2 only licence
7  *
8  */
9 
10 #ifndef NOTIFYSCRIPTPARAMS
11 #define NOTIFYSCRIPTPARAMS
12 
13 #include <iostream>
14 #include "IPv6Addr.h"
15 
17 public:
18  static const int MAX_PARAMS = 512;
19  const char * env[MAX_PARAMS];
20  std::string params;
21  int envCnt;
22  int ipCnt;
23  int pdCnt;
26  void addParam(const std::string& name, const std::string& value);
27  void addAddr(SPtr<TIPv6Addr> addr, unsigned int prefered, unsigned int valid,
28  std::string txt = std::string("") );
29  void addPrefix(SPtr<TIPv6Addr> prefix, unsigned short length, unsigned int prefered,
30  unsigned int valid, std::string txt = std::string(""));
31 };
32 
33 #endif
34