Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zebra: fix some boot up warnings on FreeBSD #3419

Merged

Commits on Dec 5, 2018

  1. zebra: always define ROUNDUP and ROUND_TYPE

    Move the declaration of ROUNDUP and ROUND_TYPE to outside of
    `ifdef SA_SIZE`. We'll use these definitions in the next commit.
    
    Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
    rzalamena committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    cb800e3 View commit details
    Browse the repository at this point in the history
  2. zebra: refactor route socket message handling

    Some address types were not being skipped triggering a warning log
    message, so lets refactor this code to properly handle known and unknown
    types.
    
    Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
    rzalamena committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    86c57af View commit details
    Browse the repository at this point in the history
  3. zebra: don't log errors on unsupported medias

    When using `SIOCGIFMEDIA` check for `EINVAL`, otherwise we might print
    an error message on an unsupported interface.
    
    FreeBSD source code reference:
    https://github.com/freebsd/freebsd/blob/master/sys/net/if_media.c#L300
    
    And:
    https://github.com/freebsd/freebsd/blob/8cb4b0c0181bd45318ee8977f77aea90c53bb224/usr.sbin/rtsold/if.c#L211
    
      /*
       * EINVAL simply means that the interface does not support
       * the SIOCGIFMEDIA ioctl. We regard it alive.
       */
    
    Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
    rzalamena committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    c69f2c1 View commit details
    Browse the repository at this point in the history