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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0ae9fd91-ab7c-c614-06e8-e8264bcfe96d@gmail.com>
Date:   Mon, 30 Sep 2019 10:41:44 -0600
From:   David Ahern <dsahern@...il.com>
To:     Roopa Prabhu <roopa@...ulusnetworks.com>
Cc:     netdev@...r.kernel.org, nikolay@...ulusnetworks.com,
        stephen@...workplumber.org
Subject: Re: [PATCH iproute2 net-next v2 1/2] bridge: fdb get support

On 9/28/19 2:22 PM, Roopa Prabhu wrote:
> @@ -518,6 +520,113 @@ static int fdb_modify(int cmd, int flags, int argc, char **argv)
>  	return 0;
>  }
>  
> +static int fdb_get(int argc, char **argv)
> +{
> +	struct {
> +		struct nlmsghdr	n;
> +		struct ndmsg		ndm;
> +		char			buf[1024];
> +	} req = {
> +		.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ndmsg)),
> +		.n.nlmsg_flags = NLM_F_REQUEST,
> +		.n.nlmsg_type = RTM_GETNEIGH,
> +		.ndm.ndm_family = AF_BRIDGE,
> +	};
> +	struct nlmsghdr *answer;
> +	char *addr = NULL;
> +	char  *d = NULL, *br = NULL;
> +	char abuf[ETH_ALEN];
> +	unsigned long vni = ~0;
> +	int br_ifindex = 0;
> +	char *endptr;
> +	short vlan = -1;

iproute2 follows the net standards of reverse xmas tree for declarations.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ