Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
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
net-tools
Commits
2ff6edc7
Commit
2ff6edc7
authored
Jul 03, 2002
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
there is no such thing as -i option for ifconfig
removed variable, fixed usage, added options to english man page
parent
15080ea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
ifconfig.c
ifconfig.c
+2
-3
man/en_US/ifconfig.8
man/en_US/ifconfig.8
+12
-3
No files found.
ifconfig.c
View file @
2ff6edc7
...
...
@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
* Version: $Id: ifconfig.c,v 1.5
4 2001/11/01 03:00:13
ecki Exp $
* Version: $Id: ifconfig.c,v 1.5
5 2002/07/03 23:40:47
ecki Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
...
...
@@ -88,7 +88,6 @@ struct in6_ifreq {
char
*
Release
=
RELEASE
,
*
Version
=
"ifconfig 1.42 (2001-04-13)"
;
int
opt_a
=
0
;
/* show all interfaces */
int
opt_i
=
0
;
/* show the statistics */
int
opt_v
=
0
;
/* debugging output flag */
int
addr_family
=
0
;
/* currently selected AF */
...
...
@@ -200,7 +199,7 @@ static int test_flag(char *ifname, short flags)
static
void
usage
(
void
)
{
fprintf
(
stderr
,
_
(
"Usage:
\n
ifconfig [-a] [-
i] [-
v] [-s] <interface> [[<AF>] <address>]
\n
"
));
fprintf
(
stderr
,
_
(
"Usage:
\n
ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>]
\n
"
));
#if HAVE_AFINET
fprintf
(
stderr
,
_
(
" [add <address>[/<prefixlen>]]
\n
"
));
fprintf
(
stderr
,
_
(
" [del <address>[/<prefixlen>]]
\n
"
));
...
...
man/en_US/ifconfig.8
View file @
2ff6edc7
.TH IFCONFIG 8 "
11 Nov 2001
" "net-tools" "Linux Programmer's Manual"
.TH IFCONFIG 8 "
2002-07-04
" "net-tools" "Linux Programmer's Manual"
.SH NAME
ifconfig \- configure a network interface
.SH SYNOPSIS
.B "ifconfig [interface]"
.B "ifconfig [
-v] [-a] [-s] [
interface]"
.br
.B "ifconfig interface [aftype] options | address ..."
.B "ifconfig
[-v]
interface [aftype] options | address ..."
.SH DESCRIPTION
.B Ifconfig
is used to configure the kernel-resident network interfaces. It is
...
...
@@ -41,6 +41,15 @@ supported address families include
(AMPR Packet radio).
.SH OPTIONS
.TP
.B -a
display all interfaces which are currently available, even if down
.TP
.B -s
display a short list (like netstat -i)
.TP
.B -v
be more verbose for some error conditions
.TP
.B interface
The name of the interface. This is usually a driver name followed by
a unit number, for example
...
...
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