summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/VoIpConfig.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2006-04-08 23:46:18 +0000
committerHenri Herscher <henri@oreka.org>2006-04-08 23:46:18 +0000
commit2bf46fc74157e05f696363b0b91a15bf4c1896b5 (patch)
treecde73f231dddb8e520fadfa4f2f971a48b6de72d /orkaudio/audiocaptureplugins/voip/VoIpConfig.h
parent100bc1845f00147f4cbb7b88574f190a316636b5 (diff)
* Added allowed and blocked CIDR IP address ranges
* Fixed SIP to: field detection issue * Fixed SIP multiple invite issue * replaced sleep by nanosleep * Improved logging git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@212 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/VoIpConfig.h')
-rw-r--r--orkaudio/audiocaptureplugins/voip/VoIpConfig.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/VoIpConfig.h b/orkaudio/audiocaptureplugins/voip/VoIpConfig.h
index 2c68eab..5313389 100644
--- a/orkaudio/audiocaptureplugins/voip/VoIpConfig.h
+++ b/orkaudio/audiocaptureplugins/voip/VoIpConfig.h
@@ -18,6 +18,7 @@
#include "StdString.h"
#include "Object.h"
#include "boost/shared_ptr.hpp"
+#include "PacketHeaderDefs.h"
#define DEVICE_PARAM "Device"
@@ -36,6 +37,7 @@ public:
bool IsPartOfLan(struct in_addr);
bool IsMediaGateway(struct in_addr);
bool IsDeviceWanted(CStdString device);
+ bool IsPacketWanted(IpHeaderStruct* ipHeader);
CStdString m_device; // old style but can still be used for specifying single device
std::list<CStdString> m_devices; // new style devices csv
@@ -43,6 +45,14 @@ public:
std::list<CStdString> m_asciiMediaGateways;
std::list<unsigned int> m_lanMasks;
std::list<CStdString> m_asciiLanMasks;
+
+ std::list<CStdString> m_asciiAllowedIpRanges; // CIDR notation
+ std::list<unsigned int> m_allowedIpRangePrefixes;
+ std::list<unsigned int> m_allowedIpRangeBitWidths;
+ std::list<CStdString> m_asciiBlockedIpRanges; // CIDR notation
+ std::list<unsigned int> m_blockedIpRangePrefixes;
+ std::list<unsigned int> m_blockedIpRangeBitWidths;
+
CStdString m_pcapFile;
CStdString m_pcapDirectory;
bool m_sipDropIndirectInvite;