added QSE_NWIFCFG_LINKUP, QSE_NWIFCFG_LINKDOWN, QSE_NWAD_NX.
changed qse_nwifcfg() to set an address type to QSE_NWAD_NX when the address can't be retrieved
This commit is contained in:
		@ -14,6 +14,9 @@ static void print_nwifcfg (qse_nwifcfg_t* ptr)
 | 
			
		||||
{
 | 
			
		||||
	qse_char_t tmp[128];
 | 
			
		||||
 | 
			
		||||
	if (ptr->flags & QSE_NWIFCFG_UP) qse_printf (QSE_T("UP "));
 | 
			
		||||
	if (ptr->flags & QSE_NWIFCFG_LINKUP) qse_printf (QSE_T("LINKUP "));
 | 
			
		||||
	if (ptr->flags & QSE_NWIFCFG_LINKDOWN) qse_printf (QSE_T("LINKDOWN "));
 | 
			
		||||
	qse_printf (QSE_T("[%s] ifindex=[%u] "), ptr->name, ptr->index);
 | 
			
		||||
		
 | 
			
		||||
	qse_nwadtostr (&ptr->addr, tmp, QSE_COUNTOF(tmp), QSE_NWADTOSTR_ALL);
 | 
			
		||||
@ -26,6 +29,11 @@ static void print_nwifcfg (qse_nwifcfg_t* ptr)
 | 
			
		||||
		qse_nwadtostr (&ptr->bcast, tmp, QSE_COUNTOF(tmp), QSE_NWADTOSTR_ALL);
 | 
			
		||||
		qse_printf (QSE_T("bcast=[%s] "), tmp);
 | 
			
		||||
	}
 | 
			
		||||
	if (ptr->flags & QSE_NWIFCFG_PTOP)
 | 
			
		||||
	{
 | 
			
		||||
		qse_nwadtostr (&ptr->ptop, tmp, QSE_COUNTOF(tmp), QSE_NWADTOSTR_ALL);
 | 
			
		||||
		qse_printf (QSE_T("ptop=[%s] "), tmp);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	qse_printf (QSE_T("mtu=[%d] "), (int)ptr->mtu);
 | 
			
		||||
	qse_printf (QSE_T("hwaddr=[%02X:%02X:%02X:%02X:%02X:%02X] "), ptr->ethw[0], ptr->ethw[1], ptr->ethw[2], ptr->ethw[3], ptr->ethw[4], ptr->ethw[5]);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user