1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-05-01 19:32:59 +03:00
zapret/tpws/tpws_conn.h
2016-02-15 16:34:45 +03:00

14 lines
413 B
C

#ifndef TPROXY_TEST_CONN_H
#define TPROXY_TEST_CONN_H
#include "tpws.h"
#include <stdbool.h>
int check_local_ip(const struct sockaddr *saddr);
uint16_t saport(const struct sockaddr *sa);
tproxy_conn_t* add_tcp_connection(int efd, struct tailhead *conn_list,
int local_fd, uint16_t listen_port);
void free_conn(tproxy_conn_t *conn);
int8_t check_connection_attempt(tproxy_conn_t *conn, int efd);
#endif