add checks for netfilter's headers

This commit is contained in:
Max Lv
2014-10-27 12:28:05 +08:00
parent 8b4539e7d8
commit e3e9018f37
4 changed files with 60 additions and 0 deletions
+4
View File
@@ -60,6 +60,10 @@
#define BUF_SIZE 2048
#endif
#ifndef IP6T_SO_ORIGINAL_DST
#define IP6T_SO_ORIGINAL_DST 80
#endif
int getdestaddr(int fd, struct sockaddr_storage *destaddr)
{
socklen_t socklen = sizeof(*destaddr);