Skip to content
  • Dan Winship's avatar
    GInetSocketAddress: fix the byte order of flowinfo and scope_id · a60014f1
    Dan Winship authored
    The flowinfo and scope_id fields of struct sockaddr_in6 are in host
    byte order, but the code previously assumed they were in network byte
    order. Fix that.
    
    This is an ABI-breaking change (since before you would have had to use
    g_ntohl() and g_htonl() with them to get the correct values, and now
    that would give the wrong values), but the previous behavior was
    clearly wrong, and no one ever reported it, so it is likely that no
    one was actually using it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684404
    a60014f1