summaryrefslogtreecommitdiff
path: root/src/lib/net
AgeCommit message (Collapse)Author
2018-09-06Merge remote-tracking branch 'teor/ticket27467'Nick Mathewson
2018-09-06Remove GetAdaptersAddresses_fn_tteor
The code that used it was removed as part of the 26481 refactor. Closes ticket 27467.
2018-08-01Document new helper functions in socketpair.cNick Mathewson
2018-08-01Reindent tor_ersatz_socketpairNick Mathewson
2018-08-01Refactor tor_ersatz_socketpair() not to need socket.Nick Mathewson
This change also makes tor_ersatz_socketpair() follow the same interface as socketpair() rather than tor_socketpair(), so it now needs to be wrapped in the same code as socketpair() does.
2018-08-01Remove dependency from socketpair.c on address.hNick Mathewson
Also refactor some annoying code in tor_ersatz_socketpair.
2018-08-01Extract tor_ersatz_socketpair into a new c fileNick Mathewson
I'm doing this because I want to make it a lower-level function again, so that we can use it without linking in the rest of the universe.
2018-07-10Rename torlog.[ch] to log.[ch]Nick Mathewson
Fun fact: these files used to be called log.[ch] until we ran into conflicts with systems having a log.h file. But now that we always include "lib/log/log.h", we should be fine.
2018-07-10Rename util_malloc to malloc.Nick Mathewson
2018-07-10Merge remote-tracking branch 'neel/fbsd-cfix'Nick Mathewson
2018-07-10Remove addr_port_lookup.Nick Mathewson
This lets us cut the dependency from address.c to resolve.c: the address.c module now has no paths to the libc resolver in it.
2018-07-10Remove all users of addr_port_lookup outside of address.cNick Mathewson
This function has a nasty API, since whether or not it invokes the resolver depends on whether one of its arguments is NULL. That's a good way for accidents to happen. This patch incidentally makes tor-resolve support socks hosts on IPv6.
2018-07-10Move tor_addr_{,port_}lookup to resolve.cNick Mathewson
2018-07-10Refactor ipv[46].[ch]Nick Mathewson
These are now combined into an inaddr.[ch], since their purpose is to implement functions for struct in_addr and struct in6_addr. The definitions for in6_addr and its allies are now in a separate header, inaddr_st.h. Closes ticket 26532.
2018-07-10Fix build on FreeBSD post-refactorNeel Chauhan
2018-07-10File-level summary documentation for src/lib/*/*.[ch]Nick Mathewson
2018-07-09Merge remote-tracking branch 'rl1987/bug26525'Nick Mathewson
2018-07-05Move socks5_status.h to src/lib/netNick Mathewson
There might be a better place for it in the long run, but this is the best I can think of for now.
2018-07-03Retire some unused (or nearly unused) macros.Nick Mathewson
2018-07-03Rename sandbox_getaddrinfo() et. al.rl1987
2018-07-01File-level documentation for some of src/lib.Nick Mathewson
2018-06-29Move SIO_IDEAL_SEND_BACKLOG_QUERY into socket.hNick Mathewson
2018-06-28A couple of includes to make windows compile againNick Mathewson
2018-06-28Move buffers into containerNick Mathewson
Split the network-only and compression-only parts of buffers into the appropriate modules.
2018-06-28Move network_init to lib/netNick Mathewson
2018-06-28Move tor_gethostname to lib/netNick Mathewson
2018-06-28Move socket-errno code into lib/netNick Mathewson
2018-06-28Extract the alert-socket code into lib/net.Nick Mathewson
This code was in compat_threads, since it was _used_ for efficiently notifying the main libevent thread from another thread. But in spite of its usage, it's fundamentally a part of the network code.
2018-06-27Move several address-string-testing functions to address.cNick Mathewson
2018-06-27Move read/write_all_to_socket into lib/net.Nick Mathewson
2018-06-27Link GetAdaptersAddresses, rather than loading it on-demand.Nick Mathewson
This function has been present since Windows XP.
2018-06-27Move network code to libtor-net.Nick Mathewson
There are some additional changes to come: those points are marked by XXXX.