Home
last modified time | relevance | path

Searched refs:sendlen (Results 1 – 7 of 7) sorted by relevance

/openbsd/src/sys/arch/macppc/stand/
Dnetif_of.c148 size_t sendlen; in netif_put() local
165 sendlen = len; in netif_put()
166 if (sendlen < 60) { in netif_put()
167 sendlen = 60; in netif_put()
169 printf("netif_put: length padded to %d\n", sendlen); in netif_put()
174 bcopy(pkt, op->dmabuf, sendlen); in netif_put()
177 rv = OF_write(op->handle, pkt, sendlen); in netif_put()
/openbsd/src/sys/arch/sparc64/stand/ofwboot/
Dnetif_of.c132 size_t sendlen; in netif_put() local
143 sendlen = len; in netif_put()
144 if (sendlen < 60) { in netif_put()
145 sendlen = 60; in netif_put()
147 sendlen); in netif_put()
150 rv = OF_write(op->handle, pkt, sendlen); in netif_put()
/openbsd/src/usr.sbin/mrouted/
Drsrr.c79 static int rsrr_send(int sendlen);
200 int vifi, sendlen; in rsrr_accept_iq() local
232 sendlen = RSRR_HEADER_LEN + numvifs*RSRR_VIF_LEN; in rsrr_accept_iq()
236 rsrr_send(sendlen); in rsrr_accept_iq()
253 int sendlen,i; in rsrr_accept_rq() local
274 sendlen = RSRR_RR_LEN; in rsrr_accept_rq()
359 return rsrr_send(sendlen); in rsrr_accept_rq()
364 rsrr_send(int sendlen) in rsrr_send() argument
369 error = sendto(rsrr_socket, rsrr_send_buf, sendlen, 0, in rsrr_send()
375 } else if (error != sendlen) { in rsrr_send()
[all …]
/openbsd/src/usr.sbin/dhcrelay6/
Dbpf.c220 ssize_t sendlen; in send_packet_layer3() local
260 if ((sendlen = sendmsg(pc->pc_sd, &msg, 0)) == -1) { in send_packet_layer3()
264 if (sendlen < (ssize_t)len) in send_packet_layer3()
266 sendlen, len); in send_packet_layer3()
268 return sendlen; in send_packet_layer3()
/openbsd/src/sys/dev/usb/
Dif_bwfm_usb.c654 uint32_t rdlstate, rdlbytes, sent = 0, sendlen = 0; in bwfm_usb_load_microcode() local
687 sendlen = MIN(size - sent, TRX_RDL_CHUNK); in bwfm_usb_load_microcode()
688 memcpy(buf, ucode + sent, sendlen); in bwfm_usb_load_microcode()
690 usbd_setup_xfer(xfer, sc->sc_tx_pipeh, NULL, buf, sendlen, in bwfm_usb_load_microcode()
697 sent += sendlen; in bwfm_usb_load_microcode()
/openbsd/src/usr.sbin/unbound/dnstap/
Ddtstream.c843 uint32_t sendlen = htonl(dtio->cur_msg_len); in dtio_write_with_writev() local
846 iov[0].iov_base = ((uint8_t*)&sendlen)+dtio->cur_msg_len_done; in dtio_write_with_writev()
847 iov[0].iov_len = sizeof(sendlen)-dtio->cur_msg_len_done; in dtio_write_with_writev()
890 uint32_t sendlen; in dtio_write_more_of_len() local
900 sendlen = htonl(dtio->cur_msg_len); in dtio_write_more_of_len()
902 ((uint8_t*)&sendlen)+dtio->cur_msg_len_done, in dtio_write_more_of_len()
903 sizeof(sendlen)-dtio->cur_msg_len_done); in dtio_write_more_of_len()
/openbsd/src/usr.sbin/nsd/
Dxfrd-tcp.c1022 uint16_t sendlen = htons(tcp->msglen); in conn_write_ssl() local
1026 sent = SSL_write(ssl, (const char*)&sendlen + tcp->total_bytes, in conn_write_ssl()
1092 uint16_t sendlen = htons(tcp->msglen); in conn_write() local
1095 iov[0].iov_base = (uint8_t*)&sendlen + tcp->total_bytes; in conn_write()
1096 iov[0].iov_len = sizeof(sendlen) - tcp->total_bytes; in conn_write()
1102 (const char*)&sendlen + tcp->total_bytes, in conn_write()