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
58c69b22
Commit
58c69b22
authored
Jan 07, 2014
by
Thomas Haller
Committed by
Stephen Hemminger
Jan 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for IFA_F_NOPREFIXROUTE
Signed-off-by:
Thomas Haller
<
thaller@redhat.com
>
parent
5b7e21c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
ip/ipaddress.c
ip/ipaddress.c
+10
-1
No files found.
ip/ipaddress.c
View file @
58c69b22
...
...
@@ -82,7 +82,7 @@ static void usage(void)
fprintf
(
stderr
,
" tentative | deprecated | dadfailed | temporary |
\n
"
);
fprintf
(
stderr
,
" CONFFLAG-LIST ]
\n
"
);
fprintf
(
stderr
,
"CONFFLAG-LIST := [ CONFFLAG-LIST ] CONFFLAG
\n
"
);
fprintf
(
stderr
,
"CONFFLAG := [ home | nodad | mngtmpaddr ]
\n
"
);
fprintf
(
stderr
,
"CONFFLAG := [ home | nodad | mngtmpaddr
| noprefixroute
]
\n
"
);
fprintf
(
stderr
,
"LIFETIME := [ valid_lft LFT ] [ preferred_lft LFT ]
\n
"
);
fprintf
(
stderr
,
"LFT := forever | SECONDS
\n
"
);
...
...
@@ -707,6 +707,10 @@ int print_addrinfo(const struct sockaddr_nl *who, struct nlmsghdr *n,
ifa_flags
&=
~
IFA_F_MANAGETEMPADDR
;
fprintf
(
fp
,
"mngtmpaddr "
);
}
if
(
ifa_flags
&
IFA_F_NOPREFIXROUTE
)
{
ifa_flags
&=
~
IFA_F_NOPREFIXROUTE
;
fprintf
(
fp
,
"noprefixroute "
);
}
if
(
!
(
ifa_flags
&
IFA_F_PERMANENT
))
{
fprintf
(
fp
,
"dynamic "
);
}
else
...
...
@@ -1133,6 +1137,9 @@ static int ipaddr_list_flush_or_save(int argc, char **argv, int action)
}
else
if
(
strcmp
(
*
argv
,
"mngtmpaddr"
)
==
0
)
{
filter
.
flags
|=
IFA_F_MANAGETEMPADDR
;
filter
.
flagmask
|=
IFA_F_MANAGETEMPADDR
;
}
else
if
(
strcmp
(
*
argv
,
"noprefixroute"
)
==
0
)
{
filter
.
flags
|=
IFA_F_NOPREFIXROUTE
;
filter
.
flagmask
|=
IFA_F_NOPREFIXROUTE
;
}
else
if
(
strcmp
(
*
argv
,
"dadfailed"
)
==
0
)
{
filter
.
flags
|=
IFA_F_DADFAILED
;
filter
.
flagmask
|=
IFA_F_DADFAILED
;
...
...
@@ -1354,6 +1361,8 @@ static int ipaddr_modify(int cmd, int flags, int argc, char **argv)
ifa_flags
|=
IFA_F_NODAD
;
}
else
if
(
strcmp
(
*
argv
,
"mngtmpaddr"
)
==
0
)
{
ifa_flags
|=
IFA_F_MANAGETEMPADDR
;
}
else
if
(
strcmp
(
*
argv
,
"noprefixroute"
)
==
0
)
{
ifa_flags
|=
IFA_F_NOPREFIXROUTE
;
}
else
{
if
(
strcmp
(
*
argv
,
"local"
)
==
0
)
{
NEXT_ARG
();
...
...
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