From 4158372f1a2e313d006ca0d233e928e437fd2ae5 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Sun, 18 Apr 2004 11:01:15 +0000 Subject: [PATCH] replace Bcmp() with the same bcmp() used in the rest of the file. --- sys/net/if_ethersubr.c | 4 ++-- sys/net/if_fddisubr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 7bf473d1b176..4b10239d4883 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -769,14 +769,14 @@ ether_demux(struct ifnet *ifp, struct mbuf *m) if (l->llc_dsap == LLC_SNAP_LSAP && l->llc_ssap == LLC_SNAP_LSAP && l->llc_control == LLC_UI) { - if (Bcmp(&(l->llc_snap_org_code)[0], at_org_code, + if (bcmp(&(l->llc_snap_org_code)[0], at_org_code, sizeof(at_org_code)) == 0 && ntohs(l->llc_snap_ether_type) == ETHERTYPE_AT) { m_adj(m, LLC_SNAPFRAMELEN); isr = NETISR_ATALK2; break; } - if (Bcmp(&(l->llc_snap_org_code)[0], aarp_org_code, + if (bcmp(&(l->llc_snap_org_code)[0], aarp_org_code, sizeof(aarp_org_code)) == 0 && ntohs(l->llc_snap_ether_type) == ETHERTYPE_AARP) { m_adj(m, LLC_SNAPFRAMELEN); diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index 2e8984015692..0602c431ea1f 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -468,7 +468,7 @@ fddi_input(ifp, m) goto dropanyway; } #ifdef NETATALK - if (Bcmp(&(l->llc_snap.org_code)[0], at_org_code, + if (bcmp(&(l->llc_snap.org_code)[0], at_org_code, sizeof(at_org_code)) == 0 && ntohs(l->llc_snap.ether_type) == ETHERTYPE_AT) { isr = NETISR_ATALK2; @@ -476,7 +476,7 @@ fddi_input(ifp, m) break; } - if (Bcmp(&(l->llc_snap.org_code)[0], aarp_org_code, + if (bcmp(&(l->llc_snap.org_code)[0], aarp_org_code, sizeof(aarp_org_code)) == 0 && ntohs(l->llc_snap.ether_type) == ETHERTYPE_AARP) { m_adj(m, LLC_SNAPFRAMELEN);