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
2d37c454
Commit
2d37c454
authored
Dec 01, 1998
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow interface names to be 9 characters long rather than
just 8, to help people with lots (!!) of aliases.
parent
0f51321f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ifconfig.c
ifconfig.c
+2
-2
No files found.
ifconfig.c
View file @
2d37c454
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
* one or more of the system's networking interfaces.
*
*
* Version: $Id: ifconfig.c,v 1.2
2 1998/11/19 13:01:47
philip Exp $
* Version: $Id: ifconfig.c,v 1.2
3 1998/12/01 20:48:41
philip Exp $
*
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
* and others. Copyright 1993 MicroWalt Corporation
...
@@ -159,7 +159,7 @@ void ife_print(struct interface *ptr)
...
@@ -159,7 +159,7 @@ void ife_print(struct interface *ptr)
if
(
hw
==
NULL
)
if
(
hw
==
NULL
)
hw
=
get_hwntype
(
-
1
);
hw
=
get_hwntype
(
-
1
);
printf
(
_
(
"%-
8.8s
Link encap:%s "
),
ptr
->
name
,
hw
->
title
);
printf
(
_
(
"%-
9.9s
Link encap:%s "
),
ptr
->
name
,
hw
->
title
);
/* Don't print the hardware address for ATM or Ash if it's null. */
/* Don't print the hardware address for ATM or Ash if it's null. */
if
(
hw
->
sprint
!=
NULL
&&
((
strncmp
(
ptr
->
name
,
"atm"
,
3
)
&&
if
(
hw
->
sprint
!=
NULL
&&
((
strncmp
(
ptr
->
name
,
"atm"
,
3
)
&&
strncmp
(
ptr
->
name
,
"ash"
,
3
))
||
strncmp
(
ptr
->
name
,
"ash"
,
3
))
||
...
...
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