Now printing Discovery Type
FossilOrigin-Name: eb06c9dace14d442237b2ff9e20f144a6db2998191495ddcf511294c153cbdb0
This commit is contained in:
parent
a8a9b1b399
commit
60e3758165
@ -70,6 +70,33 @@ int wtpinfo_print(char *str, struct wtpinfo * wtpinfo)
|
||||
else
|
||||
s+=sprintf(s,"Not set\n");
|
||||
|
||||
char disctypestr[32];
|
||||
switch(wtpinfo->discovery_type){
|
||||
case CW_DISCOVERY_TYPE_STATIC:
|
||||
sprintf(disctypestr,"Static");
|
||||
break;
|
||||
|
||||
case CW_DISCOVERY_TYPE_DHCP:
|
||||
sprintf(disctypestr,"DHCP");
|
||||
break;
|
||||
|
||||
case CW_DISCOVERY_TYPE_DNS:
|
||||
sprintf(disctypestr,"DNS");
|
||||
break;
|
||||
|
||||
case CW_DISCOVERY_TYPE_AC_REFERRAL:
|
||||
sprintf(disctypestr,"AC Referral");
|
||||
break;
|
||||
|
||||
default:
|
||||
sprintf(disctypestr,"Unknown");
|
||||
break;
|
||||
|
||||
}
|
||||
s+=sprintf (s,"\tDiscovery Type: %s\n",disctypestr);
|
||||
|
||||
|
||||
|
||||
sock_addrtostr((struct sockaddr*)&wtpinfo->local_ip,hstr,64);
|
||||
s+=sprintf (s,"\tLocal IP: %s\n",hstr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user