Skip to content

Commit

Permalink
[Heartbeat] Change size of data on ICMP packet (#29948)
Browse files Browse the repository at this point in the history
* [Heartbeat] Change size of data on ICMP packet

* Add CHANGELOG entry.

Co-authored-by: Guillaume Marsay <[email protected]>
Co-authored-by: Justin Kambic <[email protected]>
(cherry picked from commit da9720c)
  • Loading branch information
gmarsay authored and mergify-bot committed Jan 25, 2022
1 parent cfcb4fd commit 10ad24e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix broken macOS ICMP python e2e test. {pull}29900[29900]
- Only add monitor.status to browser events when summary. {pull}29460[29460]
- Also add summary to journeys for which the synthetics runner crashes. {pull}29606[29606]
- Update size of ICMP packets to adhere to standard min size. {pull}29948[29948]

*Metricbeat*

Expand Down
2 changes: 1 addition & 1 deletion heartbeat/monitors/active/icmp/stdloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (l *stdICMPLoop) sendEchoRequest(addr *net.IPAddr) (*requestContext, error)
l.requests[id] = ctx
l.mutex.Unlock()

payloadBuf := make([]byte, 0, 8)
payloadBuf := make([]byte, 48, 48)
payload := bytes.NewBuffer(payloadBuf)
ts := time.Now()
binary.Write(payload, binary.BigEndian, ts.UnixNano())
Expand Down

0 comments on commit 10ad24e

Please sign in to comment.