[sr-dev] git:master: modules:sipcapture: fixed uint types and IPPROTO_IPIP on Solaris.

Alexandr Dubovikov alexandr.dubovikov at gmail.com
Fri Oct 14 11:09:42 CEST 2011


Module: sip-router
Branch: master
Commit: 1ced096557f951b437c1fa5970ac0fa16357d8f0
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1ced096557f951b437c1fa5970ac0fa16357d8f0

Author: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Committer: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Date:   Fri Oct 14 11:06:25 2011 +0200

modules:sipcapture: fixed uint types and IPPROTO_IPIP on Solaris.

		Thanks to Jason Penton <jason.penton at gmail.com> for the bug report and testing.

---

 modules/sipcapture/sipcapture.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/sipcapture/sipcapture.h b/modules/sipcapture/sipcapture.h
index 46e1954..391178e 100644
--- a/modules/sipcapture/sipcapture.h
+++ b/modules/sipcapture/sipcapture.h
@@ -23,6 +23,12 @@
  *
  */
 
+#ifdef __OS_solaris
+typedef uint8_t u_int8_t;
+typedef uint16_t u_int16_t;
+#define IPPROTO_IPIP IPPROTO_ENCAP /* Solaris IPIP protocol has name ENCAP */
+#endif
+
 
 struct hep_hdr{
     u_int8_t hp_v;            /* version */




More information about the sr-dev mailing list