diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-15 22:25:06 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-15 22:25:06 +0000 |
commit | c1cc7fd6fcfa1e0043dc5fad882cc3165e1fe971 (patch) | |
tree | 8cdfa8a34ae25c9f4c7e74ccef3d122ae9e9bd3e | |
parent | 103651196ed65915ea3df7756b18d8fb1ef91163 (diff) | |
download | FreeBSD-src-c1cc7fd6fcfa1e0043dc5fad882cc3165e1fe971.zip FreeBSD-src-c1cc7fd6fcfa1e0043dc5fad882cc3165e1fe971.tar.gz |
- Remove stray ).
- Add missing breaks.
- Add missing if_noproto++.
-rw-r--r-- | sys/net/if_iso88025subr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c index 5ef9aa8..8013d92 100644 --- a/sys/net/if_iso88025subr.c +++ b/sys/net/if_iso88025subr.c @@ -83,7 +83,7 @@ static u_char iso88025_broadcastaddr[ISO88025_ADDR_LEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; static int iso88025_resolvemulti (struct ifnet *, struct sockaddr **, - struct sockaddr *)); + struct sockaddr *); #define IFP2AC(IFP) ((struct arpcom *)IFP) #define senderr(e) do { error = (e); goto bad; } while (0) @@ -475,8 +475,10 @@ iso88025_input(ifp, th, m) if (l->llc_snap.org_code[0] != 0 || l->llc_snap.org_code[1] != 0 || - l->llc_snap.org_code[2] != 0) + l->llc_snap.org_code[2] != 0) { + ifp->if_noproto++; goto dropanyway; + } type = ntohs(l->llc_snap.ether_type); m_adj(m, LLC_SNAPFRAMELEN); @@ -568,12 +570,14 @@ iso88025_input(ifp, th, m) printf("iso88025_input: unexpected llc control 0x%02x\n", l->llc_control); ifp->if_noproto++; goto dropanyway; + break; } break; default: printf("iso88025_input: unknown dsap 0x%x\n", l->llc_dsap); ifp->if_noproto++; goto dropanyway; + break; } netisr_dispatch(isr, m); |