mirror of
https://github.com/hufrea/byedpi.git
synced 2024-11-26 00:35:32 +03:00
6d21aae7b5
This reverts commit e96aeff679
.
21 lines
462 B
C
21 lines
462 B
C
#ifndef DESYNC_H
|
|
#define DESYNC_H
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#ifdef _WIN32
|
|
#include <winsock2.h>
|
|
#else
|
|
#include <sys/socket.h>
|
|
#endif
|
|
|
|
ssize_t desync(int sfd, char *buffer, size_t bfsize, ssize_t n, ssize_t offset, struct sockaddr *dst, int dp_c);
|
|
|
|
ssize_t desync_udp(int sfd, char *buffer, size_t bfsize, ssize_t n, struct sockaddr *dst, int dp_c);
|
|
|
|
int get_family(struct sockaddr *dst);
|
|
|
|
int setttl(int fd, int ttl, int family);
|
|
|
|
#endif
|