diff options
author | archie <archie@FreeBSD.org> | 2000-05-24 21:16:56 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-05-24 21:16:56 +0000 |
commit | 4ba625d0ce34b70f741bf77f6ca791a411865fc2 (patch) | |
tree | bec62c6969696c63921532d9b3a3497c93705c93 /sys/net/if_iso88025subr.c | |
parent | 600aec722a18eebcec87ca2b60dab5ae68e6f60e (diff) | |
download | FreeBSD-src-4ba625d0ce34b70f741bf77f6ca791a411865fc2.zip FreeBSD-src-4ba625d0ce34b70f741bf77f6ca791a411865fc2.tar.gz |
Just need to pass the address family to if_simloop(), not the whole sockaddr.
Diffstat (limited to 'sys/net/if_iso88025subr.c')
-rw-r--r-- | sys/net/if_iso88025subr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c index bbd10d8..3dd47b8 100644 --- a/sys/net/if_iso88025subr.c +++ b/sys/net/if_iso88025subr.c @@ -285,10 +285,12 @@ iso88025_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, struct (loop_copy != -1)) { if ((m->m_flags & M_BCAST) || (loop_copy > 0)) { struct mbuf *n = m_copy(m, 0, (int)M_COPYALL); - (void) if_simloop(ifp, n, dst, ISO88025_HDR_LEN); + (void) if_simloop(ifp, + n, dst->sa_family, ISO88025_HDR_LEN); } else if (bcmp(th->iso88025_dhost, th->iso88025_shost, ETHER_ADDR_LEN) == 0) { - (void) if_simloop(ifp, m, dst, ISO88025_HDR_LEN); + (void) if_simloop(ifp, + m, dst->sa_family, ISO88025_HDR_LEN); return(0); /* XXX */ } } |