]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: include hardware addr in if up/down messages
authorJosh Bailey <joshb@google.com>
Thu, 22 Mar 2012 00:13:39 +0000 (17:13 -0700)
committerAvneesh Sachdev <avneesh@opensourcerouting.org>
Sun, 8 Apr 2012 08:19:41 +0000 (01:19 -0700)
commit51d4ef832c1e58150325630e25c442866e5a6cf5
treedf155c4193531a37f651d4151866f18224f8ca4b
parent2dd04c5dc8b5a09cce1c251361fa58f26398fd9f
zebra: include hardware addr in if up/down messages

Change interface up/down notification messages to also include the
hardware address of the interface. The format of these messages is now
identical to the interface add message -- move the serialization code
to common functions.

  * lib/zclient.c: Modify zebra_interface_if_set_value() to also parse
    the hardware address. Invoke it from zebra_interface_add_read()
    and and zebra_interface_state_read().

  * zebra/zserv.c: Add zserv_encode_interface(). Invoke it from
    zserv_interface_add(), zserv_interface_delete() and
    zserv_interface_update().
lib/zclient.c
zebra/zserv.c