Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
68831d6b
Commit
68831d6b
authored
Jul 31, 2015
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
6aac8617
531d5da4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
bridge/fdb.c
bridge/fdb.c
+5
-2
ip/ip.c
ip/ip.c
+3
-0
man/man8/bridge.8
man/man8/bridge.8
+13
-5
No files found.
bridge/fdb.c
View file @
68831d6b
...
...
@@ -31,8 +31,9 @@ static unsigned int filter_index;
static
void
usage
(
void
)
{
fprintf
(
stderr
,
"Usage: bridge fdb { add | append | del | replace } ADDR dev DEV {self|master} [ temp ]
\n
"
" [router] [ dst IPADDR] [ vlan VID ]
\n
"
fprintf
(
stderr
,
"Usage: bridge fdb { add | append | del | replace ADDR dev DEV
\n
"
" [ self ] [ master ] [ use ] [ router ]
\n
"
" [ local | temp ] [ dst IPADDR ] [ vlan VID ]
\n
"
" [ port PORT] [ vni VNI ] [via DEV]
\n
"
);
fprintf
(
stderr
,
" bridge fdb {show} [ br BRDEV ] [ brport DEV ]
\n
"
);
exit
(
-
1
);
...
...
@@ -305,6 +306,8 @@ static int fdb_modify(int cmd, int flags, int argc, char **argv)
duparg2
(
"vlan"
,
*
argv
);
NEXT_ARG
();
vid
=
atoi
(
*
argv
);
}
else
if
(
matches
(
*
argv
,
"use"
)
==
0
)
{
req
.
ndm
.
ndm_flags
|=
NTF_USE
;
}
else
{
if
(
strcmp
(
*
argv
,
"to"
)
==
0
)
{
NEXT_ARG
();
...
...
ip/ip.c
View file @
68831d6b
...
...
@@ -118,6 +118,7 @@ static int batch(const char *name)
char
*
line
=
NULL
;
size_t
len
=
0
;
int
ret
=
EXIT_SUCCESS
;
int
orig_family
=
preferred_family
;
batch_mode
=
1
;
...
...
@@ -140,6 +141,8 @@ static int batch(const char *name)
char
*
largv
[
100
];
int
largc
;
preferred_family
=
orig_family
;
largc
=
makeargs
(
line
,
largv
,
100
);
if
(
largc
==
0
)
continue
;
/* blank line */
...
...
man/man8/bridge.8
View file @
68831d6b
...
...
@@ -53,8 +53,8 @@ bridge \- show / manipulate bridge addresses and devices
.I LLADDR
.B dev
.IR DEV " { "
.BR local " | " temp " }
{
"
.BR self "
} { " router " }
[ "
.BR local " | " temp " }
[
"
.BR self "
] [ " master " ] [ " router " ] [ " use " ]
[ "
.B dst
.IR IPADDR " ] [ "
.B vni
...
...
@@ -325,7 +325,11 @@ the Ethernet MAC address.
the interface to which this address is associated.
.B self
- the address is associated with a software fdb (default)
- the address is associated with the port drivers fdb. Usually hardware.
.sp
.B master
- the address is associated with master devices fdb. Usually software (default).
.sp
.B router
...
...
@@ -334,6 +338,11 @@ Valid if the referenced device is a VXLAN type device and has
route shortcircuit enabled.
.sp
.B use
- the address is in use. User space can use this option to
indicate to the kernel that the fdb entry is in use.
.sp
.in -8
The next command line parameters apply only
when the specified device
...
...
@@ -541,8 +550,7 @@ described in previous sections.
.P
If a file name is given, it does not listen on RTNETLINK,
but opens the file containing RTNETLINK messages saved in binary format
and dumps them. Such a history file can be generated with the
and dumps them.
.SH NOTES
This command uses facilities added in Linux 3.0.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment