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
1e5aa990
Commit
1e5aa990
authored
Nov 03, 2015
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
dddf1b44
b5bb1820
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
191 additions
and
5 deletions
+191
-5
bridge/fdb.c
bridge/fdb.c
+3
-3
lib/utils.c
lib/utils.c
+4
-2
man/man8/genl.8
man/man8/genl.8
+77
-0
man/man8/ifcfg.8
man/man8/ifcfg.8
+48
-0
man/man8/ifstat.8
man/man8/ifstat.8
+59
-0
No files found.
bridge/fdb.c
View file @
1e5aa990
...
...
@@ -31,11 +31,11 @@ static unsigned int filter_index;
static
void
usage
(
void
)
{
fprintf
(
stderr
,
"Usage: bridge fdb { add | append | del | replace ADDR dev DEV
\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
"
);
" [ port PORT] [ vni VNI ] [
via DEV
]
\n
"
);
fprintf
(
stderr
,
" bridge fdb
[ show [ br BRDEV ] [ brport DEV ]
]
\n
"
);
exit
(
-
1
);
}
...
...
lib/utils.c
View file @
1e5aa990
...
...
@@ -531,7 +531,8 @@ done:
int
get_addr
(
inet_prefix
*
dst
,
const
char
*
arg
,
int
family
)
{
if
(
get_addr_1
(
dst
,
arg
,
family
))
{
fprintf
(
stderr
,
"Error: an inet address is expected rather than
\"
%s
\"
.
\n
"
,
arg
);
fprintf
(
stderr
,
"Error: %s address is expected rather than
\"
%s
\"
.
\n
"
,
family_name
(
family
)
,
arg
);
exit
(
1
);
}
return
0
;
...
...
@@ -544,7 +545,8 @@ int get_prefix(inet_prefix *dst, char *arg, int family)
exit
(
1
);
}
if
(
get_prefix_1
(
dst
,
arg
,
family
))
{
fprintf
(
stderr
,
"Error: an inet prefix is expected rather than
\"
%s
\"
.
\n
"
,
arg
);
fprintf
(
stderr
,
"Error: %s prefix is expected rather than
\"
%s
\"
.
\n
"
,
family_name
(
family
)
,
arg
);
exit
(
1
);
}
return
0
;
...
...
man/man8/genl.8
0 → 100644
View file @
1e5aa990
.TH GENL 8 "29 Oct 2015" "iproute2" "Linux"
.SH NAME
genl \- generic netlink utility frontend
.SH SYNOPSIS
.in +8
.ti -8
.BR genl " [ " -s [ tatistics "] ] [ " -d [ etails "] ] [ " -r [ aw "] ] " OBJECT
.ti -8
.BR genl " { " -V [ ersion "] | " -h [ elp "] }"
.ti -8
.IR OBJECT " := { "
.B ctrl
.IR CTRL_OPTS " }"
.ti -8
.IR CTRL_OPTS " := { "
.BR help " | " list " | " monitor " | " get
.IR PARMS " }"
.ti -8
.IR PARMS " := { "
.B name
.IR NAME " | "
.B id
.IR ID " }"
.SH DESCRIPTION
The
.B genl
utility provides a simple frontend to the generic netlink library. Although it's
designed to support multiple
.IR OBJECT s,
for now only the
.B ctrl
object is available, which is used to query the generic netlink controller.
.SS ctrl
The generic netlink controller can be queried in various ways:
.TP
.B help
This command just prints a help text for the
.B ctrl
object.
.TP
.B list
Show the registered netlink users.
.TP
.B monitor
Listen for generic netlink notifications.
.TP
.B get
Query the controller for a given user, identified either by
.BR name " or " id .
.SH OPTIONS
genl supports the following options.
.TP
.B \-h, \-help
Show summary of options.
.TP
.B \-V, \-Version
Show version of program.
.TP
.B \-s, \-stats, \-statistics
Show object statistics.
.TP
.B \-d, \-details
Show object details.
.TP
.B \-r, \-raw
Dump raw output only.
.SH SEE ALSO
.BR ip (8)
.br
.SH AUTHOR
genl was written by Jamal Hadi Salim <hadi@cyberus.ca>.
.PP
This manual page was written by Petr Sabata <contyk@redhat.com>.
man/man8/ifcfg.8
0 → 100644
View file @
1e5aa990
.TH IFCFG 8 "September 24 2009" "iproute2" "Linux"
.SH NAME
ifcfg \- simplistic script which replaces ifconfig IP managment
.SH SYNOPSIS
.ad l
.in +8
.ti -8
.B ifcfg
.RI "[ " DEVICE " ] [ " command " ] " ADDRESS " [ " PEER " ] "
.sp
.SH DESCRIPTION
This manual page documents briefly the
.B ifcfg
command.
.PP
This is a simplistic script replacing one option of
.B ifconfig
, namely, IP address management. It not only adds
addresses, but also carries out Duplicate Address Detection RFC-DHCP,
sends unsolicited ARP to update the caches of other hosts sharing
the interface, adds some control routes and restarts Router Discovery
when it is necessary.
.SH IFCONFIG - COMMAND SYNTAX
.SS
.TP
.B DEVICE
- it may have alias, suffix, separated by colon.
.TP
.B command
- add, delete or stop.
.TP
.B ADDRESS
- optionally followed by prefix length.
.TP
.B peer
- optional peer address for pointpoint interfaces.
.SH NOTES
This script is not suitable for use with IPv6.
.SH SEE ALSO
.RB "IP Command reference " ip-cref.ps
man/man8/ifstat.8
0 → 100644
View file @
1e5aa990
.TH IFSTAT 8 "28 Oct 2015" "iproute2" "Linux"
.SH NAME
ifstat \- handy utility to read network interface statistics
.SH SYNOPSIS
.in +8
.ti -8
.BR ifstat " [ "
.IR OPTIONS " ] [ " INTERFACE_LIST " ]"
.ti -8
.IR INTERFACE_LIST " := " INTERFACE_LIST " | " interface
.SH DESCRIPTION
\fBifstat\fP neatly prints out network interface statistics.
The utility keeps records of the previous data displayed in history files and
by default only shows difference between the last and the current call.
Location of the history files defaults to /tmp/.ifstat.u$UID but may be
overridden with the IFSTAT_HISTORY environment variable.
.SH OPTIONS
.TP
.B \-h, \-\-help
Show summary of options.
.TP
.B \-V, \-\-version
Show version of program.
.TP
.B \-a, \-\-ignore
Ignore the history file.
.TP
.B \-d, \-\-scan=SECS
Sample statistics every SECS second.
.TP
.B \-e, \-\-errors
Show errors.
.TP
.B \-n, \-\-nooutput
Don't display any output. Update the history file only.
.TP
.B \-r, \-\-reset
Reset history.
.TP
.B \-s, \-\-noupdate
Don't update the history file.
.TP
.B \-t, \-\-interval=SECS
Report average over the last SECS seconds.
.TP
.B \-z, \-\-zeros
Show entries with zero activity.
.SH ENVIRONMENT
.TP
.B IFSTAT_HISTORY
If set, it's value is interpreted as alternate history file path.
.SH SEE ALSO
.BR ip (8)
.br
.SH AUTHOR
ifstat was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
.PP
This manual page was written by Petr Sabata <contyk@redhat.com>.
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