Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2008 15:07:35 +0000
From:      Tom Judge <tom@tomjudge.com>
To:        freebsd-net@freebsd.org
Subject:   Programming interface MAC filter without enabling PROMISC on an interface from user space.
Message-ID:  <478B7AB7.5010208@tomjudge.com>

next in thread | raw e-mail | index | archive | help
Hi,

I have just started experimenting with OpenLLDP and come across a little 
bit of a nasty.  When it opens the interface, it puts it into PROMISC 
mode,  which I don't really want to happen.  Is there any way to add the 
LLDP MAC address (01-80-C2-00-00-0E) to the interface mac filter from 
user space, so that the interface does not have to be set to PROMISC?

The OpenLLDP uses BPF to interface with the network stack as it has to 
send and receive RAW Ethernet frames (ether type 88-CC).


If this is not possible where would one start with moving the LLDP 
implementation into the kernel.  I was thinking of 3 options:

* Having a virtual interface (like vlan/carp) that attaches to a parent 
that processes the packages.

* A netgraph node to processes the packets and send responses.

* A core protocol handler that deals with the hole thing for any 
Ethernet capable interface.

Any help with this would be greatly appreciated.

Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478B7AB7.5010208>