1. 13 Oct, 2015 1 commit
    • Philip Withnall's avatar
      gsocketconnectable: Add a to_string() virtual method · 128c4132
      Philip Withnall authored
      Add string serialisation functions for GNetworkAddress, GSocketAddress,
      GUnixSocketAddress, GInetSocketAddress, GNetworkService and
      GSocketConnectable. These are intended for use in debug output, not for
      serialisation in network or disc protocols.
      
      They are implemented as a new virtual method on GSocketConnectable:
      g_socket_connectable_to_string().
      
      GInetSocketAddress and GUnixSocketAddress now implement
      GSocketConnectable directly to implement to_string(). Previously they
      implemented it via their abstract parent class, GSocketAddress.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=737116
      128c4132
  2. 06 Jul, 2014 1 commit
  3. 20 Feb, 2014 1 commit
  4. 15 Feb, 2014 1 commit
    • Dan Winship's avatar
      gio: don't accept nonstandard IPv4 "numbers-and-dots" addresses · 5575a3e9
      Dan Winship authored
      In addition to the standard "192.168.1.1" format, there are numerous
      legacy IPv4 address formats (such as "192.168.257",
      "0xc0.0xa8.0x01.0x01", "0300.0250.0001.0001", "3232235777", and
      "0xc0a80101"). However, none of these forms are ever used any more
      except in phishing attempts. GLib wasn't supposed to be accepting
      these addresses (neither g_hostname_is_ip_address() nor
      g_inet_address_new_from_string() recognizes them), but getaddrinfo()
      accepts them, and so the parts of gio that use getaddrinfo()
      accidentally did accept those formats.
      
      Fix GNetworkAddress and GResolver to reject these address formats.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=679957
      5575a3e9
  5. 06 Feb, 2014 2 commits
  6. 31 Jan, 2014 2 commits
  7. 08 Jan, 2014 1 commit
  8. 24 Jun, 2013 2 commits
  9. 30 Jan, 2013 1 commit
    • 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
  10. 30 Jan, 2012 1 commit
  11. 16 Jan, 2012 1 commit
  12. 29 Dec, 2010 1 commit
  13. 24 Sep, 2010 1 commit
  14. 10 Jul, 2010 1 commit
  15. 07 Jul, 2010 1 commit
  16. 17 Aug, 2009 1 commit
  17. 28 May, 2009 1 commit
  18. 27 May, 2009 1 commit
  19. 18 May, 2009 2 commits
  20. 22 Apr, 2009 1 commit
    • Dan Winship's avatar
      Add network address and socket types · 68fc0556
      Dan Winship authored
      Types and methods for dealing with IPv4 and IPv6 addresses (and UNIX
      domain socket addresses under UNIX). This does not include code for
      actual socket I/O.
      
      Originally from "gnio". Much of the code was written by Christian
      Kellner, Samuel Cormier-Iijima, and Ryan Lortie.
      
      Part of #548466.
      68fc0556