Subject: Re: [PATCH] 802.1Q VLAN

From: "David S. Miller" <[email-masked]>
Date: Wed, 27 Oct 2004 21:42:57 -0700

On Wed, 27 Oct 2004 18:28:21 -0700
Ben Greear <[email-masked]> wrote:

> > Also, what is up with the magic "23" constant in the get realdev
> > name function strncpy() call?
> 
> Well, the fields are 24-bytes long, as defined in the include/linux/if_vlan.h
> file.  I could change it to a #define and/or use sizeof if you prefer.

You could also use "sizeof(obj->member)".