mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-31 20:29:36 +08:00
Compare commits
2 Commits
6303ce2387
...
3dc19b7994
Author | SHA1 | Date | |
---|---|---|---|
|
3dc19b7994 | ||
|
ee1e4d33f8 |
@ -1714,7 +1714,8 @@ int send_raw_tcp(raw_info_t &raw_info, const char *payload, int payloadlen) { /
|
|||||||
|
|
||||||
char *tcp_data = send_raw_tcp_buf + +tcph->doff * 4;
|
char *tcp_data = send_raw_tcp_buf + +tcph->doff * 4;
|
||||||
|
|
||||||
memcpy(tcp_data, payload, payloadlen);
|
if (payload)
|
||||||
|
memcpy(tcp_data, payload, payloadlen);
|
||||||
int tcp_totlen = tcph->doff * 4 + payloadlen;
|
int tcp_totlen = tcph->doff * 4 + payloadlen;
|
||||||
|
|
||||||
if (raw_ip_version == AF_INET) {
|
if (raw_ip_version == AF_INET) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user