diff options
author | luigi <luigi@FreeBSD.org> | 2000-01-08 11:28:23 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2000-01-08 11:28:23 +0000 |
commit | 7f185791a639766b0028bb723c7a8c20d76b4cfd (patch) | |
tree | 004c6f1bbf7860eacbbaf39dd9c81474f25b02e1 | |
parent | 554cd7f4044078eb3ae437f0e33d605b81b87042 (diff) | |
download | FreeBSD-src-7f185791a639766b0028bb723c7a8c20d76b4cfd.zip FreeBSD-src-7f185791a639766b0028bb723c7a8c20d76b4cfd.tar.gz |
Cleanup dummynet call interface so it should now work on the Alpha
as well. Also (probably) fix a bug introduced during the IPv6 import.
-rw-r--r-- | sys/netinet/ip_output.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 52bfdb9..e169a25 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -192,16 +192,18 @@ ip_output(m0, opt, ro, flags, imo) /* * the packet was already tagged, so part of the * processing was already done, and we need to go down. - * opt, flags and imo have already been used, and now - * they are used to hold ifp, dst and NULL, respectively. + * * Get parameters from the header. */ rule = (struct ip_fw_chain *)(m->m_data) ; - dst = (struct sockaddr_in *)((struct dn_pkt *)m)->dn_dst; + opt = NULL ; + ro = & ( ((struct dn_pkt *)m)->ro ) ; + imo = NULL ; + dst = ((struct dn_pkt *)m)->dn_dst ; + ifp = ((struct dn_pkt *)m)->ifp ; + m0 = m = m->m_next ; ip = mtod(m, struct ip *); - ifp = (struct ifnet *)opt; hlen = IP_VHL_HL(ip->ip_vhl) << 2 ; - opt = NULL ; goto sendit; } else rule = NULL ; |