FreeBSD Bugzilla – Attachment 202163 Details for
Bug 235864
net/ndproxy: Update to 3.2 (Fixes API changes to pfil hooks in CURRENT)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
net/ndproxy port contents
ndproxy-v3.2.shar (text/plain), 6.00 KB, created by
Alexandre Fenyo
on 2019-02-19 17:42:44 UTC
(
hide
)
Description:
net/ndproxy port contents
Filename:
MIME Type:
Creator:
Alexandre Fenyo
Created:
2019-02-19 17:42:44 UTC
Size:
6.00 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># . ># ./ndproxy ># ./ndproxy/pkg-descr ># ./ndproxy/files ># ./ndproxy/files/ndproxy.in ># ./ndproxy/files/pkg-message.in ># ./ndproxy/distinfo ># ./ndproxy/Makefile ># >echo c - . >mkdir -p . > /dev/null 2>&1 >echo c - ./ndproxy >mkdir -p ./ndproxy > /dev/null 2>&1 >echo x - ./ndproxy/pkg-descr >sed 's/^X//' >./ndproxy/pkg-descr << '2ecb2f96fe45f486b83ab9ec2a1101d9' >XThe ndproxy(4) kernel module implements IPv6 Neighbor Discovery >Xproxying with many options to handle several use-cases. >X >XIt replies to a neighbor solicitation with a specific neighbor >Xadvertisement, in order to let the PE uplink router send further >Xpackets to a CPE downlink router, that may or may not be the same >Xnode that the one which runs ndproxy. >X >XThe main difference with the ndp(8) command-line tool is that, with >Xndproxy(4), the host running ndp can be used only to redirect >Xpackets to another IPv6 internal router, for instance a dedicated >Xone with hardware support of IPv6 routing processes. >X >XWWW: http://www.fenyo.net/newweb/ndproxy.html >2ecb2f96fe45f486b83ab9ec2a1101d9 >echo c - ./ndproxy/files >mkdir -p ./ndproxy/files > /dev/null 2>&1 >echo x - ./ndproxy/files/ndproxy.in >sed 's/^X//' >./ndproxy/files/ndproxy.in << 'f734405c34ad3e8cd129bc409dba1a6f' >X#!/bin/sh >X# >X# $FreeBSD$ >X# >X >X# PROVIDE: ndproxy >X# REQUIRE: NETWORKING sysctl >X# KEYWORD: nojail >X >X. /etc/rc.subr >X >Xname="ndproxy" >Xrcvar=ndproxy_enable >Xstart_cmd="ndproxy_start" >Xstop_cmd="ndproxy_stop" >X >Xndproxy_start() >X{ >X echo "Starting ndproxy:" >X sysctl net.inet6.ndproxyconf_uplink_interface > /dev/null 2>&1 >X if [ $? -eq 1 ]; then >X kldload ndproxy > /dev/null 2>&1 >X if [ $? -eq 1 ]; then >X echo Failure loading ndproxy. >X return; >X fi >X fi >X >X sysctl net.inet6.ndproxycount=0 >X >X sysctl net.inet6.ndproxyconf_uplink_interface=${ndproxy_uplink_interface} >X sysctl net.inet6.ndproxyconf_downlink_mac_address=${ndproxy_downlink_mac_address} >X sysctl net.inet6.ndproxyconf_exception_ipv6_addresses=${ndproxy_exception_ipv6_addresses} >X sysctl net.inet6.ndproxyconf_uplink_ipv6_addresses=${ndproxy_uplink_ipv6_addresses} >X >X if [ -z "${ndproxy_uplink_interface}" ]; then >X echo "Warning: ndproxy_uplink_interface should be defined in rc.conf (see ndproxy(4))." >X fi >X >X if [ -z "${ndproxy_downlink_mac_address}" ]; then >X echo "Warning: ndproxy_downlink_mac_address should be defined in rc.conf (see ndproxy(4))." >X fi >X >X if [ -z "${ndproxy_uplink_ipv6_addresses}" ]; then >X echo "Warning: ndproxy_uplink_ipv6_addresses should be defined in rc.conf (see ndproxy(4))." >X fi >X >X # Note that ndproxy_exception_ipv6_addresses may be left empty. >X >X if [ -n "${ndproxy_uplink_interface}" ]; then >X ifconfig ${ndproxy_uplink_interface} | head -1 | grep PPROMISC > /dev/null >X if [ $? -eq 1 ]; then >X echo "Putting interface ${ndproxy_uplink_interface} into permanently promiscuous mode." >X ifconfig ${ndproxy_uplink_interface} promisc >X fi >X fi >X >X echo Done. >X} >X >Xndproxy_stop() >X{ >X echo "Stopping ndproxy:" >X >X sysctl net.inet6.ndproxyconf_uplink_interface > /dev/null 2>&1 >X if [ $? -eq 1 ]; then >X echo Failure unloading ndproxy. >X else >X kldunload ndproxy > /dev/null 2>&1 >X if [ $? -eq 1 ]; then >X echo Failure unloading ndproxy. >X else >X echo Done. >X fi >X fi >X} >X >Xload_rc_config $name >Xrun_rc_command "$1" >f734405c34ad3e8cd129bc409dba1a6f >echo x - ./ndproxy/files/pkg-message.in >sed 's/^X//' >./ndproxy/files/pkg-message.in << '075c0a3d9082ae3192f2fb4f54a957db' >X------------------------------------------------------------------------------- >XIMPORTANT! MAKE SURE TO READ THE FOLLOWING! >X >XPlease remember to reinstall this port after kernel source update. >X >Xndproxy is configured using four sysctl kernel states. The boot script >X(%%PREFIX%%/etc/rc.d/ndproxy) can set those states using rc.conf variables. >X >XHere is the corresponding rc.conf variable to each sysctl kernel state: >X >Xsysctl kernel state rc.conf corresponding variable >X------------------------------------------------------------------------------- >Xnet.inet6.ndproxyconf_uplink_interface ndproxy_uplink_interface >Xnet.inet6.ndproxyconf_downlink_mac_address ndproxy_downlink_mac_address >Xnet.inet6.ndproxyconf_exception_ipv6_addresses ndproxy_exception_ipv6_addresses >Xnet.inet6.ndproxyconf_uplink_ipv6_addresses ndproxy_uplink_ipv6_addresses >X >XThe network interface set in ndproxy_uplink_interface will be put into >Xpermanently promiscuous mode. >X >XIMPORTANT! MAKE SURE TO READ THE ABOVE! >X------------------------------------------------------------------------------- >075c0a3d9082ae3192f2fb4f54a957db >echo x - ./ndproxy/distinfo >sed 's/^X//' >./ndproxy/distinfo << '7ac88d4d6bf90f1074f2aa226f67cf5d' >XTIMESTAMP = 1550596032 >XSHA256 (AlexandreFenyo-ndproxy-3.2-v3.2_GH0.tar.gz) = 8ea72bb12b26bb1ca4df31bc1bd86b3eea52d42fe2d014d890a1a067721c63dd >XSIZE (AlexandreFenyo-ndproxy-3.2-v3.2_GH0.tar.gz) = 10172863 >7ac88d4d6bf90f1074f2aa226f67cf5d >echo x - ./ndproxy/Makefile >sed 's/^X//' >./ndproxy/Makefile << '0534f86d41852189c3f6542d8f39fe95' >X# $FreeBSD$ >X >XPORTNAME= ndproxy >XPORTVERSION= 3.2 >XCATEGORIES= net >X >XMAINTAINER= fbsd.bugzilla@fenyo.net >XCOMMENT= Implementation of IPv6 Neighbor Discovery proxy >X >XLICENSE= BSD2CLAUSE >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XUSES= kmod >X >XSUB_FILES= pkg-message >X >XUSE_RC_SUBR= ndproxy >XUSE_GITHUB= yes >XGH_ACCOUNT= AlexandreFenyo >XGH_TAGNAME= v${PORTVERSION} >X >X# build for a kernel with 'options VIMAGE' >XCFLAGS+= -DVIMAGE >X >XPLIST_FILES= ${KMODDIR}/${PORTNAME}.ko man/man4/${PORTNAME}.4.gz >X >Xpre-build: >X (cd ${BUILD_WRKSRC}; ${MAKE} depend) >X >Xdo-install: >X ${INSTALL_KLD} ${WRKSRC}/${PORTNAME}.ko ${STAGEDIR}${KMODDIR} >X ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.4 ${STAGEDIR}${PREFIX}/man/man4/ >X >X.include <bsd.port.mk> >0534f86d41852189c3f6542d8f39fe95 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 235864
:
202163
|
202164
|
202165
|
202166
|
202167
|
203128