Lines Matching defs:iov_len
39 if (packet[i].iov_len > 0) {
40 checksum = ip_checksum_add(checksum, packet[i].iov_base, packet[i].iov_len);
56 len += packet[i].iov_len;
239 out[pos].iov_len = sizeof(struct icmp6_hdr);
260 out[CLAT_POS_PAYLOAD].iov_len = payload_size;
293 out[pos].iov_len = sizeof(struct icmphdr);
306 out[CLAT_POS_PAYLOAD].iov_len = payload_size;
328 out[pos].iov_len = 0;
330 out[CLAT_POS_PAYLOAD].iov_len = len;
410 out[pos].iov_len = sizeof(struct udphdr);
412 out[CLAT_POS_PAYLOAD].iov_len = payload_size;
448 out[pos].iov_len = header_size;
461 out[CLAT_POS_PAYLOAD].iov_len = payload_size;
469 void send_rawv6(int fd, clat_packet out, int iov_len) __attribute__((weak));
471 void send_rawv6(int fd, clat_packet out, int iov_len) {
483 msg.msg_iovlen = iov_len,
496 int iov_len = 0;
520 iov_len = ipv4_packet(out, CLAT_POS_IPHDR, packet, packetsize);
521 if (iov_len > 0) {
522 send_rawv6(fd, out, iov_len);
525 iov_len = ipv6_packet(out, CLAT_POS_IPHDR, packet, packetsize);
526 if (iov_len > 0) {
528 out[CLAT_POS_TUNHDR].iov_len = sizeof(tun_targ);
529 send_tun(fd, out, iov_len);