mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-31 11:45:49 +03:00
UDP faking support
This commit is contained in:
10
quic.h
10
quic.h
@@ -1,6 +1,7 @@
|
||||
#ifndef QUIC_H
|
||||
#define QUIC_H
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
/**
|
||||
@@ -125,4 +126,13 @@ int quic_parse_initial_message(uint8_t *inpayload, uint32_t inplen,
|
||||
struct quici_hdr *qhdr,
|
||||
uint8_t **payload, uint32_t *plen);
|
||||
|
||||
// Like fail_packet for TCP
|
||||
int udp_fail_packet(struct udp_failing_strategy strategy, uint8_t *payload, uint32_t *plen, uint32_t avail_buflen);
|
||||
|
||||
// Like gen_fake_sni for TCP
|
||||
int gen_fake_udp(struct udp_fake_type type,
|
||||
const void *ipxh, uint32_t iph_len,
|
||||
const struct udphdr *udph,
|
||||
uint8_t *buf, uint32_t *buflen);
|
||||
|
||||
#endif /* QUIC_H */
|
||||
|
||||
Reference in New Issue
Block a user