summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@labn.net>2023-03-29 16:58:25 -0400
committerMark Stapp <mjs@labn.net>2023-04-11 10:16:07 -0400
commit04a0401f2de44feaadb8f90aae0f53f55580415e (patch)
tree2977bbd8a315abd0b5389735360d2f80fbf68503 /ospfd/ospf_interface.h
parente80c797a1f8f98c129a9605a174d451356dde008 (diff)
ospfd: support write socket per interface
Add support for a write socket per interface, enabled by default at the ospf instance level. An ospf instance-level config allows this to be disabled, reverting to the older behavior where a single per-instance socket is used for sending and receiving packets. Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'ospfd/ospf_interface.h')
-rw-r--r--ospfd/ospf_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospf_interface.h b/ospfd/ospf_interface.h
index 8625a72ac1..649df437a4 100644
--- a/ospfd/ospf_interface.h
+++ b/ospfd/ospf_interface.h
@@ -121,6 +121,9 @@ struct ospf_if_info {
membership_counts[MEMBER_MAX]; /* multicast group refcnts */
uint32_t curr_mtu;
+
+ /* Per-interface write socket, configured via 'ospf' object */
+ int oii_fd;
};
struct ospf_interface;