# Libnet4r errors

**URL:** <https://www.ruby-forum.com/t/libnet4r-errors/119269>\
**Category:** Ruby\
**Created:** [November 5, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/libnet4r-errors/119269 "2007-11-05T18:09:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flnative](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/5daacb/32.png) [@flnative](https://www.ruby-forum.com/u/flnative)\
**Post date:** [November 5, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/libnet4r-errors/119269/1 "2007-11-05T18:09:19Z")

</div>

Hi @all  
For my packetgenerator, I use a rubyadapter to share the available  
libnet library in C. It runs well, but when I create over 1000 packets,  
the buffer is overflowing (Error: libnet\_write\_link(): only -1 bytes  
written (No buffer space available - RuntimeError).

To build each network layer of a packet, I use a libnet instance for one  
packet. So when I create 1000 packets, the buffer is full.

Does anyone has some experience with libnet for ruby and optimize the  
workflow to send a packet?

Thanks for your anwsers…
