git: wg: Port #31: adapt socket functions

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 8 00:32:31 PST 2024


commit a10d658c561d66f582cbf9bce06a2338be760552
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Nov 26 14:30:59 2023 +0800

    wg: Port #31: adapt socket functions
    
    - Use so_pru_sockaddr() function to obtain the bound address/port.
    - Add flags=0 as the required second argument to soclose().
    - Our sbcreatecontrol() function doesn't accept the 'how' mflags, so
      remove the 'M_NOWAIT' argument.

Summary of changes:
 sys/net/wg/if_wg.c | 51 +++++++++++++++++++++++++--------------------------
 1 file changed, 25 insertions(+), 26 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list