diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-05-28 12:20:07 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-05-28 12:20:07 +0000 |
commit | c26a59411bdc7a9adc0dbcf456b21b8ababb8643 (patch) | |
tree | fa83ecb6b95180d08235ca98b19d18984cd5dbca /sbin/ifconfig/ifconfig.c | |
parent | 2bac83383f38d6c6831272c9f331b16c5568f37f (diff) |
Add mpls/-mpls commands to enable MPLS label switching on an interface.
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 0223da3b3e0..76c0a1cccce 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.232 2010/05/06 12:58:40 claudio Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.233 2010/05/28 12:20:06 claudio Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -191,6 +191,7 @@ void unsetmediaopt(const char *, int); void setmediainst(const char *, int); void settimeslot(const char *, int); void timeslot_status(void); +void setifmpls(const char *, int); void setmpelabel(const char *, int); void setvlantag(const char *, int); void setvlanprio(const char *, int); @@ -346,6 +347,8 @@ const struct cmd { { "-rtlabel", -1, 0, setifrtlabel }, { "range", NEXTARG, 0, setatrange }, { "phase", NEXTARG, 0, setatphase }, + { "mpls", IFXF_MPLS, 0, setifxflags }, + { "-mpls", -IFXF_MPLS, 0, setifxflags }, { "mplslabel", NEXTARG, 0, setmpelabel }, { "advbase", NEXTARG, 0, setcarp_advbase }, { "advskew", NEXTARG, 0, setcarp_advskew }, @@ -3252,6 +3255,7 @@ mpe_status(void) printf("\tmpls label: %d\n", shim.shim_label); } +/* ARGSUSED */ void setmpelabel(const char *val, int d) { |