]> git.proxmox.com Git - mirror_frr.git/commit - lib/prefix.c
lib: show "(null)" for empty IP address
authoranlan_cs <vic.lan@pica8.com>
Wed, 11 Jan 2023 00:44:46 +0000 (08:44 +0800)
committeranlan_cs <vic.lan@pica8.com>
Thu, 19 Jan 2023 01:30:49 +0000 (09:30 +0800)
commit927c633dd9813703534ec8d4bed20f1461e044f8
tree165fa54ded2c8ee1a283038beca88dbff8b35f61
parenta8adf1b3cb313490a3f2ef5c03256e04546e0de4
lib: show "(null)" for empty IP address

Use "(null)" for empty IP address.

One example in `bgp_zebra_send_remote_macip()` to install mac:

Before:
```
2023/01/18 02:09:09 BGP: [SCHS5-AK960] Tx ADD MACIP, VNI 200 MAC 06:6b:7c:db:83:72 IP  flags 0x0 seq 0 remote VTEP 88.88.88.88 esi -
```

After:
```
2023/01/18 20:19:57 BGP: [SCHS5-AK960] Tx ADD MACIP, VNI 200 MAC 06:6b:7c:db:83:72 IP (null) flags 0x0 seq 0 remote VTEP 88.88.88.88 esi -
```

Signed-off-by: anlan_cs <vic.lan@pica8.com>
lib/prefix.c