mirror of
https://github.com/hufrea/byedpi.git
synced 2025-01-19 09:11:53 +00:00
Print partial UDP packet hex dump
This commit is contained in:
parent
a6c84a762e
commit
57046d51b3
4
desync.c
4
desync.c
@ -626,6 +626,10 @@ ssize_t desync_udp(int sfd, char *buffer,
|
||||
{
|
||||
struct desync_params *dp = ¶ms.dp[dp_c];
|
||||
|
||||
if (params.debug) {
|
||||
INIT_HEX_STR(buffer, (n > 16 ? 16 : n));
|
||||
LOG(LOG_S, "bytes: %s (%zd)\n", HEX_STR, n);
|
||||
}
|
||||
if (dp->udp_fake_count != 0) {
|
||||
struct packet pkt;
|
||||
if (dp->fake_data.data) {
|
||||
|
Loading…
Reference in New Issue
Block a user