Re: [PATCH] CDP handler for linux

Lincoln Dale (ltd@cisco.com)
Tue, 14 Aug 2001 16:01:45 -0700


g'day,

At 07:47 PM 14/08/2001 +0100, Chris Crowther wrote:
> I've been working on an addition to the kernel over the past
>couple of days that enables the kernel to interpret CDP (Cisco Discovery
>Protocol) packets which can be transmited by various pieces of Cisco kit.
..

for various devices/developments inside Cisco, we've implemented CDP in
user-space.

basically all that is required to do that is to hook into the 802.2/SNAP
stuff that is already in the kernel (net/802) - in my case, i just used
netlink so as to allow user-space to receive the whole packet and avoid any
processing in the kernel.

you may want to consider the same. at least for cisco products, there are
LOTS of permutations of enabling/disabling CDP on a per-interface-basis and
what-ip-addresses-to-advertise-in-CDP and
what-functionality-to-advertise-in-CDP.
most of those kinds of policies are probably outside the scope of what
logic you would expect in the kernel.

my $0.02 worth,
cheers,

lincoln.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/