netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Acker <dacker@roinet.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net: expose vlan structure to user space
Date: Fri, 14 Apr 2006 09:15:54 -0400	[thread overview]
Message-ID: <443FA08A.8040900@roinet.com> (raw)
In-Reply-To: <4436BB69.3010205@roinet.com>

David Acker wrote:
>  From Dave Acker <dacker@roinet.com>
> 
> The purpose is to allow a user space program to use the vlan_ethhdr
> structure when directly handling 802.1Q packets.  This can be done
> by using a raw socket like:
> int s = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
> This socket should see VLAN packets from the base interface unchanged
> (i.e. vlan tag still in packet).
> Currently other user space programs that understand VLANs seem to all
> create their own definitions for this structure.
> This patch does NOT expose the defines related to the sizes of VLAN 
> packets and
> their fields; it only exposes the vlan_ethhdr structure.  It was determined
> that these sizes are not useful since the packet could be as large the MTU
> of the underlying physical network.  Also, you can have nested VLAN headers
> such that the actual data offset is greater than the size of the 
> vlan_ethhdr
> structure.
> -Dave Acker
> 

Hello folks.  Although some conversation appeared on earlier postings of 
this patch, I though I would reply here since the post I am replying to 
here gets the diff format right (from the top level instead of deep in 
the source).  Last I heard:

David S. Miller wrote:
 > I think this really belongs in a portable header file
 > in glibc somewhere.

David, while I can try to work with the glibc folks, I don't understand 
how this patch would be different from what if_ether.h exposes to user 
space today.  Why is one appropriate and the other not?  I am not trying 
to be a pain; I am just trying to understand the rationale so that I can 
explain it to others.

Thanks,
Dave Acker

       reply	other threads:[~2006-04-14 13:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4436BB69.3010205@roinet.com>
2006-04-14 13:15 ` David Acker [this message]
2006-04-14 20:55   ` [PATCH] net: expose vlan structure to user space David S. Miller
2006-04-14 21:10     ` David Acker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=443FA08A.8040900@roinet.com \
    --to=dacker@roinet.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).