X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/9d199a1046599dc863414dda2d0a8f4202abb88d..e7c9a1993778e9ac375d7f956dda7c3c802a83a5:/util.h?ds=inline diff --git a/util.h b/util.h index 145559b..2345860 100644 --- a/util.h +++ b/util.h @@ -2,7 +2,13 @@ #define __UTIL_H__ char *fmtaddr(in_addr_t addr, int n); +char *fmtMacAddr(uint8_t *pMacAddr); void *shared_malloc(unsigned int size); pid_t fork_and_close(void); +ssize_t sendtofrom(int s, void const *buf, size_t len, int flags, + struct sockaddr const *to, socklen_t tolen, struct in_addr const *from); + +ssize_t recvfromto(int s, void *buf, size_t len, int flags, + struct sockaddr *from, socklen_t *fromlen, struct in_addr *toaddr); #endif /* __UTIL_H__ */