[lldp-devel] [V2 2/4] vdpnl add new header file

John Fastabend john.r.fastabend at intel.com
Fri Mar 8 09:11:00 UTC 2013


On 3/6/2013 6:09 AM, Thomas Richter wrote:
> Add a new header file. It is used to decode
> VSI profile netlink messages and store the message data
> in a usable form.
>
> Signed-off-by: Thomas Richter <tmricht at linux.vnet.ibm.com>
> ---

[...]

> + * Definition of the VSI data structure received via netlink interface
> + */
> +#ifndef LLDP_VDPNL_H
> +#define LLDP_VDPNL_H
> +
> +#include <linux/if_link.h>
> +#include <linux/if_ether.h>
> +
> +#define	MAX_PAYLOAD	4096	/* Maximum Payload Size */
> +
> +struct vdpnl_mac {		/* MAC-VLAN pair */
> +	unsigned short vlan;		/* Vlan identifier */
> +	unsigned char mac[ETH_ALEN];	/* Mac address */
> +	unsigned char qos;		/* Quality of service */
> +};
> +	

Applied with spurious tab removed on line above.


More information about the lldp-devel mailing list