David S. Miller wrote:
From: David Acker <[EMAIL PROTECTED]>
Date: Fri, 07 Apr 2006 14:12:05 -0400
This is a second attempt at a patch for include/linux/if_vlan.h .
Its 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).
I think this really belongs in a portable header file
in glibc somewhere.
That would work for me. My goal is to have a user space program that
can handle vlan packets directly. I guess my take on it was that
if_vlan.h is similar to if_ether.h . if_ether.h already exports the
ethernet header structure and is available from user space. I thought
it made sense to export the vlan header structure in the same manner
that the ethernet header structure is exported today. If folks here
think glibc's headers are a better place for this, that's fine with me.
-Ack
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html