diff options
author | glebius <glebius@FreeBSD.org> | 2015-02-19 23:14:35 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2015-02-19 23:14:35 +0000 |
commit | 896e3f467bb1988d34b0711c1ccc64990fab0ce7 (patch) | |
tree | 43df71d49cba69e78c90c11277f7ece5f384d161 /contrib/ipfilter/genmask.c | |
parent | 39824ae151569add2d6e3615fefa1fb17cead897 (diff) | |
download | FreeBSD-src-896e3f467bb1988d34b0711c1ccc64990fab0ce7.zip FreeBSD-src-896e3f467bb1988d34b0711c1ccc64990fab0ce7.tar.gz |
The ipftest(1) is a program that emulates ipf(4) operation and tests packets
against rules. It definitely doesn't need to know about kernel internals,
such as 'struct ifaddr'. What it does with ifaddr, is that it only takes
ifa_addr member of it, and treats it as sockaddr, while it is only a pointer
to sockaddr. Fortunately, sizeof(struct ifaddr) > sizeof(struct sockaddr_in6),
so no problems arise.
Fix that declaring a private struct ifaddr in ipftest(1) and stop including
if_var.h.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Diffstat (limited to 'contrib/ipfilter/genmask.c')
0 files changed, 0 insertions, 0 deletions