X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Faddress.h;h=b8706ee92b177323f9021056d87b4cf8f10eeebd;hb=ceee295adb1e22818bcaf201f0135760836c5aae;hp=6315d3173350c498fb4083b2b15da4442ff6bcf2;hpb=182da3ab7be8f813a09f1807c1c76747eff02af6;p=catta diff --git a/avahi-common/address.h b/avahi-common/address.h index 6315d31..b8706ee 100644 --- a/avahi-common/address.h +++ b/avahi-common/address.h @@ -53,7 +53,7 @@ enum { #define AVAHI_ADDRESS_STR_MAX 40 /* IPv6 Max = 4*8 + 7 + 1 for NUL */ /** Return TRUE if the specified interface index is valid */ -#define AVAHI_IF_VALID(ifindex) (((ifindex) >= 0) || ((ifindex) == AVAHI_PROTO_UNSPEC)) +#define AVAHI_IF_VALID(ifindex) (((ifindex) >= 0) || ((ifindex) == AVAHI_IF_UNSPEC)) /** Return TRUE if the specified protocol is valid */ #define AVAHI_PROTO_VALID(protocol) (((protocol) == AVAHI_PROTO_INET) || ((protocol) == AVAHI_PROTO_INET6) || ((protocol) == AVAHI_PROTO_UNSPEC)) @@ -73,9 +73,9 @@ typedef struct AvahiAddress { AvahiProtocol proto; /**< Address family */ union { - AvahiIPv6Address ipv6; /** Address when IPv6 */ - AvahiIPv4Address ipv4; /** Address when IPv4 */ - uint8_t data[1]; /** Type independant data field */ + AvahiIPv6Address ipv6; /**< Address when IPv6 */ + AvahiIPv4Address ipv4; /**< Address when IPv4 */ + uint8_t data[1]; /**< Type independant data field */ } data; } AvahiAddress;