From 46894a34bde068d10f7fbb77d6a03ee6b19d82d6 Mon Sep 17 00:00:00 2001
From: Aurelien Castanie <aurelien.castanie@toulouse.viveris.com>
Date: Tue, 16 Jul 2013 10:34:10 +0200
Subject: [PATCH 3/5] Change InetAddressType from uint to int

---
 c/dadi.h      |    2 +-
 smi_parser.rb |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/dadi.h b/c/dadi.h
index df4eced..3d260c3 100644
--- a/c/dadi.h
+++ b/c/dadi.h
@@ -44,7 +44,7 @@ typedef char *DisplayString;
 typedef uint8_t IpAddress[4];
 typedef uint8_t MacAddress[6];
 typedef char *OctetString;
-typedef unsigned int InetAddressType;
+typedef int InetAddressType;
 typedef char *InetAddress;
 typedef unsigned int InetPortNumber;
 typedef uint64_t Counter64;
diff --git a/smi_parser.rb b/smi_parser.rb
index d8bf7b7..ea1490a 100644
--- a/smi_parser.rb
+++ b/smi_parser.rb
@@ -61,7 +61,7 @@ class SmiParser
         "DisplayString" => "chartab",
         "IpAddress" => "ipaddr",
         "MacAddress" => "macaddr" ,
-        "InetAddressType" => "uint" ,
+        "InetAddressType" => "int" ,
         "InetAddress" => "chartab" ,
         "ObjectIdentifier" => "chartab" ,
         "InetPortNumber" => "uint" ,
-- 
1.7.1

