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
df590401
Commit
df590401
authored
Apr 01, 2016
by
Nicolas Dichtel
Committed by
Stephen Hemminger
Apr 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iplink: display IFLA_PHYS_PORT_NAME
Signed-off-by:
Nicolas Dichtel
<
nicolas.dichtel@6wind.com
>
parent
4dd3f50a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ip/ipaddress.c
ip/ipaddress.c
+4
-0
No files found.
ip/ipaddress.c
View file @
df590401
...
@@ -813,6 +813,10 @@ int print_linkinfo(const struct sockaddr_nl *who,
...
@@ -813,6 +813,10 @@ int print_linkinfo(const struct sockaddr_nl *who,
fprintf
(
fp
,
"master %s "
,
ll_idx_n2a
(
*
(
int
*
)
RTA_DATA
(
tb
[
IFLA_MASTER
]),
b1
));
fprintf
(
fp
,
"master %s "
,
ll_idx_n2a
(
*
(
int
*
)
RTA_DATA
(
tb
[
IFLA_MASTER
]),
b1
));
}
}
if
(
tb
[
IFLA_PHYS_PORT_NAME
])
fprintf
(
fp
,
"portname %s "
,
rta_getattr_str
(
tb
[
IFLA_PHYS_PORT_NAME
]));
if
(
tb
[
IFLA_PHYS_PORT_ID
])
{
if
(
tb
[
IFLA_PHYS_PORT_ID
])
{
SPRINT_BUF
(
b1
);
SPRINT_BUF
(
b1
);
fprintf
(
fp
,
"portid %s "
,
fprintf
(
fp
,
"portid %s "
,
...
...
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