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
1b74c24b
Commit
1b74c24b
authored
Jan 05, 2012
by
Jiri Popelka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inform user that ifconfig can correctly show only first 8 bytes of Infiniband hw address
parent
9dc3a205
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
lib/ib.c
lib/ib.c
+2
-1
man/en_US/ifconfig.8
man/en_US/ifconfig.8
+10
-0
No files found.
lib/ib.c
View file @
1b74c24b
...
...
@@ -47,7 +47,8 @@ static const char *pr_ib(const char *ptr)
pos
+=
sprintf
(
pos
,
"%02X:"
,
(
*
ptr
++
&
0377
));
}
buff
[
strlen
(
buff
)
-
1
]
=
'\0'
;
char
*
ib_warning
=
"Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8)."
;
fprintf
(
stderr
,
_
(
ib_warning
));
/* snprintf(buff, sizeof(buff), "%02X:%02X:%02X:%02X:%02X:%02X",
(ptr[0] & 0377), (ptr[1] & 0377), (ptr[2] & 0377),
(ptr[3] & 0377), (ptr[4] & 0377), (ptr[5] & 0377)
...
...
man/en_US/ifconfig.8
View file @
1b74c24b
...
...
@@ -211,6 +211,16 @@ for more information.
.
br
.
I
/
proc
/
net
/
if_inet6
.
SH
BUGS
Ifconfig
uses
the
ioctl
access
method
to
get
the
full
address
information
,
which
limits
hardware
addresses
to
8
bytes
.
Because
Infiniband
hardware
address
has
20
bytes
,
only
the
first
8
bytes
are
displayed
correctly
.
Please
use
.
B
ip
link
command
from
.
B
iproute2
package
to
display
link
layer
informations
including
the
hardware
address
.
.
LP
While
appletalk
DDP
and
IPX
addresses
will
be
displayed
they
cannot
be
altered
by
this
command
.
.
SH
SEE
ALSO
...
...
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