rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #00311
Re: [Question #165269]: Compile RoHC tool using CYGWIN
Hi all,
i add the same problem for transferring the library from Linux to Windows
To solve it, I defined the structure in the following way (see below).
I'm using now the library under Microsoft Visual Studio (easier to debug).
I hope it helps.
Regards,
Romain
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef struct in6_addr {
union {
u_char Byte[16];
u_short Word[8];
} u;
};
struct ip6_hdr {
uint32_t ip6_flow; /* 24 bits of flow-ID */
uint16_t ip6_plen; /* payload length */
uint8_t ip6_nxt; /* next header */
uint8_t ip6_hlim; /* hop limit */
uint8_t ip6_vfc; /* 4 bits version, 4 bits priority */
struct in6_addr ip6_src; /* source address */
struct in6_addr ip6_dst; /* destination address */
};
-----Original Message-----
From: rohc-bounces+romain.hermenier=dlr.de@xxxxxxxxxxxxxxxxxxx [mailto:rohc-bounces+romain.hermenier=dlr.de@xxxxxxxxxxxxxxxxxxx] On Behalf Of Dominique Bressanelli
Sent: Tuesday, July 19, 2011 1:16 PM
To: rohc@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Rohc] [Question #165269]: Compile RoHC tool using CYGWIN
Question #165269 on rohc changed:
https://answers.launchpad.net/rohc/+question/165269
Status: Needs information => Open
Dominique Bressanelli gave more information on the question:
Hi Didier
Thank you for quick answer.
I think the main problem is that Cygwin does not use netinet/ip6.h. I tried to define
my own netinet/ip6.h including ip6_hdr, but I still run into compatibility issues.
Would you please let me know what your ip6_hdr struct from netinet/ip6.h looks like ?
Also I would need the code snippets for the definition of struct in6_addr.
This is what I tried to define:
istruct ip6_hdr {
unsigned char ip6_priority:4;
unsigned char ip6_version:4;
unsigned int ip6_flow;
unsigned short ip6_plen;
unsigned char ip6_nxt;
unsigned char ip6_hlim;
struct in6_addr ip6_src;
struct in6_addr ip6_dst;
};
Thank you for your help !
Dominique
--
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.
_______________________________________________
Mailing list: https://launchpad.net/~rohc
Post to : rohc@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~rohc
More help : https://help.launchpad.net/ListHelp
Follow ups
References