Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Nov 2, 2024
1 parent 27c25ae commit 2814301
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions protocol/udpgw_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,15 @@

#include <misc/bsize.h>
#include <misc/packed.h>
#ifdef __ANDROID__
#include <misc/socks_proto.h>
#endif

#define UDPGW_CLIENT_FLAG_KEEPALIVE (1 << 0)
#define UDPGW_CLIENT_FLAG_REBIND (1 << 1)
#define UDPGW_CLIENT_FLAG_DNS (1 << 2)
#define UDPGW_CLIENT_FLAG_IPV6 (1 << 3)

#ifdef __ANDROID__
B_START_PACKED
struct socks_udp_header {
uint16_t rsv;
uint8_t frag;
uint8_t atyp;
} B_PACKED;
B_END_PACKED
#endif

B_START_PACKED
struct udpgw_header {
uint8_t flags;
Expand Down

0 comments on commit 2814301

Please sign in to comment.