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
7b576887
Commit
7b576887
authored
Dec 07, 2011
by
Jiri Popelka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed clearing flags in ifconfig (RHBZ #450252)
parent
1f2c75dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ifconfig.c
ifconfig.c
+4
-4
No files found.
ifconfig.c
View file @
7b576887
...
...
@@ -441,7 +441,7 @@ int main(int argc, char **argv)
}
if
(
!
strcmp
(
*
spp
,
"-allmulti"
))
{
goterr
|=
clr_flag
(
ifr
.
ifr_name
,
IFF_ALLMULTI
);
if
(
test_flag
(
ifr
.
ifr_name
,
IFF_
MULTICAST
)
>
0
)
if
(
test_flag
(
ifr
.
ifr_name
,
IFF_
ALLMULTI
)
>
0
)
fprintf
(
stderr
,
_
(
"Warning: Interface %s still in ALLMULTI mode.
\n
"
),
ifr
.
ifr_name
);
spp
++
;
continue
;
...
...
@@ -465,7 +465,7 @@ int main(int argc, char **argv)
if
(
!
strcmp
(
*
spp
,
"-dynamic"
))
{
goterr
|=
clr_flag
(
ifr
.
ifr_name
,
IFF_DYNAMIC
);
spp
++
;
if
(
test_flag
(
ifr
.
ifr_name
,
IFF_
MULTICAST
)
>
0
)
if
(
test_flag
(
ifr
.
ifr_name
,
IFF_
DYNAMIC
)
>
0
)
fprintf
(
stderr
,
_
(
"Warning: Interface %s still in DYNAMIC mode.
\n
"
),
ifr
.
ifr_name
);
continue
;
}
...
...
@@ -523,7 +523,7 @@ int main(int argc, char **argv)
if
(
!
strcmp
(
*
spp
,
"-broadcast"
))
{
goterr
|=
clr_flag
(
ifr
.
ifr_name
,
IFF_BROADCAST
);
if
(
test_flag
(
ifr
.
ifr_name
,
IFF_
MULTI
CAST
)
>
0
)
if
(
test_flag
(
ifr
.
ifr_name
,
IFF_
BROAD
CAST
)
>
0
)
fprintf
(
stderr
,
_
(
"Warning: Interface %s still in BROADCAST mode.
\n
"
),
ifr
.
ifr_name
);
spp
++
;
continue
;
...
...
@@ -661,7 +661,7 @@ int main(int argc, char **argv)
if
(
!
strcmp
(
*
spp
,
"-pointopoint"
))
{
goterr
|=
clr_flag
(
ifr
.
ifr_name
,
IFF_POINTOPOINT
);
spp
++
;
if
(
test_flag
(
ifr
.
ifr_name
,
IFF_
MULTICAS
T
)
>
0
)
if
(
test_flag
(
ifr
.
ifr_name
,
IFF_
POINTOPOIN
T
)
>
0
)
fprintf
(
stderr
,
_
(
"Warning: Interface %s still in POINTOPOINT mode.
\n
"
),
ifr
.
ifr_name
);
continue
;
}
...
...
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