freewtp/src/wtp/kmod/capwap_private.h
Andreas Schultz a6d0efe91a wtp: rework kernel socket handling
Switch to a connected UDP kernel socket. Comparing the
local and remote IPs is no longer required and handling
different IP versions and UDP types is automatic.

The WTP logic needs to reopen the socket on demand now.
2016-02-18 15:06:39 +01:00

26 lines
658 B
C

#ifndef __KMOD_CAPWAP_PRIVATE_HEADER__
#define __KMOD_CAPWAP_PRIVATE_HEADER__
/* */
struct sc_capwap_workthread {
struct task_struct* thread;
struct sk_buff_head queue;
wait_queue_head_t waitevent;
};
/* */
int sc_capwap_init(struct sc_capwap_session *sc_acsession, struct net *net);
/* */
int sc_capwap_connect(struct sc_capwap_session *session,
struct sockaddr_storage *peeraddr,
struct sc_capwap_sessionid_element* sessionid, uint16_t mtu);
void sc_capwap_resetsession(struct sc_capwap_session *sc_acsession);
/* */
int sc_capwap_sendkeepalive(struct sc_capwap_session *sc_acsession);
#endif /* __KMOD_CAPWAP_PRIVATE_HEADER__ */