| version 1.32, 1996/05/23 17:03:31 |
version 1.33, 1996/05/23 17:05:45 |
| Line 412 udp_output(m, va_alist) |
|
| Line 412 udp_output(m, va_alist) |
|
| va_dcl |
va_dcl |
| #endif |
#endif |
| { |
{ |
| struct mbuf *control; |
|
| register struct inpcb *inp; |
register struct inpcb *inp; |
| register struct udpiphdr *ui; |
register struct udpiphdr *ui; |
| register int len = m->m_pkthdr.len; |
register int len = m->m_pkthdr.len; |
| Line 420 udp_output(m, va_alist) |
|
| Line 419 udp_output(m, va_alist) |
|
| va_list ap; |
va_list ap; |
| |
|
| va_start(ap, m); |
va_start(ap, m); |
| control = va_arg(ap, struct mbuf *); |
|
| inp = va_arg(ap, struct inpcb *); |
inp = va_arg(ap, struct inpcb *); |
| va_end(ap); |
va_end(ap); |
| |
|
| if (control) |
|
| m_freem(control); /* XXX */ |
|
| |
|
| /* |
/* |
| * Calculate data length and get a mbuf |
* Calculate data length and get a mbuf |
| * for UDP and IP headers. |
* for UDP and IP headers. |
| Line 592 udp_usrreq(so, req, m, nam, control, p) |
|
| Line 587 udp_usrreq(so, req, m, nam, control, p) |
|
| goto die; |
goto die; |
| } |
} |
| } |
} |
| error = udp_output(m, control, inp); |
error = udp_output(m, inp); |
| if (nam) { |
if (nam) { |
| in_pcbdisconnect(inp); |
in_pcbdisconnect(inp); |
| inp->inp_laddr = laddr; |
inp->inp_laddr = laddr; |