diff options
| author | anlan_cs <vic.lan@pica8.com> | 2023-04-10 11:04:47 +0800 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2023-04-10 11:11:30 +0800 |
| commit | fa9307852e20616ec4508d97dbf7c3acc43cd374 (patch) | |
| tree | 5f1e0e4d8855cd108e516e7299ed5dd2bc97be9f /ripd/ripd.c | |
| parent | 27a0311fcc20cba1247cce68c265ba026ca32775 (diff) | |
ripd: Correct one debug log
Correct one debug log, which wrongly mixed address and port.
Before:
```
ripd[469497]: [NDAGH-Z85V7] rip_send_packet 3.3.3.4 > 224.0.0.9 (enp1s0)
ripd[469497]: [VEJY5-67P5X] SEND to 224.0.0.9520
```
After:
```
ripd[471330]: [NDAGH-Z85V7] rip_send_packet 3.3.3.4 > 224.0.0.9 (enp1s0)
ripd[471330]: [T8DFR-P09JH] SEND to 224.0.0.9 port 520
```
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'ripd/ripd.c')
| -rw-r--r-- | ripd/ripd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index ae4d93b4f5..15e058a744 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -1500,7 +1500,7 @@ static int rip_send_packet(uint8_t *buf, int size, struct sockaddr_in *to, ret = sendmsg(rip->sock, &msg, 0); if (IS_RIP_DEBUG_EVENT) - zlog_debug("SEND to %pI4%d", &sin.sin_addr, + zlog_debug("SEND to %pI4 port %d", &sin.sin_addr, ntohs(sin.sin_port)); if (ret < 0) |
