The commands are ignored under SMALL but their prototypes, the global
and therefore dead print logic is still on.

OK?

Index: ifconfig.c
===================================================================
RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v
retrieving revision 1.437
diff -u -p -r1.437 ifconfig.c
--- ifconfig.c  12 Mar 2021 17:25:02 -0000      1.437
+++ ifconfig.c  13 Mar 2021 19:55:20 -0000
@@ -158,12 +158,12 @@ struct    ifaliasreq      addreq;
 
 int    wconfig = 0;
 int    wcwconfig = 0;
+int    rdomainid;
 #endif /* SMALL */
 
 char   ifname[IFNAMSIZ];
 int    flags, xflags, setaddr, setipdst, doalias;
 u_long metric, mtu;
-int    rdomainid;
 int    llprio;
 int    clearaddr, sock;
 int    newaddr = 0;
@@ -256,8 +256,6 @@ void        unsetpwe3fat(const char *, int);
 void   setpwe3neighbor(const char *, const char *);
 void   unsetpwe3neighbor(const char *, int);
 void   mpls_status(void);
-void   setrdomain(const char *, int);
-void   unsetrdomain(const char *, int);
 int    prefix(void *val, int);
 void   getifgroups(void);
 void   setifgroup(const char *, int);
@@ -276,6 +274,8 @@ void        trunk_status(void);
 void   list_cloners(void);
 
 #ifndef SMALL
+void   setrdomain(const char *, int);
+void   unsetrdomain(const char *, int);
 void   carp_status(void);
 void   setcarp_advbase(const char *,int);
 void   setcarp_advskew(const char *, int);
@@ -3353,8 +3353,10 @@ status(int link, struct sockaddr_dl *sdl
 
        printf("%s: ", ifname);
        printb("flags", flags | (xflags << 16), IFFBITS);
+#ifndef SMALL
        if (rdomainid)
                printf(" rdomain %d", rdomainid);
+#endif
        if (metric)
                printf(" metric %lu", metric);
        if (mtu)

Reply via email to