diff options
author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-03-15 19:37:44 +0000 |
---|---|---|
committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-03-15 19:37:44 +0000 |
commit | 06f684b004e868fde54fb3a10f203f31f043bb3d (patch) | |
tree | d2b672462f92a17f4c571c0d1453cf55876cf6d0 /sys/net/if_fddisubr.c | |
parent | a93a1161532885b061a60e256ba9011fb3311e9c (diff) | |
download | src-06f684b004e868fde54fb3a10f203f31f043bb3d.tar.gz src-06f684b004e868fde54fb3a10f203f31f043bb3d.zip |
Notes
Diffstat (limited to 'sys/net/if_fddisubr.c')
-rw-r--r-- | sys/net/if_fddisubr.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index d1b8b227a52a..9f32c003c97f 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -299,15 +299,15 @@ fddi_output(ifp, m, dst, rt0) * reasons and compatibility with the original behavior. */ if ((ifp->if_flags & IFF_SIMPLEX) && (loop_copy != -1)) { - if ((m->m_flags & M_BCAST) || loop_copy) { - struct mbuf *n = m_copy(m, 0, (int)M_COPYALL); - - (void) if_simloop(ifp, - n, dst->sa_family, FDDI_HDR_LEN); - } else if (bcmp(fh->fddi_dhost, - fh->fddi_shost, FDDI_ADDR_LEN) == 0) { - (void) if_simloop(ifp, - m, dst->sa_family, FDDI_HDR_LEN); + if ((m->m_flags & M_BCAST) || (loop_copy > 0)) { + struct mbuf *n; + n = m_copy(m, 0, (int)M_COPYALL); + (void) if_simloop(ifp, n, dst->sa_family, + FDDI_HDR_LEN); + } else if (bcmp(fh->fddi_dhost, fh->fddi_shost, + FDDI_ADDR_LEN) == 0) { + (void) if_simloop(ifp, m, dst->sa_family, + FDDI_HDR_LEN); return (0); /* XXX */ } } |