summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-03-15 22:37:11 +0000
committermdodd <mdodd@FreeBSD.org>2003-03-15 22:37:11 +0000
commit5ad71fcdc126b761aee7fd6be186e2e70a1030f5 (patch)
treea6878905a680c67f0f9aebd8978a4c1631820a85
parent425161bc55e493cf88dd0c4b69537767a26c3865 (diff)
downloadFreeBSD-src-5ad71fcdc126b761aee7fd6be186e2e70a1030f5.zip
FreeBSD-src-5ad71fcdc126b761aee7fd6be186e2e70a1030f5.tar.gz
- Style(9) changes.
- Remove unneeded assignment. - Increment if_oerrors as per if_fddisubr.c. - Wrap ISO code with conditional.
-rw-r--r--sys/net/if_iso88025subr.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index 3b53e4a..5b3f821 100644
--- a/sys/net/if_iso88025subr.c
+++ b/sys/net/if_iso88025subr.c
@@ -91,9 +91,11 @@ static int iso88025_resolvemulti (struct ifnet *, struct sockaddr **,
void
iso88025_ifattach(struct ifnet *ifp)
{
- struct ifaddr *ifa = NULL;
+ struct ifaddr *ifa;
struct sockaddr_dl *sdl;
+ ifa = NULL;
+
ifp->if_type = IFT_ISO88025;
ifp->if_addrlen = ISO88025_ADDR_LEN;
ifp->if_hdrlen = ISO88025_HDR_LEN;
@@ -288,7 +290,6 @@ iso88025_output(ifp, m, dst, rt0)
{
u_int8_t *cp;
- snap_type = 0;
bcopy((caddr_t)&(satoipx_addr(dst).x_host), (caddr_t)edst,
ISO88025_ADDR_LEN);
@@ -393,6 +394,7 @@ iso88025_output(ifp, m, dst, rt0)
return (error);
bad:
+ ifp->if_oerrors++;
if (m)
m_freem(m);
return (error);
@@ -517,6 +519,7 @@ iso88025_input(ifp, th, m)
}
break;
}
+#ifdef ISO
case LLC_ISO_LSAP:
switch (l->llc_control) {
case LLC_UI:
@@ -536,10 +539,13 @@ iso88025_input(ifp, th, m)
case LLC_TEST_P:
{
struct sockaddr sa;
- struct arpcom *ac = (struct arpcom *)ifp;
+ struct arpcom *ac;
struct iso88025_sockaddr_data *th2;
int i;
- u_char c = l->llc_dsap;
+ u_char c;
+
+ ac = (struct arpcom *)ifp;
+ c = l->llc_dsap;
if (th->iso88025_shost[0] & TR_RII) { /* XXX */
printf("iso88025_input: dropping source routed LLC_TEST\n");
@@ -572,6 +578,7 @@ iso88025_input(ifp, th, m)
break;
}
break;
+#endif /* ISO */
default:
printf("iso88025_input: unknown dsap 0x%x\n", l->llc_dsap);
ifp->if_noproto++;
OpenPOWER on IntegriCloud