git: if_clone: Extend if_clone_create() by an extra parameter

Aaron LI aly at crater.dragonflybsd.org
Thu Jul 2 16:02:01 PDT 2020


commit bb54c3a2a4a6207be408250820bde132dab4af2d
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Jul 2 22:47:27 2020 +0800

    if_clone: Extend if_clone_create() by an extra parameter
    
    Currently, if_clone_create() accepts one caddr_t parameter that is
    passed with the ifreq->ifr_data for the SIOCIFCREATE2 ioctl.
    
    Extend this function by another caddr_t parameter so that callers could
    pass extra data to the ifc->ifc_create() handler and won't conflict with
    the SIOCIFCREATE2 ioctl calls.  This extension will be used by tun(4)
    and tap(4) in a following commit.
    
    Suggested-by: dillon
    Reviewed-by: dillon

Summary of changes:
 sys/bus/u4b/usb_pf.c                           |  5 +++--
 sys/net/bridge/if_bridge.c                     |  5 +++--
 sys/net/gif/if_gif.c                           | 11 +++++++----
 sys/net/gre/if_gre.c                           |  5 +++--
 sys/net/if.c                                   |  2 +-
 sys/net/if_clone.c                             | 12 ++++++------
 sys/net/if_clone.h                             | 17 +++++++++--------
 sys/net/if_loop.c                              |  5 +++--
 sys/net/ipfw3_basic/ip_fw3_log.c               |  3 ++-
 sys/net/lagg/if_lagg.c                         |  5 +++--
 sys/net/pf/if_pflog.c                          |  5 +++--
 sys/net/pf/if_pfsync.c                         |  7 +++++--
 sys/net/vlan/if_vlan.c                         |  5 +++--
 sys/netinet/ip_carp.c                          |  5 +++--
 sys/netproto/802_11/wlan/ieee80211_dragonfly.c |  5 +++--
 15 files changed, 57 insertions(+), 40 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bb54c3a2a4a6207be408250820bde132dab4af2d


-- 
DragonFly BSD source repository


More information about the Commits mailing list