iproute2: shrink ip-tiny size by disabling features
authorNick Hainke <vincent@systemli.org>
Sat, 6 Aug 2022 21:35:12 +0000 (23:35 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 13 Aug 2022 18:53:10 +0000 (20:53 +0200)
With the 5.18 and 5.19 update ip-tiny grows in size. Remove some
features bringing it back to the size before 5.18.

Remove
- Identifier-locator addressing (ila)
- MACsec Device Configuration (macsec)
- Multicast Routing Cache Management (mroute)
- mrule
- Virtual Routing and Forwarding (vrf)
- Segment Routing (sr)

Signed-off-by: Nick Hainke <vincent@systemli.org>
package/network/utils/iproute2/patches/170-ip_tiny.patch

index 1196be31f0e73f169d21ef58a14e41a32b6515e1..ba2cb0637a782277547e09886cd7235ba3389076 100644 (file)
                "                   ntbl | route | rule | sr | tap | tcpmetrics |\n"
                "                   token | tunnel | tuntap | vrf | xfrm }\n"
 +#else
-+              "where  OBJECT := { address | ila | link | macsec | maddress | monitor |\n"
-+              "                   mroute | mrule | neighbor | neighbour | netns | route |\n"
-+              "                   rule | sr | token | tunnel | vrf }\n"
++              "where  OBJECT := { address | link | maddress | monitor |\n"
++              "                   neighbor | neighbour | netns | route |\n"
++              "                   rule | token | tunnel }\n"
 +#endif
                "       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |\n"
                "                    -h[uman-readable] | -iec | -j[son] | -p[retty] |\n"
                "                    -f[amily] { inet | inet6 | mpls | bridge | link } |\n"
-@@ -91,37 +97,51 @@ static const struct cmd {
+@@ -91,37 +97,49 @@ static const struct cmd {
        int (*func)(int argc, char **argv);
  } cmds[] = {
        { "address",    do_ipaddr },
@@ -63,9 +63,9 @@
 +#ifndef IPROUTE2_TINY
        { "l2tp",       do_ipl2tp },
        { "fou",        do_ipfou },
-+#endif
        { "ila",        do_ipila },
        { "macsec",     do_ipmacsec },
++#endif
        { "tunnel",     do_iptunnel },
        { "tunl",       do_iptunnel },
 +#ifndef IPROUTE2_TINY
        { "monitor",    do_ipmonitor },
 +#ifndef IPROUTE2_TINY
        { "xfrm",       do_xfrm },
-+#endif
        { "mroute",     do_multiroute },
        { "mrule",      do_multirule },
++#endif
        { "netns",      do_netns },
 +#ifndef IPROUTE2_TINY
        { "netconf",    do_ipnetconf },
-+#endif
        { "vrf",        do_ipvrf},
        { "sr",         do_seg6 },
-+#ifndef IPROUTE2_TINY
        { "nexthop",    do_ipnh },
        { "mptcp",      do_mptcp },
        { "ioam",       do_ioam6 },