[Bridge] [PATCH v2 net-next 2/6] bridge: make flags sysfs interface a little bit more extensible

Stephen Hemminger stephen at networkplumber.org
Fri Apr 19 20:54:41 UTC 2013


On Fri, 19 Apr 2013 16:52:46 -0400
Vlad Yasevich <vyasevic at redhat.com> wrote:

>  
> +static ssize_t show_flag(struct net_bridge_port *p, char *buf,
> +			  unsigned long mask)
> +{
> +	return sprintf(buf, "%d\n", !!(p->flags & mask));
> +}

Flags are bit, show in hex please.


More information about the Bridge mailing list