summaryrefslogtreecommitdiff
path: root/util.c
AgeCommit message (Collapse)AuthorFilesLines
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