-/* $OpenBSD: ip_ether.c,v 1.6 2000/01/07 21:59:34 angelos Exp $ */
+/* $OpenBSD: ip_ether.c,v 1.7 2000/04/10 07:33:44 angelos Exp $ */
/*
* The author of this code is Angelos D. Keromytis (kermit@adk.gr)
/* Some address family sanity checks */
if ((tdb->tdb_src.sa.sa_family != 0) &&
- ((tdb->tdb_src.sa.sa_family != AF_INET) ||
- (tdb->tdb_src.sa.sa_family != AF_INET6)))
+ (tdb->tdb_src.sa.sa_family != AF_INET) &&
+ (tdb->tdb_src.sa.sa_family != AF_INET6))
{
DPRINTF(("etherip_output(): IP in protocol-family <%d> attempted, aborting", tdb->tdb_src.sa.sa_family));
etheripstat.etherip_adrops++;