]> git.ipfire.org Git - thirdparty/lldpd.git/commit
Add support for PD PoE negotiation. 289/head
authorGustav Wiklander <gustavwi@axis.com>
Thu, 21 Jun 2018 08:49:37 +0000 (10:49 +0200)
committerGustav Wiklander <gustavwi@axis.com>
Fri, 6 Jul 2018 11:22:27 +0000 (13:22 +0200)
commit5334d8c8a459b5e1385327bea5ee527e498e4b9b
tree2e10b5c711e5454982a79c4678ce0b130efc86d4
parent342d2dab38230672de278acf6b7e7c34e2880f03
Add support for PD PoE negotiation.

Power requests refer to the power at the PSE.
Thus the loss offset caused by the cable has to be added
to the power request. Also the power received from the PSE
must subtract the cable loss to be compatible with lldp.
There are three TLVs for CDPv2 PoE negotiation.
Power Consumption: Current maximum power consumption of PD.
Power Request: Wanted maximum power consumption of PD.
Power Available: Power output from PSE.

Only used if lldp PoE is not supported by switch.

A cisco switch which does support both lldp and cdp will
use the protocol which is first to transmit a package.

Change-Id: Ib45ae582799c50a8d839120c28a5080e582c66e9
src/daemon/lldpd.c
src/daemon/protocols/cdp.c
src/daemon/protocols/cdp.h
src/lldpd-structs.h