Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stop panics when signaling messages received by ziffy receiver from z…
…iffy sender Summary: Ziffy running in receive mode did not process incoming signaling messages (the tool was assuming Ziffy packets being sent were either SYNC or DELAY_REQ) ``` INFO[0000] listening on port 319 for PTP EVENT packets (SYNC/DELAY_REQ) with ZiffyHexa signature. Sending back the packets as icmp panic: interface conversion: protocol.Packet is *protocol.Announce, not *protocol.SyncDelayReq goroutine 54 [running]: github.com/facebook/time/cmd/ziffy/node.parseSyncPacket({0x2d9910, 0xc000304dc0}) fbcode/time/cmd/ziffy/node/receiver.go:165 +0x1c5 github.com/facebook/time/cmd/ziffy/node.(*Receiver).handlePacket(0xc0001321b0, {0x2d9910, 0xc000304dc0}) fbcode/time/cmd/ziffy/node/receiver.go:104 +0x78 created by github.com/facebook/time/cmd/ziffy/node.(*Receiver).Start in goroutine 1 fbcode/time/cmd/ziffy/node/receiver.go:74 +0x392 [[email protected] ~]# dnf install -y fb-ziffy && systemctl stop sptp && ziffy -mode receiver ; systemctl start sptp Last metadata expiration check: 0:00:37 ago on Thu 10 Oct 2024 13:36:26. Package fb-ziffy-20241009-213047.x86_64 is already installed. Dependencies resolved. ``` Reviewed By: abulimov Differential Revision: D64358486 fbshipit-source-id: dfaa474a1d7c8b938c1b173bc5d43cc94849b541
- Loading branch information