]> git.proxmox.com Git - mirror_frr.git/commit - lib/if.h
lib, zebra: unify link layer type and hardware address handling
authorTimo Teräs <timo.teras@iki.fi>
Fri, 15 Jan 2016 15:36:33 +0000 (17:36 +0200)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Sat, 3 Sep 2016 15:05:50 +0000 (11:05 -0400)
commit8ccc7e802b67092e2cf0938992a3ea304e3151b6
tree3f1970da82d7b637172e713ad719117664adc4ec
parent0b02a1b49b3dbde83b58a641b146fef70a4497fb
lib, zebra: unify link layer type and hardware address handling

This removes the BSD specific usage of struct sockaddr_dl
hardware address. This unifies to use explict hw_addr member for
the address, and zebra specific enumeration for the link layer
type.

Additionally the zapi is updated to never send platform specific
structures over the wire, but the ll_type along with hw_addr_len
and hw_addr are now sent for all platforms.

Based on initial work by Paul Jakma.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Author:    Timo Teräs <timo.teras@iki.fi>
#
# rebase in progress; onto 9c2f85d
# You are currently editing a commit while rebasing branch 'renato' on '9c2f85d'.
#
# Changes to be committed:
# modified:   isisd/isis_circuit.c
# modified:   lib/if.c
# modified:   lib/if.h
# modified:   lib/zclient.c
# modified:   zebra/interface.c
# modified:   zebra/interface.h
# modified:   zebra/kernel_socket.c
# modified:   zebra/rt_netlink.c
# modified:   zebra/rtadv.c
# modified:   zebra/zserv.c
#
# Untracked files:
# "\033\033OA\033OB\033"
# 0001-bgpd-fix-build-on-Solaris.patch
# ldpd/
# redhat/ldpd.init
# redhat/ldpd.service
# tags
#
isisd/isis_circuit.c
lib/if.c
lib/if.h
lib/zclient.c
zebra/interface.c
zebra/interface.h
zebra/kernel_socket.c
zebra/rt_netlink.c
zebra/rtadv.c
zebra/zserv.c