On quinta-feira, 15 de setembro de 2016 12:04:20 PDT Gregg Reynolds wrote:
> Hi list,
> 
> I just spent about two days discovering that my code wasn't working because
> of this code in octypes.h, defn of OCDevAddr struct:
> 
> #if defined (ROUTING_GATEWAY) || defined (ROUTING_EP)
>     char                    routeData[MAX_ADDR_STR_SIZE]; //destination
> GatewayID:ClientId
> #endif
> 
> #if defined (ROUTING_GATEWAY) || defined (ROUTING_EP) occurs in other
> places but this one affects client code.
> 
> 1.  Is it the case that one or the other of these macros must be defined?

Yes.

> 2.  Since the build system defaults to ROUTING_EP, this kind of code looks
> like a bug.  Is it?

Not sure what you mean. Why do you think it is a bug?

All nodes must be routable, so disabling the functionality doesn't make sense.

> 3.  It looks to me like client build code should not need to specify a
> routing mode.  True?

Yes and no. It shouldn't have to choose: it's an EP.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to