summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/if.c b/lib/if.c
index 66a8bfef..21427e71 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -532,11 +532,12 @@ if_sunwzebra_get (const char *name, size_t nlen)
}
#endif /* SUNOS_5 */
-DEFUN (interface,
- interface_cmd,
- "interface IFNAME",
- "Select an interface to configure\n"
- "Interface's name\n")
+DEFUN_ATTR (interface,
+ interface_cmd,
+ "interface IFNAME",
+ "Select an interface to configure\n"
+ "Interface's name\n",
+ CMD_ATTR_NODE + INTERFACE_NODE)
{
struct interface *ifp;
size_t sl;