diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-03-15 22:25:06 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-03-15 22:25:06 +0000 |
| commit | bd3e6bb8b88eef82213a85b9f3e22f837e04997b (patch) | |
| tree | 8cdfa8a34ae25c9f4c7e74ccef3d122ae9e9bd3e /sys/net | |
| parent | 16830b0cc2a1f9eb4cf3bc7daae2ef49148bf474 (diff) | |
Notes
Diffstat (limited to 'sys/net')
| -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 5ef9aa8ebae6..8013d92034cf 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); |
