pkgsrc-wip/openbgpd/patches/patch-al
George Michaelson 8a52299111 This is a port of the FreeBSD port of OpenBGPD. -It may not have the full
functionality due to the non-availability of some kernel-level functions such
as the pfkey MD5 

the FreeBSD descr file is appended below.

-George

--

OpenBGPD is a FREE implementation of the Border Gateway Protocol, Version 4.
It allows ordinary machines to be used as routers exchanging routes with
other systems speaking the BGP protocol.

WWW: http://www.openbgp.org/

- Florent Thoumie
flz@xbsd.org
2007-01-12 04:28:34 +00:00

38 lines
941 B
Text

--- bgpd/hash.h.orig 2007-01-11 13:56:08.000000000 +1000
+++ bgpd/hash.h 2007-01-11 13:57:51.000000000 +1000
@@ -93,7 +93,7 @@
* namei() hashing of path name parts.
*/
static __inline uint32_t
-hash32_stre(const void *buf, int end, char **ep, uint32_t hash)
+hash32_stre(const void *buf, int end, const char **ep, uint32_t hash)
{
const unsigned char *p = buf;
@@ -101,7 +101,7 @@
hash = HASHSTEP(hash, *p++);
if (ep)
- *ep = (char *)p;
+ *ep = (const char *)p;
return hash;
}
@@ -112,7 +112,7 @@
* as a helper for the namei() hashing of path name parts.
*/
static __inline uint32_t
-hash32_strne(const void *buf, size_t len, int end, char **ep, uint32_t hash)
+hash32_strne(const void *buf, size_t len, int end, const char **ep, uint32_t hash)
{
const unsigned char *p = buf;
@@ -120,7 +120,7 @@
hash = HASHSTEP(hash, *p++);
if (ep)
- *ep = (char *)p;
+ *ep = (const char *)p;
return hash;
}