blob: ddc414ce0e706f350a1939ff82dc32e20583ef4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
Index: gogoc-1_2-RELEASE/gogoc-config/src/gogocvalidation.cc
===================================================================
--- gogoc-1_2-RELEASE.orig/gogoc-config/src/gogocvalidation.cc
+++ gogoc-1_2-RELEASE/gogoc-config/src/gogocvalidation.cc
@@ -512,7 +512,7 @@ bool Validate_ClientV4( const string& sC
if( sClientV4 != STR_AUTO )
{
struct in_addr address;
- unsigned long net;
+ in_addr_t net;
net = inet_addr( sClientV4.c_str() );
memcpy(&address, &net, sizeof(net));
@@ -535,7 +535,7 @@ bool Validate_DSLite( const string& sDSL
{
struct in_addr address;
- unsigned long net;
+ in_addr_t net;
net = inet_addr( sDSLite.c_str() );
memcpy(&address, &net, sizeof(net));
Index: gogoc-1_2-RELEASE/gogoc-config/src/haccessdevicemappingconfig.cc
===================================================================
--- gogoc-1_2-RELEASE.orig/gogoc-config/src/haccessdevicemappingconfig.cc
+++ gogoc-1_2-RELEASE/gogoc-config/src/haccessdevicemappingconfig.cc
@@ -265,7 +265,7 @@ bool HACCESSDeviceMappingConfig::Validat
// Check if IPv4 or IPv6 address
struct in6_addr addressv6;
struct in_addr addressv4;
- unsigned long net;
+ in_addr_t net;
net = inet_addr( aIPAddress.c_str() );
memcpy(&addressv4, &net, sizeof(net));
|