summaryrefslogtreecommitdiff
path: root/isisd/isis_pfpacket.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-10-22 01:17:40 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-11-22 20:47:23 +0300
commit096f7609f9168ad1a2503acad31d3afc8f00f9e5 (patch)
tree7acf9cbf0f944b032da6a796fcf8d7f6a06fe90a /isisd/isis_pfpacket.c
parentd32c92a4c0fcee71a8a6d02cb9ff84607cfdcc07 (diff)
*: cleanup ifp->vrf_id
Since f60a1188 we store a pointer to the VRF in the interface structure. There's no need anymore to store a separate vrf_id field. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_pfpacket.c')
-rw-r--r--isisd/isis_pfpacket.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/isisd/isis_pfpacket.c b/isisd/isis_pfpacket.c
index 4a884877f0..20224c73a1 100644
--- a/isisd/isis_pfpacket.c
+++ b/isisd/isis_pfpacket.c
@@ -123,15 +123,10 @@ static int open_packet_socket(struct isis_circuit *circuit)
int fd, retval = ISIS_OK;
struct vrf *vrf = NULL;
- vrf = vrf_lookup_by_id(circuit->interface->vrf_id);
+ vrf = circuit->interface->vrf;
- if (vrf == NULL) {
- zlog_warn("open_packet_socket(): failed to find vrf node");
- return ISIS_WARNING;
- }
-
- fd = vrf_socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_ALL),
- circuit->interface->vrf_id, vrf->name);
+ fd = vrf_socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_ALL), vrf->vrf_id,
+ vrf->name);
if (fd < 0) {
zlog_warn("open_packet_socket(): socket() failed %s",