Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken FreeBSD ipfw build #596

Open
crazedr0m opened this issue Jan 30, 2022 · 4 comments
Open

broken FreeBSD ipfw build #596

crazedr0m opened this issue Jan 30, 2022 · 4 comments
Labels

Comments

@crazedr0m
Copy link

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.

@miniupnp
Copy link
Owner

I'm not sure if anyone use the IPFW backend these days.

@miniupnp
Copy link
Owner

@miniupnp
Copy link
Owner

@miniupnp miniupnp added BSD BSD Rocks :=) ipfw labels Feb 19, 2022
@miniupnp
Copy link
Owner

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 ...

@miniupnp miniupnp self-assigned this Feb 19, 2022
@miniupnp miniupnp removed their assignment Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants