From 07a4920b17c3741b50ffcb596d4433b54f7e529e Mon Sep 17 00:00:00 2001 From: Yuxiang Zhu Date: Sat, 9 Jul 2022 17:38:29 +0800 Subject: ip: T4517: add option to enable directed broadcast forwarding Directed broadcast is described in rfc1812#section-5.3.5.2 and rfc2644. By default Linux kernel doesn't forward directed broadcast packets unless both of `/proc/sys/net/ipv4/conf/all/bc_forwarding` and `/proc/sys/net/ipv4/conf/$iface/bc_forwarding` are set to 1. --- .../include/interface/enable-directed-broadcast.xml.i | 8 ++++++++ interface-definitions/include/interface/ipv4-options.xml.i | 1 + interface-definitions/system-ip.xml.in | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 interface-definitions/include/interface/enable-directed-broadcast.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/interface/enable-directed-broadcast.xml.i b/interface-definitions/include/interface/enable-directed-broadcast.xml.i new file mode 100644 index 000000000..a87395806 --- /dev/null +++ b/interface-definitions/include/interface/enable-directed-broadcast.xml.i @@ -0,0 +1,8 @@ + + + + Enable directed broadcast forwarding on this interface + + + + diff --git a/interface-definitions/include/interface/ipv4-options.xml.i b/interface-definitions/include/interface/ipv4-options.xml.i index bca1229c6..eda77e851 100644 --- a/interface-definitions/include/interface/ipv4-options.xml.i +++ b/interface-definitions/include/interface/ipv4-options.xml.i @@ -8,6 +8,7 @@ #include #include #include + #include #include #include #include diff --git a/interface-definitions/system-ip.xml.in b/interface-definitions/system-ip.xml.in index 21d70694b..75fe1c20a 100644 --- a/interface-definitions/system-ip.xml.in +++ b/interface-definitions/system-ip.xml.in @@ -23,6 +23,12 @@ + + + Disable IPv4 directed broadcast forwarding on all interfaces + + + IPv4 multipath settings -- cgit v1.2.3