Parses the new listen address syntax.
FossilOrigin-Name: 53700282589dd95657096778f76b0fb0e3695e1d396e5386220e7c865d6a20c2
This commit is contained in:
parent
e4b9a0b364
commit
c1255f8261
@ -166,9 +166,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
void process_ctrl_packet(int index, struct sockaddr *addr, uint8_t * buffer, int len);
|
void process_ctrl_packet(int index, struct sockaddr *addr, uint8_t * buffer, int len);
|
||||||
#define AC_PROTO_CAPWAP 0
|
|
||||||
#define AC_PROTO_LWAPP 1
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -189,15 +186,27 @@ int ac_run()
|
|||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < conf_listen_addrs_len; i++) {
|
for (i = 0; i < conf_listen_addrs_len; i++) {
|
||||||
socklist_add_unicast(conf_listen_addrs[i], conf_control_port,
|
char addr[100];
|
||||||
AC_PROTO_CAPWAP);
|
char port[50];
|
||||||
#ifdef WITH_LWAPP
|
int proto;
|
||||||
if (conf_lwapp)
|
|
||||||
socklist_add_unicast(conf_listen_addrs[i], conf_lw_control_port,
|
conf_parse_listen_addr(conf_listen_addrs[i], addr, port, &proto);
|
||||||
AC_PROTO_LWAPP);
|
|
||||||
#endif
|
|
||||||
|
struct sockaddr sa;
|
||||||
|
|
||||||
|
|
||||||
|
socklist_add_unicast(addr, port,proto);
|
||||||
|
|
||||||
|
//#ifdef WITH_LWAPP
|
||||||
|
// if (conf_lwapp)
|
||||||
|
// socklist_add_unicast(conf_listen_addrs[i], conf_lw_control_port,
|
||||||
|
// AC_PROTO_LWAPP);
|
||||||
|
//#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (socklist_len == 0) {
|
if (socklist_len == 0) {
|
||||||
cw_log(LOG_ERR, "Fatal error: Could not setup any listen socket");
|
cw_log(LOG_ERR, "Fatal error: Could not setup any listen socket");
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user