|
|
| version 1.17, 2004/04/21 18:13:56 | version 1.18, 2004/04/22 04:31:27 |
|---|---|
| Line 833 tcp_connect(struct tcpcb *tp, struct soc | Line 833 tcp_connect(struct tcpcb *tp, struct soc |
| struct netmsg_tcp_connect *msg; | struct netmsg_tcp_connect *msg; |
| msg = malloc(sizeof(struct netmsg_tcp_connect), M_LWKTMSG, | msg = malloc(sizeof(struct netmsg_tcp_connect), M_LWKTMSG, |
| M_NOWAIT); | M_INTWAIT); |
| if (msg == NULL) { | |
| if (didbind) { /* need to unwind bind */ | |
| inp->inp_lport = 0; | |
| inp->inp_laddr.s_addr = INADDR_ANY; | |
| in_pcbremwildcardhash(inp); | |
| } | |
| return (ENOMEM); | |
| } | |
| lwkt_initmsg(&msg->nm_lmsg, &curthread->td_msgport, 0, | lwkt_initmsg(&msg->nm_lmsg, &curthread->td_msgport, 0, |
| lwkt_cmd_func(tcp_connect_handler), | lwkt_cmd_func(tcp_connect_handler), |
| lwkt_cmd_op_none); | lwkt_cmd_op_none); |