Improve STP library.
authorBen Pfaff <blp@nicira.com>
Tue, 6 Jan 2009 00:04:05 +0000 (16:04 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 6 Jan 2009 00:04:05 +0000 (16:04 -0800)
commitcca9b6e1ba4865bbc6c13c3ab60fbcab52bacb45
tree8c293b2f2c2f5f63d163f978c82ab7287a71a5f0
parentadf90e17cef41623a4e84218021cd1d3b79289ac
Improve STP library.

- Don't expose the funny STP time units; instead, convert to and from
  milliseconds at the module boundary.

- Allow the client to configure the max age, hello time, and forward delay
  parameters.

- Do more of the construction of BPDUs internally, instead of making the
  client do it.
16 files changed:
lib/stp.c
lib/stp.h
secchan/stp-secchan.c
tests/test-stp-ieee802.1d-1998
tests/test-stp-ieee802.1d-2004-fig17.4
tests/test-stp-ieee802.1d-2004-fig17.6
tests/test-stp-ieee802.1d-2004-fig17.7
tests/test-stp-iol-io-1.1
tests/test-stp-iol-io-1.2
tests/test-stp-iol-io-1.4
tests/test-stp-iol-io-1.5
tests/test-stp-iol-op-1.4
tests/test-stp-iol-op-3.1
tests/test-stp-iol-op-3.3
tests/test-stp-iol-op-3.4
tests/test-stp.c