X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Frx%2FOBSD%2Frx_knet.c;h=50ec710306639d75962f0bd83b26dfdf5f847e5b;hp=26b226da83265680ee70421fbea7d1f969947233;hb=530c491c673154c5c935bd339c6d00850d454190;hpb=0ee73ecbff418d253076923681174560030ef753 diff --git a/src/rx/OBSD/rx_knet.c b/src/rx/OBSD/rx_knet.c index 26b226d..50ec710 100644 --- a/src/rx/OBSD/rx_knet.c +++ b/src/rx/OBSD/rx_knet.c @@ -73,23 +73,10 @@ void osi_StopListener(void) psignal(p, SIGUSR1); } -/* rx_NetSend - send asize bytes at adata from asocket to host at addr. - * - * Now, why do we allocate a new buffer when we could theoretically use the one - * pointed to by adata? Because PRU_SEND returns after queueing the message, - * not after sending it. If the sender changes the data after queueing it, - * we'd see the already-queued data change. One attempt to fix this without - * adding a copy would be to have this function wait until the datagram is - * sent; however this doesn't work well. In particular, if a host is down, and - * an ARP fails to that host, this packet will be queued until the ARP request - * comes back, which could be hours later. We can't block in this routine that - * long, since it prevents RPC timeouts from happening. - */ -/* XXX In the brave new world, steal the data bufs out of the rx_packet iovec, - * and just queue those. XXX +/* + * rx_NetSend - send asize bytes at adata from asocket to host at addr. */ - int osi_NetSend(osi_socket asocket, struct sockaddr_in *addr, struct iovec *dvec, int nvecs, afs_int32 alength, int istack) {