Commit 81814dc2 authored by Jiri Popelka's avatar Jiri Popelka

ifconfig interface:0 del <IP> will remove the aliased IP on IA64

parent 796ba7f1
......@@ -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"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment