mdns: documentation: fixed inconsistent enum in example of reading mdns results
This commit is contained in:
parent
0458bacc4e
commit
786f5641f7
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ Example method to resolve local services::
|
||||||
}
|
}
|
||||||
a = r->addr;
|
a = r->addr;
|
||||||
while(a){
|
while(a){
|
||||||
if(a->addr.type == MDNS_IP_PROTOCOL_V6){
|
if(a->addr.type == IPADDR_TYPE_V6){
|
||||||
printf(" AAAA: " IPV6STR "\n", IPV62STR(a->addr.u_addr.ip6));
|
printf(" AAAA: " IPV6STR "\n", IPV62STR(a->addr.u_addr.ip6));
|
||||||
} else {
|
} else {
|
||||||
printf(" A : " IPSTR "\n", IP2STR(&(a->addr.u_addr.ip4)));
|
printf(" A : " IPSTR "\n", IP2STR(&(a->addr.u_addr.ip4)));
|
||||||
|
|
Loading…
Reference in a new issue