Revision aeed97c4 slirp/udp.c

b/slirp/udp.c
63 63
struct	socket *udp_last_so = &udb;
64 64

  
65 65
void
66
udp_init()
66
udp_init(void)
67 67
{
68 68
	udb.so_next = udb.so_prev = &udb;
69 69
}
......
72 72
 * ip->ip_len length data (IPDU)
73 73
 */
74 74
void
75
udp_input(m, iphlen)
76
	register struct mbuf *m;
77
	int iphlen;
75
udp_input(register struct mbuf *m, int iphlen)
78 76
{
79 77
	register struct ip *ip;
80 78
	register struct udphdr *uh;
......
330 328
}
331 329

  
332 330
int
333
udp_attach(so)
334
     struct socket *so;
331
udp_attach(struct socket *so)
335 332
{
336 333
  struct sockaddr_in addr;
337 334

  
......
363 360
}
364 361

  
365 362
void
366
udp_detach(so)
367
	struct socket *so;
363
udp_detach(struct socket *so)
368 364
{
369 365
	closesocket(so->s);
370 366
	/* if (so->so_m) m_free(so->so_m);    done by sofree */
......
631 627
}
632 628

  
633 629
struct socket *
634
udp_listen(port, laddr, lport, flags)
635
	u_int port;
636
	u_int32_t laddr;
637
	u_int lport;
638
	int flags;
630
udp_listen(u_int port, u_int32_t laddr, u_int lport, int flags)
639 631
{
640 632
	struct sockaddr_in addr;
641 633
	struct socket *so;

Also available in: Unified diff