summaryrefslogtreecommitdiffstats
path: root/sys/netatm
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-04-21 01:41:05 +0000
committerarr <arr@FreeBSD.org>2002-04-21 01:41:05 +0000
commitab6fdd245b7105f237c28d1ef4105422a65b8ec1 (patch)
tree561c7b3bfe7901c0c84e088740e10a21d9fb43ec /sys/netatm
parent3881ce8d9cdfa95c64777d7ca9506a825dfdd6a3 (diff)
downloadFreeBSD-src-ab6fdd245b7105f237c28d1ef4105422a65b8ec1.zip
FreeBSD-src-ab6fdd245b7105f237c28d1ef4105422a65b8ec1.tar.gz
- Nuke some more not needed #ifdef cruft.
Diffstat (limited to 'sys/netatm')
-rw-r--r--sys/netatm/atm.h4
-rw-r--r--sys/netatm/atm_aal5.c7
-rw-r--r--sys/netatm/atm_if.c19
-rw-r--r--sys/netatm/atm_proto.c8
-rw-r--r--sys/netatm/atm_usrreq.c2
-rw-r--r--sys/netatm/atm_var.h21
-rw-r--r--sys/netatm/ipatm/ipatm_if.c4
-rw-r--r--sys/netatm/ipatm/ipatm_input.c49
-rw-r--r--sys/netatm/ipatm/ipatm_output.c7
-rw-r--r--sys/netatm/ipatm/ipatm_usrreq.c8
-rw-r--r--sys/netatm/ipatm/ipatm_vcm.c4
-rw-r--r--sys/netatm/port.h178
-rw-r--r--sys/netatm/spans/spans_arp.c4
-rw-r--r--sys/netatm/uni/uniarp_cache.c4
14 files changed, 0 insertions, 319 deletions
diff --git a/sys/netatm/atm.h b/sys/netatm/atm.h
index 6b36ef5..c92312e 100644
--- a/sys/netatm/atm.h
+++ b/sys/netatm/atm.h
@@ -235,12 +235,8 @@ struct t_atm_sap {
* ATM socket address
*/
struct sockaddr_atm { /* XNS_EXT */
-#if (defined(BSD) && (BSD >= 199103))
u_char satm_len; /* Length of socket structure */
u_char satm_family; /* Address family */
-#else
- u_short satm_family; /* Address family */
-#endif
struct t_atm_sap satm_addr; /* Protocol address */
};
diff --git a/sys/netatm/atm_aal5.c b/sys/netatm/atm_aal5.c
index 74a622a..2eefd07 100644
--- a/sys/netatm/atm_aal5.c
+++ b/sys/netatm/atm_aal5.c
@@ -92,7 +92,6 @@ static void atm_aal5_cpcs_data(void *, KBuffer *);
static caddr_t atm_aal5_getname(void *);
-#if (defined(__FreeBSD__) && (BSD >= 199506))
/*
* New-style socket request routines
*/
@@ -118,8 +117,6 @@ struct pr_usrreqs atm_aal5_usrreqs = {
soreceive, /* pru_soreceive */
sopoll /* pru_sopoll */
};
-#endif
-
/*
* Local variables
@@ -723,11 +720,7 @@ atm_aal5_incoming(tok, cop, ap, tokp)
* and it will allocate and setup most of the pcb.
*/
atm_sock_stat.as_inconn[atp0->atp_type]++;
-#if (defined(BSD) && (BSD >= 199103))
so = sonewconn(atp0->atp_socket, 0);
-#else
- so = sonewconn(atp0->atp_socket);
-#endif
if (so) {
/*
diff --git a/sys/netatm/atm_if.c b/sys/netatm/atm_if.c
index a465a35..4f1b6a9 100644
--- a/sys/netatm/atm_if.c
+++ b/sys/netatm/atm_if.c
@@ -65,17 +65,11 @@ __RCSID("@(#) $FreeBSD$");
#endif
-#if (defined(BSD) && (BSD < 199506))
-extern int ifqmaxlen;
-#endif
-
/*
* Local functions
*/
static int atm_physif_ioctl(int, caddr_t, caddr_t);
-#if (defined(BSD) && (BSD >= 199306))
static int atm_netif_rtdel(struct radix_node *, void *);
-#endif
static int atm_if_ioctl(struct ifnet *, u_long, caddr_t);
static int atm_ifparse(char *, char *, int, int *);
@@ -319,11 +313,9 @@ atm_physif_ioctl(code, data, arg)
int count, len, buf_len = aip->air_buf_len;
int err = 0;
char ifname[2*IFNAMSIZ];
-#if (defined(BSD) && (BSD >= 199103))
struct ifaddr *ifa;
struct in_ifaddr *ia;
struct sockaddr_dl *sdl;
-#endif
switch ( aip->air_opcode ) {
@@ -527,7 +519,6 @@ atm_physif_ioctl(code, data, arg)
ifp->if_output = atm_ifoutput;
ifp->if_ioctl = atm_if_ioctl;
ifp->if_snd.ifq_maxlen = ifqmaxlen;
-#if (defined(BSD) && (BSD >= 199103))
/*
* Set if_type and if_baudrate
*/
@@ -548,8 +539,6 @@ atm_physif_ioctl(code, data, arg)
ifp->if_baudrate = 9600;
break;
}
-#endif
-
if ((err = atm_nif_attach(nip)) != 0) {
atm_free ( (caddr_t)nip );
@@ -559,7 +548,6 @@ atm_physif_ioctl(code, data, arg)
atm_physif_freenifs(pip);
break;
}
-#if (defined(BSD) && (BSD >= 199103))
/*
* Set macaddr in <Link> address
*/
@@ -573,7 +561,6 @@ atm_physif_ioctl(code, data, arg)
bcopy ( (caddr_t)&cup->cu_config.ac_macaddr,
LLADDR(sdl), ifp->if_addrlen );
}
-#endif
}
break;
@@ -1005,17 +992,11 @@ atm_nif_setaddr(nip, ifa)
*
*/
int
-#if (defined(BSD) && (BSD >= 199103))
atm_ifoutput(ifp, m, dst, rt)
-#else
-atm_ifoutput(ifp, m, dst)
-#endif
struct ifnet *ifp;
KBuffer *m;
struct sockaddr *dst;
-#if (defined(BSD) && (BSD >= 199103))
struct rtentry *rt;
-#endif
{
u_short fam = dst->sa_family;
int (*func)(struct ifnet *, KBuffer *,
diff --git a/sys/netatm/atm_proto.c b/sys/netatm/atm_proto.c
index 6de7a83..79a70cc 100644
--- a/sys/netatm/atm_proto.c
+++ b/sys/netatm/atm_proto.c
@@ -112,11 +112,7 @@ struct protosw atmsw[] = {
struct domain atmdomain = {
AF_ATM,
"atm",
-#if defined(__FreeBSD__)
atm_initialize,
-#else
- 0,
-#endif
0,
0,
atmsw,
@@ -126,7 +122,6 @@ struct domain atmdomain = {
DOMAIN_SET(atm);
-#if (defined(__FreeBSD__) && (BSD >= 199506))
/*
* Protocol request not supported
*
@@ -213,6 +208,3 @@ atm_proto_notsupp4(so, i, m, addr, m2, td)
{
return (EOPNOTSUPP);
}
-
-#endif /* (defined(__FreeBSD__) && (BSD >= 199506)) */
-
diff --git a/sys/netatm/atm_usrreq.c b/sys/netatm/atm_usrreq.c
index 059a2da..4abc66b 100644
--- a/sys/netatm/atm_usrreq.c
+++ b/sys/netatm/atm_usrreq.c
@@ -71,7 +71,6 @@ static int atm_dgram_info(caddr_t);
/*
* New-style socket request routines
*/
-#if (defined(__FreeBSD__) && (BSD >= 199506))
struct pr_usrreqs atm_dgram_usrreqs = {
atm_proto_notsupp1, /* pru_abort */
pru_accept_notsupp, /* pru_accept */
@@ -91,7 +90,6 @@ struct pr_usrreqs atm_dgram_usrreqs = {
atm_proto_notsupp1, /* pru_shutdown */
atm_proto_notsupp3, /* pru_sockaddr */
};
-#endif
/*
diff --git a/sys/netatm/atm_var.h b/sys/netatm/atm_var.h
index e6554ea..bacee49 100644
--- a/sys/netatm/atm_var.h
+++ b/sys/netatm/atm_var.h
@@ -43,10 +43,7 @@
/*
* Global variable declarations
*/
- /* atm_aal5.c */
-#if (defined(__FreeBSD__) && (BSD >= 199506))
extern struct pr_usrreqs atm_aal5_usrreqs;
-#endif
/* atm_proto.c */
extern struct domain atmdomain;
@@ -68,10 +65,7 @@ extern int atm_dev_print;
extern int atm_print_data;
extern struct sp_info atm_attributes_pool;
- /* atm_usrreq.c */
-#if (defined(__FreeBSD__) && (BSD >= 199506))
extern struct pr_usrreqs atm_dgram_usrreqs;
-#endif
/*
@@ -124,27 +118,20 @@ int atm_netconv_deregister(struct atm_ncm *);
int atm_nif_attach(struct atm_nif *);
void atm_nif_detach(struct atm_nif *);
int atm_nif_setaddr(struct atm_nif *, struct ifaddr *);
-#if (defined(BSD) && (BSD >= 199103))
int atm_ifoutput(struct ifnet *, KBuffer *,
struct sockaddr *, struct rtentry *);
-#else
-int atm_ifoutput(struct ifnet *, KBuffer *,
- struct sockaddr *);
-#endif
struct atm_pif *
atm_pifname(char *);
struct atm_nif *
atm_nifname(char *);
/* atm_proto.c */
-#if (defined(__FreeBSD__) && (BSD >= 199506))
int atm_proto_notsupp1(struct socket *);
int atm_proto_notsupp2(struct socket *, struct sockaddr *,
struct thread *);
int atm_proto_notsupp3(struct socket *, struct sockaddr **);
int atm_proto_notsupp4(struct socket *, int, KBuffer *,
struct sockaddr *, KBuffer *, struct thread *);
-#endif
/* atm_signal.c */
int atm_sigmgr_register(struct sigmgr *);
@@ -187,13 +174,5 @@ int atm_stack_enq(int, void (*)(int, void *, int, int),
void atm_stack_drain(void);
void atm_intr(void);
void atm_pdu_print(KBuffer *, char *);
-
- /* atm_usrreq.c */
-#if (!(defined(__FreeBSD__) && (BSD >= 199506)))
-int atm_dgram_usrreq(struct socket *, int, KBuffer *,
- KBuffer *, KBuffer *);
-#endif
-
#endif /* _KERNEL */
-
#endif /* _NETATM_ATM_VAR_H */
diff --git a/sys/netatm/ipatm/ipatm_if.c b/sys/netatm/ipatm/ipatm_if.c
index 2d028fd..b811131 100644
--- a/sys/netatm/ipatm/ipatm_if.c
+++ b/sys/netatm/ipatm/ipatm_if.c
@@ -175,11 +175,7 @@ ipatm_nifstat(cmd, nip, arg)
/*
* We only care about IP addresses
*/
-#if (defined(BSD) && (BSD >= 199103))
if (((struct ifaddr *)arg)->ifa_addr->sa_family != AF_INET)
-#else
- if (((struct ifaddr *)arg)->ifa_addr.sa_family != AF_INET)
-#endif
break;
/*
diff --git a/sys/netatm/ipatm/ipatm_input.c b/sys/netatm/ipatm/ipatm_input.c
index 30f6326..8e44bdb 100644
--- a/sys/netatm/ipatm/ipatm_input.c
+++ b/sys/netatm/ipatm/ipatm_input.c
@@ -127,9 +127,6 @@ ipatm_ipinput(inp, m)
struct ip_nif *inp;
KBuffer *m;
{
-#if BSD < 199103
- int space;
-#endif
#ifdef DIAGNOSTIC
if (ipatm_print) {
@@ -137,9 +134,6 @@ ipatm_ipinput(inp, m)
}
#endif
-#if defined(BSD)
-#if BSD >= 199103
-
#ifdef DIAGNOSTIC
if (!KB_ISPKT(m)) {
panic("ipatm_ipinput: no packet header");
@@ -162,43 +156,6 @@ ipatm_ipinput(inp, m)
*/
m->m_pkthdr.rcvif = (struct ifnet *)inp->inf_nif;
-#else /* ! BSD >= 199103 */
- /*
- * Stick ifnet pointer onto front of packet - hopefully
- * there'll be room in the first buffer.
- */
- KB_HEADROOM(m, space);
- if (space < sizeof(struct ifnet *)) {
- KBuffer *n;
-
- /*
- * We have to allocate another buffer and tack it
- * onto the front of the packet
- */
- KB_ALLOCPKT(n, sizeof(struct ifnet *),
- KB_F_NOWAIT, KB_T_HEADER);
- if (n == 0) {
- KB_FREEALL(m);
- ipatm_stat.ias_rcvnobuf++;
- return (1);
- }
- KB_LEN(n) = sizeof(struct ifnet *);
- KB_LINKHEAD(n, m);
- m = n;
- } else {
- /*
- * Header fits, just adjust buffer controls
- */
- KB_HEADADJ(m, sizeof(struct ifnet *));
- }
- {
- struct ifnet **p;
-
- KB_DATASTART(m, p, struct ifnet **);
- *p = (struct ifnet *)inp->inf_nif;
- }
-#endif /* ! BSD >= 199103 */
-
/*
* Finally, hand packet off to IP.
*
@@ -208,13 +165,7 @@ ipatm_ipinput(inp, m)
*/
if (! IF_HANDOFF(&ipintrq, m, NULL))
return (1);
-#if BSD < 199506
- ipintr();
-#else
schednetisr ( NETISR_IP );
-#endif /* BSD >= 199506 */
-#endif /* defined(BSD) */
-
return (0);
}
diff --git a/sys/netatm/ipatm/ipatm_output.c b/sys/netatm/ipatm/ipatm_output.c
index 431f9ff..be89be8 100644
--- a/sys/netatm/ipatm/ipatm_output.c
+++ b/sys/netatm/ipatm/ipatm_output.c
@@ -138,9 +138,6 @@ ipatm_ifoutput(ifp, m, dst)
}
} else {
struct in_ifaddr *ia;
-#if (defined(BSD) && (BSD < 199306))
- extern struct ifnet loif;
-#endif
/*
* No VCC to destination
@@ -166,11 +163,7 @@ ipatm_ifoutput(ifp, m, dst)
/*
* Is this a broadcast packet ??
*/
-#if (defined(BSD) && (BSD >= 199306))
if (in_broadcast(((struct sockaddr_in *)dst)->sin_addr, ifp)) {
-#else
- if (in_broadcast(((struct sockaddr_in *)dst)->sin_addr)) {
-#endif
struct ip_nif *inp;
int s;
diff --git a/sys/netatm/ipatm/ipatm_usrreq.c b/sys/netatm/ipatm/ipatm_usrreq.c
index fbcab85..4860594 100644
--- a/sys/netatm/ipatm/ipatm_usrreq.c
+++ b/sys/netatm/ipatm/ipatm_usrreq.c
@@ -230,11 +230,7 @@ ipatm_ioctl(code, data, arg1)
}
if ((ip.s_addr == INADDR_ANY) ||
-#if (defined(BSD) && (BSD >= 199306))
in_broadcast(ip, &inp->inf_nif->nif_if) ||
-#else
- in_broadcast(ip) ||
-#endif
IN_MULTICAST(ntohl(ip.s_addr))) {
err = EADDRNOTAVAIL;
break;
@@ -293,11 +289,7 @@ ipatm_ioctl(code, data, arg1)
}
if ((ip.s_addr == INADDR_ANY) ||
-#if (defined(BSD) && (BSD >= 199306))
in_broadcast(ip, &inp->inf_nif->nif_if) ||
-#else
- in_broadcast(ip) ||
-#endif
IN_MULTICAST(ntohl(ip.s_addr))) {
err = EADDRNOTAVAIL;
break;
diff --git a/sys/netatm/ipatm/ipatm_vcm.c b/sys/netatm/ipatm/ipatm_vcm.c
index aceb804..33605e1 100644
--- a/sys/netatm/ipatm/ipatm_vcm.c
+++ b/sys/netatm/ipatm/ipatm_vcm.c
@@ -371,11 +371,7 @@ ipatm_openpvc(pvp, sivp)
* Validate fixed destination IP address
*/
if (pvp->ipp_dst.sin_addr.s_addr != INADDR_ANY) {
-#if (defined(BSD) && (BSD >= 199306))
if (in_broadcast(pvp->ipp_dst.sin_addr, &nip->nif_if) ||
-#else
- if (in_broadcast(pvp->ipp_dst.sin_addr) ||
-#endif
IN_MULTICAST(ntohl(pvp->ipp_dst.sin_addr.s_addr)) ||
ipatm_chknif(pvp->ipp_dst.sin_addr, inp)) {
err = EINVAL;
diff --git a/sys/netatm/port.h b/sys/netatm/port.h
index a5b9895..6de18b7 100644
--- a/sys/netatm/port.h
+++ b/sys/netatm/port.h
@@ -48,13 +48,11 @@
* UM_ZERO(addr, len) Zeros len bytes of data from addr.
*
*/
-#if (defined(BSD) && (BSD >= 199103))
#define UM_ALLOC(size) malloc((size_t)(size))
#define UM_FREE(addr) free((void *)(addr))
#define UM_COPY(from, to, len) bcopy((void *)(from), (void *)(to),\
(size_t)(len))
#define UM_ZERO(addr, len) bzero((void *)(addr), (size_t)(len))
-#endif
#ifdef _KERNEL
@@ -141,7 +139,6 @@
* KB_PLENADJ(bfr, n) Adjust total packet length by n bytes.
*
*/
-#if defined(BSD)
#include <sys/mbuf.h>
typedef struct mbuf KBuffer;
@@ -153,8 +150,6 @@ typedef struct mbuf KBuffer;
#define KB_COPYALL M_COPYALL
-#if BSD >= 199103
-
#define KB_NEXT(bfr) (bfr)->m_next
#define KB_LEN(bfr) (bfr)->m_len
#define KB_QNEXT(bfr) (bfr)->m_nextpkt
@@ -291,159 +286,6 @@ typedef struct mbuf KBuffer;
}
-#else /* ! BSD >= 199103 */
-
-
-#define KB_NEXT(bfr) (bfr)->m_next
-#define KB_LEN(bfr) (bfr)->m_len
-#define KB_QNEXT(bfr) (bfr)->m_act
-#define KB_ALLOC(bfr, size, flags, type) { \
- if ((size) <= MLEN) { \
- MGET((bfr), (flags), (type)); \
- } else \
- (bfr) = NULL; \
-}
-#define KB_ALLOCPKT(bfr, size, flags, type) { \
- if ((size) <= MLEN) { \
- MGET((bfr), (flags), (type)); \
- } else \
- (bfr) = NULL; \
-}
-#define KB_ALLOCEXT(bfr, size, flags, type) { \
- if ((size) <= MCLBYTES) { \
- MGET((bfr), (flags), (type)); \
- if ((bfr) != NULL) { \
- MCLGET(bfr); \
- if ((bfr)->m_len != MCLBYTES) { \
- m_freem((bfr)); \
- (bfr) = NULL; \
- } \
- } \
- } else \
- (bfr) = NULL; \
-}
-#define KB_FREEONE(bfr, nxt) { \
- (nxt) = m_free(bfr); \
-}
-#define KB_FREEALL(bfr) { \
- m_freem(bfr); \
-}
-#define KB_COPY(bfr, off, len, new, flags) { \
- (new) = m_copy((bfr), (off), (len)); \
-}
-#define KB_COPYDATA(bfr, off, len, datap) \
- m_cpytoc((bfr), (off), (len), (datap))
-#define KB_PULLUP(bfr, n, new) { \
- (new) = m_pullup((bfr), (n)); \
-}
-#define KB_LINKHEAD(new, head) { \
- (new)->m_next = (head); \
-}
-#define KB_LINK(new, prev) { \
- (new)->m_next = (prev)->m_next; \
- (prev)->m_next = (new); \
-}
-#define KB_UNLINKHEAD(head, next) { \
- (next) = m_free((head)); \
- (head) = NULL; \
-}
-#define KB_UNLINK(old, prev, next) { \
- (next) = m_free((old)); \
- (old) = NULL; \
- (prev)->m_next = (next); \
-}
-#define KB_ISPKT(bfr) (0)
-#define KB_ISEXT(bfr) M_HASCL(bfr)
-#define KB_BFRSTART(bfr, x, t) { \
- if (M_HASCL(bfr)) { \
- if ((bfr)->m_cltype == MCL_STATIC) \
- (x) = (t)(mtod((bfr), int) & ~(MCLBYTES - 1)); \
- else \
- (x) = (t)NULL; \
- } else \
- (x) = (t)((bfr)->m_dat); \
-}
-#define KB_BFREND(bfr, x, t) { \
- if (M_HASCL(bfr)) { \
- if ((bfr)->m_cltype == MCL_STATIC) \
- (x) = (t)((mtod((bfr), int) & ~(MCLBYTES - 1)) \
- + MCLBYTES); \
- else \
- (x) = (t)NULL; \
- } else \
- (x) = (t)((bfr)->m_dat + MLEN); \
-}
-#define KB_BFRLEN(bfr) \
- (M_HASCL(bfr) ? (((bfr)->m_cltype == MCL_STATIC) ? MCLBYTES : 0) : MLEN)
-#define KB_DATASTART(bfr, x, t) { \
- (x) = mtod((bfr), t); \
-}
-#define KB_DATAEND(bfr, x, t) { \
- (x) = (t)(mtod((bfr), caddr_t) + (bfr)->m_len); \
-}
-#define KB_HEADSET(bfr, n) { \
- if (M_HASCL(bfr)) { \
- /* Assume cluster buffer is empty XXX */\
- (bfr)->m_off += (n); \
- } else \
- (bfr)->m_off = MMINOFF + (n); \
-}
-#define KB_HEADMOVE(bfr, n) { \
- (bfr)->m_off += (n); \
-}
-#define KB_HEADADJ(bfr, n) { \
- (bfr)->m_len += (n); \
- (bfr)->m_off -= (n); \
-}
-#define KB_TAILADJ(bfr, n) { \
- (bfr)->m_len += (n); \
-}
-#define KB_TAILALIGN(bfr, n) { \
- (bfr)->m_len = (n); \
- if (M_HASCL(bfr)) { \
- if ((bfr)->m_cltype == MCL_STATIC) \
- (bfr)->m_off = (int)(((mtod((bfr), int) \
- & ~(MCLBYTES - 1)) + MCLBYTES - (n)) \
- & ~(sizeof(long) - 1)) - (int)(bfr); \
- /* Out of luck for loaned buffers */ \
- } else \
- (bfr)->m_off = (MMAXOFF - (n)) & ~(sizeof(long) - 1); \
-}
-#define KB_HEADROOM(bfr, n) { \
- if (M_HASCL(bfr)) { \
- if ((bfr)->m_cltype == MCL_STATIC) \
- (n) = mtod((bfr), int) & (MCLBYTES - 1); \
- else \
- (n) = 0; \
- } else \
- (n) = (bfr)->m_off - MMINOFF; \
-}
-#define KB_TAILROOM(bfr, n) { \
- if (M_HASCL(bfr)) { \
- if ((bfr)->m_cltype == MCL_STATIC) \
- (n) = MCLBYTES - ((mtod((bfr), int) + (bfr)->m_len) \
- & (MCLBYTES - 1)); \
- else \
- (n) = 0; \
- } else \
- (n) = MMAXOFF - ((bfr)->m_off + (bfr)->m_len); \
-}
-#define KB_PLENGET(bfr, n) { \
- struct mbuf *zz; \
- for ((n) = 0, zz = (bfr); zz; zz = zz->m_next) \
- (n) += zz->m_len; \
-}
-#define KB_PLENSET(bfr, n) { \
-}
-#define KB_PLENADJ(bfr, n) { \
-}
-
-
-#endif /* ! BSD >= 199103 */
-
-#endif /* defined(BSD) */
-
-
/*
* Kernel time
*
@@ -452,16 +294,8 @@ typedef struct mbuf KBuffer;
* KT_TIME(t) Sets t to the current time.
*
*/
-#if (defined(BSD) && (BSD >= 199306))
typedef void KTimeout_ret;
-#else
-typedef int KTimeout_ret;
-#endif
-#if (defined(BSD) && (BSD >= 199103))
#define KT_TIME(t) microtime(&t)
-#else
-#define KT_TIME(t) ((t) = time)
-#endif
#endif /* _KERNEL */
@@ -486,16 +320,4 @@ typedef int KTimeout_ret;
#define MIN(a,b) min((a),(b))
#endif
-#if (!(defined(BSD) && (BSD >= 199306)))
-#ifndef __BIT_TYPES_DEFINED__
-#define __BIT_TYPES_DEFINED__
-typedef char int8_t;
-typedef unsigned char u_int8_t;
-typedef short int16_t;
-typedef unsigned short u_int16_t;
-typedef int int32_t;
-typedef unsigned int u_int32_t;
-#endif
-#endif
-
#endif /* _NETATM_PORT_H */
diff --git a/sys/netatm/spans/spans_arp.c b/sys/netatm/spans/spans_arp.c
index 53fcb19..107bb19 100644
--- a/sys/netatm/spans/spans_arp.c
+++ b/sys/netatm/spans/spans_arp.c
@@ -663,11 +663,7 @@ spansarp_input(clp, m)
* If source IP address is from unspecified or broadcast addresses,
* don't bother updating arp table, but answer possible requests
*/
-#if (defined(BSD) && (BSD >= 199306))
if (in_broadcast(in_src, &inp->inf_nif->nif_if))
-#else
- if (in_broadcast(in_src))
-#endif
goto chkop;
/*
diff --git a/sys/netatm/uni/uniarp_cache.c b/sys/netatm/uni/uniarp_cache.c
index 8400eeb..69bd329 100644
--- a/sys/netatm/uni/uniarp_cache.c
+++ b/sys/netatm/uni/uniarp_cache.c
@@ -419,11 +419,7 @@ uniarp_validate_ip(uip, ip, origin)
* Can't be multicast or broadcast address
*/
if (IN_MULTICAST(ntohl(ip->s_addr)) ||
-#if (defined(BSD) && (BSD >= 199306))
in_broadcast(*ip, &uip->uip_ipnif->inf_nif->nif_if))
-#else
- in_broadcast(*ip))
-#endif
return (1);
/*
OpenPOWER on IntegriCloud