Certain internet service providers transmit vlan 0 priority tagged EAPOL frames from the ONT towards the residential gateway. VID 0 should be ignored, and the frame processed according to the priority set in the 802.1P bits and the encapsulated EtherType (i.e. EAPOL). The pcap filter utilized by l2_packet is inadquate for this use case. Here we modify the pcap filter to accept both unencapsulated and encapsulated (with VLAN 0) EAPOL EtherTypes. This preserves the original filter behavior while also matching on encapsulated EAPOL. Sponsored by: Rubicon Communications, LLC ("Netgate") Reviewed by: cy Obtained from: src bb5d6d14d81b PR: 273696 MFH: 2023Q3
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
PORTNAME= hostapd
|
|
PORTVERSION= ${COMMIT_DATE}
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
MAINTAINER= cy@FreeBSD.org
|
|
COMMENT= IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
|
|
WWW= https://w1.fi/hostapd/
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cschuber
|
|
GH_PROJECT= hostap
|
|
GH_TAGNAME= b46c4b9a9
|
|
COMMIT_DATE= 2023.09.05
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USES= cpe gmake ssl
|
|
CPE_VENDOR= w1.fi
|
|
BUILD_WRKSRC= ${WRKSRC}/hostapd
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
|
|
PLIST_FILES= sbin/hostapd sbin/hostapd_cli man/man1/hostapd_cli.1.gz \
|
|
man/man8/hostapd.8.gz
|
|
.if !exists(/etc/rc.d/hostapd)
|
|
USE_RC_SUBR= hostapd
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|@$$(E) " CC " $$<|@$$(E) " $$(CC) " $$<|' \
|
|
${BUILD_WRKSRC}/Makefile
|
|
@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/config \
|
|
>> ${WRKSRC}/hostapd/.config
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hostapd/hostapd ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hostapd/hostapd_cli \
|
|
${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/hostapd/hostapd_cli.1 \
|
|
${STAGEDIR}${MANPREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/hostapd/hostapd.8 \
|
|
${STAGEDIR}${MANPREFIX}/man/man8
|
|
|
|
.include <bsd.port.mk>
|