fix: default --pattern
This commit is contained in:
parent
0502b9a291
commit
dccdca8114
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ fill_payload(uint8_t *payload, size_t len, const struct ping_config *config,
|
||||||
if (0 == config->pattern_len)
|
if (0 == config->pattern_len)
|
||||||
{
|
{
|
||||||
for (i = offset; i < len; ++i)
|
for (i = offset; i < len; ++i)
|
||||||
payload[i] = (uint8_t)('a' + ((i - offset) % 26));
|
payload[i] = (uint8_t)((i - offset) & 0xFF);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue