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
81814dc2
Commit
81814dc2
authored
Dec 07, 2011
by
Jiri Popelka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ifconfig interface:0 del <IP> will remove the aliased IP on IA64
parent
796ba7f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ifconfig.c
ifconfig.c
+3
-1
No files found.
ifconfig.c
View file @
81814dc2
...
...
@@ -890,7 +890,9 @@ int main(int argc, char **argv)
continue
;
}
memcpy
(
&
ip
,
&
sin
.
sin_addr
.
s_addr
,
sizeof
(
unsigned
long
));
/* Clear "ip" in case sizeof(unsigned long) > sizeof(sin.sin_addr.s_addr) */
ip
=
0
;
memcpy
(
&
ip
,
&
sin
.
sin_addr
.
s_addr
,
sizeof
(
sin
.
sin_addr
.
s_addr
));
if
(
get_nmbc_parent
(
ifr
.
ifr_name
,
&
nm
,
&
bc
)
<
0
)
{
fprintf
(
stderr
,
_
(
"Interface %s not initialized
\n
"
),
...
...
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