lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <l1gbs4$da2$1@ger.gmane.org>
Date:	Fri, 20 Sep 2013 02:28:21 +0000 (UTC)
From:	Cong Wang <xiyou.wangcong@...il.com>
To:	netdev@...r.kernel.org
Subject: Re: add ip to interface as primary ip address, not secondary ip
 when there is alreadly primary ip?

On Thu, 19 Sep 2013 at 16:54 GMT, Vincent Li <vincent.mc.li@...il.com> wrote:
> thanks for the pointer
>
> 'ip addr' indeed has flag IFA_F_SECONDARY for this, but it is not
> available for 'ip addr add', so I made a simple patch for iproute2
> ip/ipaddress.c as below:

% git grep secondary ip/ipaddress.c
ip/ipaddress.c: fprintf(stderr, "FLAG  := [ permanent | dynamic |
secondary | primary |\n");
ip/ipaddress.c:                 fprintf(fp, "secondary ");
ip/ipaddress.c:static int print_addrinfo_secondary(const struct
sockaddr_nl *who,
ip/ipaddress.c:                         .filter =
print_addrinfo_secondary,
ip/ipaddress.c:         } else if (strcmp(*argv, "secondary") == 0 ||

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ