Cisco support ... more
FossilOrigin-Name: b58fc76b825799dba82404f86b1e927fa902e5825fe06210d9894f1d2b4168b8
This commit is contained in:
		@ -11,7 +11,7 @@ ifndef ARCH
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
LDFLAGS+=-g -D_REENTRANT -L/usr/local/lib -L../capwap/$(ARCH)
 | 
			
		||||
CFLAGS += -Wall -g -O0 -D_REENTRANT -DIPV6 -I/usr/local/include -I../capwap  
 | 
			
		||||
CFLAGS += -Wall -g -O3 -D_REENTRANT -DIPV6 -I/usr/local/include -I../capwap  
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
LIBS+=-lcapwap
 | 
			
		||||
 | 
			
		||||
@ -318,8 +318,6 @@ static int init_listen_addrs()
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		if (ifa->ifa_addr->sa_family==AF_INET && conf_ipv4){
 | 
			
		||||
			sock_addrtostr(ifa->ifa_addr,str,100);
 | 
			
		||||
			*strchr(str,':')=0;
 | 
			
		||||
 | 
			
		||||
@ -369,6 +369,13 @@ static void wtpman_run_discovery(void *arg)
 | 
			
		||||
	cwread_discovery_request(&wtpman->wtpinfo,cwrmsg->msgelems,cwrmsg->msgelems_len);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	printf("RMAC-LEN:%d\n",cwrmsg->rmac[0]);
 | 
			
		||||
 | 
			
		||||
printf("HW: %s\n",sock_hwaddr2str(bstr_data(cwrmsg->rmac),bstr_len(cwrmsg->rmac)));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	conn_detect_capwap(wtpman->conn,&wtpman->wtpinfo);
 | 
			
		||||
 | 
			
		||||
	char wtpinfostr[8192];
 | 
			
		||||
@ -379,6 +386,8 @@ static void wtpman_run_discovery(void *arg)
 | 
			
		||||
 | 
			
		||||
	struct radioinfo radioinfo;
 | 
			
		||||
	radioinfo.rid = cwrmsg->rid;
 | 
			
		||||
	radioinfo.rmac = 0; //&cwrmsg->rmac;
 | 
			
		||||
	
 | 
			
		||||
//	memcpy(radioinfo.rmac, cwrmsg->rmac,8);
 | 
			
		||||
//	radioinfo.rmac[0]=0;
 | 
			
		||||
 | 
			
		||||
@ -530,6 +539,8 @@ static int wtpman_join(void *arg,time_t timer)
 | 
			
		||||
		return 0;
 | 
			
		||||
	
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	process_join_request(&wtpman->wtpinfo,cwrmsg->msgelems,cwrmsg->msgelems_len);
 | 
			
		||||
	conn_detect_capwap(wtpman->conn,&wtpman->wtpinfo);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user