port for zebra 0.83, from KAME
This commit is contained in:
parent
0c1483d59a
commit
33d60fa1fa
19
net/zebra/Makefile
Normal file
19
net/zebra/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2000/01/08 14:01:53 itojun Exp $
|
||||
# KAME Id: Makefile,v 1.5 1999/09/13 16:27:41 itojun Exp
|
||||
|
||||
DISTNAME= zebra-0.83
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
|
||||
# you might need debugging, it's a developer release !
|
||||
#CFLAGS+= -g
|
||||
|
||||
MAINTAINER= itojun@itojun.org
|
||||
HOMEPAGE= http://www.zebra.org/
|
||||
|
||||
BROKEN= "cannot recognize libinet6.a"
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
#CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra
|
||||
#CONFIGURE_ARGS+=--disable-ospf6d
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/zebra/files/md5
Normal file
3
net/zebra/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (zebra-0.83.tar.gz) = b1cc79002489d78842005a83b319e5df
|
||||
RMD160 (zebra-0.83.tar.gz) = 5b5148d351aa7c191ff9d916084aa9023766edb6
|
||||
SHA1 (zebra-0.83.tar.gz) = 8205680c0f8126332ce62d4e2a37bce38a7003b3
|
86
net/zebra/patches/patch-aa
Normal file
86
net/zebra/patches/patch-aa
Normal file
@ -0,0 +1,86 @@
|
||||
$NetBSD$
|
||||
|
||||
Index: ospf6d/ospf6_network.c
|
||||
===================================================================
|
||||
RCS file: /cvsroot/zebra/ospf6d/ospf6_network.c,v
|
||||
retrieving revision 1.40
|
||||
diff -c -r1.40 ospf6_network.c
|
||||
*** ospf6d/ospf6_network.c 1999/09/10 22:36:00 1.40
|
||||
--- ospf6d/ospf6_network.c 1999/09/13 16:20:01
|
||||
***************
|
||||
*** 347,366 ****
|
||||
zlog_warn ("*** can't leave AllDRouters6 on ifindex %d", ifindex);
|
||||
}
|
||||
|
||||
- #ifndef s6_addr32
|
||||
- #define s6_addr32 u6_addr.u6_addr32
|
||||
- #define s6_addr16 u6_addr.u6_addr16
|
||||
- #define s6_addr8 u6_addr.u6_addr8
|
||||
- #define s6_addr u6_addr.u6_addr8
|
||||
- #endif
|
||||
-
|
||||
void
|
||||
ospf6_ipv4_encode_ipv6 (struct in_addr *in4, struct in6_addr *in6)
|
||||
{
|
||||
/* IPv4 address to IPv4 Mapped Address */
|
||||
memset (in6, 0, sizeof (struct in6_addr));
|
||||
! in6->s6_addr16[5] = 0xffff;
|
||||
! in6->s6_addr32[3] = in4->s_addr;
|
||||
}
|
||||
|
||||
void
|
||||
--- 347,360 ----
|
||||
zlog_warn ("*** can't leave AllDRouters6 on ifindex %d", ifindex);
|
||||
}
|
||||
|
||||
void
|
||||
ospf6_ipv4_encode_ipv6 (struct in_addr *in4, struct in6_addr *in6)
|
||||
{
|
||||
/* IPv4 address to IPv4 Mapped Address */
|
||||
memset (in6, 0, sizeof (struct in6_addr));
|
||||
! in6->s6_addr[10] = 0xff;
|
||||
! in6->s6_addr[11] = 0xff;
|
||||
! memcpy(&in6->s6_addr[12], in4, sizeof(*in4));
|
||||
}
|
||||
|
||||
void
|
||||
***************
|
||||
*** 371,377 ****
|
||||
|
||||
/* IPv4 Mapped Address to IPv4 address*/
|
||||
! memset (in4, 0, sizeof (struct in_addr));
|
||||
! in4->s_addr = in6->s6_addr32[3];
|
||||
}
|
||||
|
||||
int
|
||||
--- 365,371 ----
|
||||
|
||||
/* IPv4 Mapped Address to IPv4 address*/
|
||||
! memset (in6, 0, sizeof (struct in6_addr));
|
||||
! memcpy(&in6->s6_addr[12], in4, sizeof(*in4));
|
||||
}
|
||||
|
||||
int
|
||||
Index: ospf6d/ospf6d.h
|
||||
===================================================================
|
||||
RCS file: /cvsroot/zebra/ospf6d/ospf6d.h,v
|
||||
retrieving revision 1.36
|
||||
diff -c -r1.36 ospf6d.h
|
||||
*** ospf6d/ospf6d.h 1999/09/08 08:58:59 1.36
|
||||
--- ospf6d/ospf6d.h 1999/09/13 16:20:01
|
||||
***************
|
||||
*** 116,128 ****
|
||||
#endif
|
||||
|
||||
|
||||
- #ifndef s6_addr32
|
||||
- #define s6_addr32 u6_addr.u6_addr32
|
||||
- #define s6_addr16 u6_addr.u6_addr16
|
||||
- #define s6_addr8 u6_addr.u6_addr8
|
||||
- #define s6_addr u6_addr.u6_addr8
|
||||
- #endif
|
||||
-
|
||||
/* Command Description */
|
||||
#define V4NOTATION_STR "specify by IPv4 address notation(e.g. 0.0.0.0)\n"
|
||||
#define OSPF6_NUMBER_STR "Specify by number\n"
|
||||
--- 116,121 ----
|
26
net/zebra/patches/patch-ba
Normal file
26
net/zebra/patches/patch-ba
Normal file
@ -0,0 +1,26 @@
|
||||
--- configure.in- Fri Oct 8 08:48:31 1999
|
||||
+++ configure.in Fri Oct 8 08:48:53 1999
|
||||
@@ -249,10 +249,10 @@
|
||||
AC_MSG_RESULT(netlink)
|
||||
IF_METHOD=if_netlink.o
|
||||
else
|
||||
- if test "$opsys" = "openbsd";then
|
||||
- AC_MSG_RESULT(ioctl)
|
||||
- IF_METHOD=if_ioctl.o
|
||||
- else
|
||||
+# if test "$opsys" = "openbsd";then
|
||||
+# AC_MSG_RESULT(ioctl)
|
||||
+# IF_METHOD=if_ioctl.o
|
||||
+# else
|
||||
if grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
|
||||
AC_MSG_RESULT(sysctl)
|
||||
IF_METHOD=if_sysctl.o
|
||||
@@ -260,7 +260,7 @@
|
||||
AC_MSG_RESULT(ioctl)
|
||||
IF_METHOD=if_ioctl.o
|
||||
fi
|
||||
- fi
|
||||
+# fi
|
||||
fi
|
||||
AC_SUBST(IF_METHOD)
|
||||
|
26
net/zebra/patches/patch-bb
Normal file
26
net/zebra/patches/patch-bb
Normal file
@ -0,0 +1,26 @@
|
||||
--- configure- Fri Oct 8 08:48:23 1999
|
||||
+++ configure Fri Oct 8 08:49:05 1999
|
||||
@@ -2283,10 +2283,10 @@
|
||||
echo "$ac_t""netlink" 1>&6
|
||||
IF_METHOD=if_netlink.o
|
||||
else
|
||||
- if test "$opsys" = "openbsd";then
|
||||
- echo "$ac_t""ioctl" 1>&6
|
||||
- IF_METHOD=if_ioctl.o
|
||||
- else
|
||||
+# if test "$opsys" = "openbsd";then
|
||||
+# echo "$ac_t""ioctl" 1>&6
|
||||
+# IF_METHOD=if_ioctl.o
|
||||
+# else
|
||||
if grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
|
||||
echo "$ac_t""sysctl" 1>&6
|
||||
IF_METHOD=if_sysctl.o
|
||||
@@ -2294,7 +2294,7 @@
|
||||
echo "$ac_t""ioctl" 1>&6
|
||||
IF_METHOD=if_ioctl.o
|
||||
fi
|
||||
- fi
|
||||
+# fi
|
||||
fi
|
||||
|
||||
|
1
net/zebra/pkg/COMMENT
Normal file
1
net/zebra/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
Free multithreaded routing daemon software
|
17
net/zebra/pkg/DESCR
Normal file
17
net/zebra/pkg/DESCR
Normal file
@ -0,0 +1,17 @@
|
||||
GNU Zebra is a free software (distributed under GNU Generic Public
|
||||
License) which manages TCP/IP based routing protocols.
|
||||
|
||||
It supports BGP-4 protocol as described in RFC1771 (A Border Gateway
|
||||
Protocol 4) and RIPv1, RIPv2 and OSPFv2.
|
||||
|
||||
Zebra uses multithread technology under multithread supported UNIX
|
||||
kernels. However it can be run under not-multithread supported
|
||||
UNIX kernels.
|
||||
|
||||
Zebra is intended to be used as a Route Server and a Route Reflector.
|
||||
Zebra is not a toolkit, it provides full routing power under a new
|
||||
architecture.
|
||||
|
||||
Homepage:
|
||||
|
||||
http://www.zebra.org/
|
18
net/zebra/pkg/PLIST
Normal file
18
net/zebra/pkg/PLIST
Normal file
@ -0,0 +1,18 @@
|
||||
@comment $NetBSD$
|
||||
sbin/bgpd
|
||||
sbin/client
|
||||
sbin/ospfd
|
||||
sbin/ospf6d
|
||||
sbin/ripd
|
||||
sbin/ripngd
|
||||
sbin/zebra
|
||||
@comment etc/zebra/bgpd.conf.sample
|
||||
@comment etc/zebra/ripd.conf.sample
|
||||
@comment etc/zebra/ripngd.conf.sample
|
||||
@comment etc/zebra/zebra.conf.sample
|
||||
@comment etc/zebra/ospfd.conf.sample
|
||||
@comment etc/zebra/ospf6d.conf.sample
|
||||
@unexec install-info --delete %D/info/zebra.info %D/info/dir
|
||||
info/zebra.info
|
||||
@exec install-info %D/info/zebra.info %D/info/dir
|
||||
@comment @dirrm etc/zebra
|
Loading…
Reference in New Issue
Block a user