mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
Fix firewall setting not being applied. return incase the interap socket fails. Clean up in failure conditions. Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
17 lines
445 B
C
17 lines
445 B
C
/* SPDX-License-Identifier BSD-3-Clause */
|
|
#include <ev.h>
|
|
int interap_send(unsigned short port, char *dst_ip,
|
|
void *data, unsigned int len);
|
|
int interap_recv(unsigned short port, int (*recv_cb)(void *, ssize_t),
|
|
unsigned int len, struct ev_loop *loop,
|
|
ev_io *io);
|
|
void interap_rcv_close(void);
|
|
|
|
typedef int (*callback)(void *, ssize_t);
|
|
typedef struct recv_arg {
|
|
callback cb;
|
|
unsigned int len;
|
|
}recv_arg;
|
|
|
|
#define IAC_IFACE "br-wan"
|