You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make -f Makefile.bsd
cc -I. -DMINIUPNPD_GIT_REF="master-9df2f43" -O2 -pipe -Wall -W -Wstrict-prototypes -fno-common -c -o ipfwrdr.o ./ipfw/ipfwrdr.c
./ipfw/ipfwrdr.c:176:7: error: no member named 'version' in 'struct ip_fw'
rule.version = IP_FW_CURRENT_API_VERSION;
~~~~ ^
./ipfw/ipfwrdr.c:176:17: error: use of undeclared identifier 'IP_FW_CURRENT_API_VERSION'
rule.version = IP_FW_CURRENT_API_VERSION;
^
./ipfw/ipfwrdr.c:181:7: error: no member named 'fw_prot' in 'struct ip_fw'
rule.fw_prot = proto; /* protocol /
~~~~ ^
./ipfw/ipfwrdr.c:182:7: error: no member named 'fw_flg' in 'struct ip_fw'
rule.fw_flg |= IP_FW_F_IIFACE; / interfaces to check /
~~~~ ^
./ipfw/ipfwrdr.c:182:17: error: use of undeclared identifier 'IP_FW_F_IIFACE'
rule.fw_flg |= IP_FW_F_IIFACE; / interfaces to check /
^
./ipfw/ipfwrdr.c:183:7: error: no member named 'fw_flg' in 'struct ip_fw'
rule.fw_flg |= IP_FW_F_IIFNAME; / interfaces to check by name /
~~~~ ^
./ipfw/ipfwrdr.c:183:17: error: use of undeclared identifier 'IP_FW_F_IIFNAME'
rule.fw_flg |= IP_FW_F_IIFNAME; / interfaces to check by name /
^
./ipfw/ipfwrdr.c:184:7: error: no member named 'fw_flg' in 'struct ip_fw'
rule.fw_flg |= (IP_FW_F_IN | IP_FW_F_OUT); / packet direction /
~~~~ ^
./ipfw/ipfwrdr.c:184:18: error: use of undeclared identifier 'IP_FW_F_IN'
rule.fw_flg |= (IP_FW_F_IN | IP_FW_F_OUT); / packet direction /
^
./ipfw/ipfwrdr.c:184:31: error: use of undeclared identifier 'IP_FW_F_OUT'
rule.fw_flg |= (IP_FW_F_IN | IP_FW_F_OUT); / packet direction /
^
./ipfw/ipfwrdr.c:185:7: error: no member named 'fw_flg' in 'struct ip_fw'
rule.fw_flg |= IP_FW_F_FWD; / forward action /
~~~~ ^
./ipfw/ipfwrdr.c:185:17: error: use of undeclared identifier 'IP_FW_F_FWD'
rule.fw_flg |= IP_FW_F_FWD; / forward action /
^
./ipfw/ipfwrdr.c:188:16: error: no member named 'fw_in_if' in 'struct ip_fw'
strlcpy(rule.fw_in_if.fu_via_if.name, ifname, IFNAMSIZ); / src interface */
~~~~ ^
./ipfw/ipfwrdr.c:189:8: error: no member named 'fw_in_if' in 'struct ip_fw'
rule.fw_in_if.fu_via_if.unit = -1;
~~~~ ^
./ipfw/ipfwrdr.c:192:29: error: no member named 'fw_out_if' in 'struct ip_fw'
if (inet_aton(iaddr, &rule.fw_out_if.fu_via_ip) == 0) {
~~~~ ^
./ipfw/ipfwrdr.c:196:15: error: no member named 'fw_dst' in 'struct ip_fw'
memcpy(&rule.fw_dst, &rule.fw_out_if.fu_via_ip, sizeof(struct in_addr));
~~~~ ^
./ipfw/ipfwrdr.c:196:30: error: no member named 'fw_out_if' in 'struct ip_fw'
memcpy(&rule.fw_dst, &rule.fw_out_if.fu_via_ip, sizeof(struct in_addr));
~~~~ ^
./ipfw/ipfwrdr.c:197:15: error: no member named 'fw_fwd_ip' in 'struct ip_fw'
memcpy(&rule.fw_fwd_ip.sin_addr, &rule.fw_out_if.fu_via_ip, sizeof(struct in_addr));
~~~~ ^
./ipfw/ipfwrdr.c:197:41: error: no member named 'fw_out_if' in 'struct ip_fw'
memcpy(&rule.fw_fwd_ip.sin_addr, &rule.fw_out_if.fu_via_ip, sizeof(struct in_addr));
~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1
Stop.
The text was updated successfully, but these errors were encountered:
to make it short : IPFW was added and use the API of the OS X version of IPFW.
FreeBSD never included this API, so it looks like your only option is to switch to pf ...
12.2-RELEASE-p4 FreeBSD 12.2-RELEASE-p4 GENERIC amd64
make -f Makefile.bsd
cc -I. -DMINIUPNPD_GIT_REF="master-9df2f43" -O2 -pipe -Wall -W -Wstrict-prototypes -fno-common -c -o ipfwrdr.o ./ipfw/ipfwrdr.c
./ipfw/ipfwrdr.c:176:7: error: no member named 'version' in 'struct ip_fw'
rule.version = IP_FW_CURRENT_API_VERSION;
~~~~ ^
./ipfw/ipfwrdr.c:176:17: error: use of undeclared identifier 'IP_FW_CURRENT_API_VERSION'
rule.version = IP_FW_CURRENT_API_VERSION;
^
./ipfw/ipfwrdr.c:181:7: error: no member named 'fw_prot' in 'struct ip_fw'
rule.fw_prot = proto; /* protocol /
~~~~ ^
./ipfw/ipfwrdr.c:182:7: error: no member named 'fw_flg' in 'struct ip_fw'
rule.fw_flg |= IP_FW_F_IIFACE; / interfaces to check /
~~~~ ^
./ipfw/ipfwrdr.c:182:17: error: use of undeclared identifier 'IP_FW_F_IIFACE'
rule.fw_flg |= IP_FW_F_IIFACE; / interfaces to check /
^
./ipfw/ipfwrdr.c:183:7: error: no member named 'fw_flg' in 'struct ip_fw'
rule.fw_flg |= IP_FW_F_IIFNAME; / interfaces to check by name /
~~~~ ^
./ipfw/ipfwrdr.c:183:17: error: use of undeclared identifier 'IP_FW_F_IIFNAME'
rule.fw_flg |= IP_FW_F_IIFNAME; / interfaces to check by name /
^
./ipfw/ipfwrdr.c:184:7: error: no member named 'fw_flg' in 'struct ip_fw'
rule.fw_flg |= (IP_FW_F_IN | IP_FW_F_OUT); / packet direction /
~~~~ ^
./ipfw/ipfwrdr.c:184:18: error: use of undeclared identifier 'IP_FW_F_IN'
rule.fw_flg |= (IP_FW_F_IN | IP_FW_F_OUT); / packet direction /
^
./ipfw/ipfwrdr.c:184:31: error: use of undeclared identifier 'IP_FW_F_OUT'
rule.fw_flg |= (IP_FW_F_IN | IP_FW_F_OUT); / packet direction /
^
./ipfw/ipfwrdr.c:185:7: error: no member named 'fw_flg' in 'struct ip_fw'
rule.fw_flg |= IP_FW_F_FWD; / forward action /
~~~~ ^
./ipfw/ipfwrdr.c:185:17: error: use of undeclared identifier 'IP_FW_F_FWD'
rule.fw_flg |= IP_FW_F_FWD; / forward action /
^
./ipfw/ipfwrdr.c:188:16: error: no member named 'fw_in_if' in 'struct ip_fw'
strlcpy(rule.fw_in_if.fu_via_if.name, ifname, IFNAMSIZ); / src interface */
~~~~ ^
./ipfw/ipfwrdr.c:189:8: error: no member named 'fw_in_if' in 'struct ip_fw'
rule.fw_in_if.fu_via_if.unit = -1;
~~~~ ^
./ipfw/ipfwrdr.c:192:29: error: no member named 'fw_out_if' in 'struct ip_fw'
if (inet_aton(iaddr, &rule.fw_out_if.fu_via_ip) == 0) {
~~~~ ^
./ipfw/ipfwrdr.c:196:15: error: no member named 'fw_dst' in 'struct ip_fw'
memcpy(&rule.fw_dst, &rule.fw_out_if.fu_via_ip, sizeof(struct in_addr));
~~~~ ^
./ipfw/ipfwrdr.c:196:30: error: no member named 'fw_out_if' in 'struct ip_fw'
memcpy(&rule.fw_dst, &rule.fw_out_if.fu_via_ip, sizeof(struct in_addr));
~~~~ ^
./ipfw/ipfwrdr.c:197:15: error: no member named 'fw_fwd_ip' in 'struct ip_fw'
memcpy(&rule.fw_fwd_ip.sin_addr, &rule.fw_out_if.fu_via_ip, sizeof(struct in_addr));
~~~~ ^
./ipfw/ipfwrdr.c:197:41: error: no member named 'fw_out_if' in 'struct ip_fw'
memcpy(&rule.fw_fwd_ip.sin_addr, &rule.fw_out_if.fu_via_ip, sizeof(struct in_addr));
~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1
Stop.
The text was updated successfully, but these errors were encountered: