summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2003-12-02 18:33:36 +0000
committerbrooks <brooks@FreeBSD.org>2003-12-02 18:33:36 +0000
commit5c7716ee9f4ed7ba7c955018af89b14eabce5792 (patch)
tree3081fe5c41a6f61ceabf18c96458cb7e1c636138 /contrib
parent7de7c1cd282b37eafab8eac976278dac6006e203 (diff)
parent244f07541460d6bd022a1eea60585315231e9e1c (diff)
downloadFreeBSD-src-5c7716ee9f4ed7ba7c955018af89b14eabce5792.zip
FreeBSD-src-5c7716ee9f4ed7ba7c955018af89b14eabce5792.tar.gz
This commit was generated by cvs2svn to compensate for changes in r123109,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ipfilter/ipt.c6
-rw-r--r--contrib/ipfilter/kmem.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/contrib/ipfilter/ipt.c b/contrib/ipfilter/ipt.c
index 48f35cf..d33a38d 100644
--- a/contrib/ipfilter/ipt.c
+++ b/contrib/ipfilter/ipt.c
@@ -443,7 +443,8 @@ char *getifname(ptr)
void *ptr;
{
#if defined(NetBSD) && (NetBSD >= 199905) && (NetBSD < 1991011) || \
- defined(__OpenBSD__)
+ defined(__OpenBSD__) || \
+ (defined(__FreeBSD__) && (__FreeBSD_version >= 501113))
#else
char buf[32], *s;
int len;
@@ -458,7 +459,8 @@ void *ptr;
if (kmemcpy((char *)&netif, (u_long)ptr, sizeof(netif)) == -1)
return "X";
#if defined(NetBSD) && (NetBSD >= 199905) && (NetBSD < 1991011) || \
- defined(__OpenBSD__)
+ defined(__OpenBSD__) || \
+ (defined(__FreeBSD__) && (__FreeBSD_version >= 501113))
return strdup(netif.if_xname);
#else
if (kmemcpy(buf, (u_long)netif.if_name, sizeof(buf)) == -1)
diff --git a/contrib/ipfilter/kmem.c b/contrib/ipfilter/kmem.c
index 17622cd..470d257 100644
--- a/contrib/ipfilter/kmem.c
+++ b/contrib/ipfilter/kmem.c
@@ -204,7 +204,8 @@ void *ptr;
return ifname;
#else
# if defined(NetBSD) && (NetBSD >= 199905) && (NetBSD < 1991011) || \
- defined(__OpenBSD__)
+ defined(__OpenBSD__) || \
+ (defined(__FreeBSD__) && (__FreeBSD_version >= 501113))
#else
char buf[32];
int len;
@@ -219,7 +220,8 @@ void *ptr;
if (kmemcpy((char *)&netif, (u_long)ptr, sizeof(netif)) == -1)
return "X";
# if defined(NetBSD) && (NetBSD >= 199905) && (NetBSD < 1991011) || \
- defined(__OpenBSD__)
+ defined(__OpenBSD__) || \
+ (defined(__FreeBSD__) && (__FreeBSD_version >= 501113))
return strdup(netif.if_xname);
# else
if (kstrncpy(buf, (u_long)netif.if_name, sizeof(buf)) == -1)
OpenPOWER on IntegriCloud