summaryrefslogtreecommitdiff
path: root/util.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-12Use perror where possibleBenjamin Franzke1-5/+3
2013-03-12util: Set SO_BROADCAST for udp eonnect sockets by defaultBenjamin Franzke1-0/+7
So that we can use it for econfind, and do not have the repeat all the code.
2013-03-12util: Log to stderrBenjamin Franzke1-2/+2
2013-03-12util: bind/connect: log which protocol is usedBenjamin Franzke1-2/+4
2013-03-12util: Fix error string if connection failedBenjamin Franzke1-1/+1
2013-03-11Add -Wextra and use gnu99Benjamin Franzke1-1/+1
2013-03-10Add GPL3 copyrightBenjamin Franzke1-0/+17
2013-03-10util: Add sock_get_hwaddrBenjamin Franzke1-0/+17
And use it in econserv, instead of the hardcoded lookup for tap0.
2013-03-10util: Split sock_get_netmask into a utility function sock_get_ifreqBenjamin Franzke1-37/+24
Which may be reused for getting e.g. hwaddr.
2013-03-09util: Proper implement sock_get_netmaskBenjamin Franzke1-0/+39
By looping through all interfaces, search for the ip address we're bound to and use that subnetmask.
2013-03-09util: remove unneeded skeletonBenjamin Franzke1-8/+0
2013-03-09Add util mostly for socket-based tasksBenjamin Franzke1-0/+212