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

[PW_SID:799800] [1/4] rtnl: Fixup rtnetlink includes #25

Open
wants to merge 7 commits into
base: workflow
Choose a base branch
from

Commits on Nov 8, 2023

  1. Sync upstream workflow

    jprestwo authored and IWDTestBot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    a7ee657 View commit details
    Browse the repository at this point in the history
  2. ci: create PR from patchwork

    jprestwo authored and IWDTestBot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    11fac30 View commit details
    Browse the repository at this point in the history
  3. ci: dispatch IWD CI from ELL

    jprestwo authored and IWDTestBot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    aac538a View commit details
    Browse the repository at this point in the history
  4. rtnl: Fixup rtnetlink includes

    man 7 rtnetlink suggests the 4 includes listed should be used.  Also,
    remove rtnetlink.h inclusion from rtnl.h and move it into the individual
    code files.
    denkenz authored and IWDTestBot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    e90b240 View commit details
    Browse the repository at this point in the history
  5. netlink: Fix compilation on really old platforms

    Some platforms lack definitions of new netlink features.  Fix this
    by including a local copy of the most up to date netlink.h header.
    
      CC       ell/netlink.lo
    ell/netlink.c: In function ‘l_netlink_set_debug’:
    ell/netlink.c:629:56: error: ‘NETLINK_EXT_ACK’ undeclared (first use in this function)
      if (setsockopt(l_io_get_fd(netlink->io), SOL_NETLINK, NETLINK_EXT_ACK,
                                                            ^
    ell/netlink.c:629:56: note: each undeclared identifier is reported only once for each function it appears in
    ell/netlink.c: In function ‘netlink_parse_ext_ack_error’:
    ell/netlink.c:649:29: error: ‘NLM_F_ACK_TLVS’ undeclared (first use in this function)
      if (!(nlmsg->nlmsg_flags & NLM_F_ACK_TLVS))
                                 ^
    ell/netlink.c:657:29: error: ‘NLM_F_CAPPED’ undeclared (first use in this function)
      if (!(nlmsg->nlmsg_flags & NLM_F_CAPPED))
                                 ^
    ell/netlink.c:677:8: error: ‘NLMSGERR_ATTR_MSG’ undeclared (first use in this function)
       case NLMSGERR_ATTR_MSG:
            ^
    ell/netlink.c:681:8: error: ‘NLMSGERR_ATTR_OFFS’ undeclared (first use in this function)
       case NLMSGERR_ATTR_OFFS:
            ^
    denkenz authored and IWDTestBot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    1b2cc04 View commit details
    Browse the repository at this point in the history
  6. rtnl: Fix compilation on really old platforms

    Some old platforms lack definitions of rtnl features we depend on.  Fix
    this by including a local copy of the most up to date rtnetlink.h
    header.
    
      CC       ell/rtnl.lo
    ell/rtnl.c: In function ‘_rtnl_route_change’:
    ell/rtnl.c:1408:35: error: ‘RTA_EXPIRES’ undeclared (first use in this function)
       rta_buf += rta_add_u32(rta_buf, RTA_EXPIRES,
                                       ^
    ell/rtnl.c:1408:35: note: each undeclared identifier is reported only once for each function it appears in
    denkenz authored and IWDTestBot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    8b7b14f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d854086 View commit details
    Browse the repository at this point in the history