byedpi/desync.h

26 lines
532 B
C
Raw Normal View History

2024-08-07 11:25:26 +00:00
#ifndef DESYNC_H
#define DESYNC_H
#include <stdint.h>
#include <stddef.h>
#ifdef _WIN32
#include <winsock2.h>
#else
#include <sys/socket.h>
#endif
2024-11-09 15:07:27 +00:00
ssize_t desync(int sfd, char *buffer, size_t bfsize, ssize_t n, ssize_t offset, const struct sockaddr *dst, int dp_c);
2024-11-09 15:07:27 +00:00
ssize_t desync_udp(int sfd, char *buffer, size_t bfsize, ssize_t n, const struct sockaddr *dst, int dp_c);
2024-07-29 09:26:42 +00:00
2024-10-15 18:52:18 +00:00
int setttl(int fd, int ttl);
2024-08-14 12:20:35 +00:00
2024-08-09 19:49:44 +00:00
int post_desync(int sfd, int dp_c);
2024-11-16 17:59:25 +00:00
struct proto_info {
char init, type;
int host_len, host_pos;
};
2024-08-07 11:25:26 +00:00
#endif