mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 06:15:14 +00:00
sizeof(struct sockaddr_ina) as the max key size
This commit is contained in:
parent
7dde94e3d2
commit
dcc492b8fd
4
extend.c
4
extend.c
@ -23,9 +23,7 @@
|
|||||||
#include "desync.h"
|
#include "desync.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
|
|
||||||
#define KEY_SIZE sizeof(uint16_t) + \
|
#define KEY_SIZE sizeof(struct sockaddr_ina)
|
||||||
sizeof(((struct sockaddr){}).sa_family) + \
|
|
||||||
sizeof(struct sockaddr_in6)
|
|
||||||
|
|
||||||
|
|
||||||
int set_timeout(int fd, unsigned int s)
|
int set_timeout(int fd, unsigned int s)
|
||||||
|
Loading…
Reference in New Issue
Block a user