Libpcap based: packet generator + capture file editor + bridge for IEEE802.3 on FreeBSD

Wesley Shields wxs at csh.rit.edu
Tue Apr 18 18:54:36 UTC 2006


On Mon, Apr 17, 2006 at 06:34:12AM -0700, Yeow C.H. wrote:
> Thanks Brian.
>   
>   Simply put Bit-Twist is smaller, do more, medium specific (Ethernet
>   II - IEEE 802.3) suite.
>   
>   Bittwist (packet generator) does not differs much from tcpreplay
>   program. I would admit if you say tcpreplay can do everything that
>   bittwist can do. But bittwist implementation is much simpler and it
>   uses only libpcap library without libnet dependency.
>   
>   Its capture file editor, bittwiste, allow you to change most fields
>   in  Ethernet, ARP, IP, ICMP, TCP, and UDP headers and you can
>   specify your  own payload. It is possible for the payload to cover
>   the ICMP, TCP, or  UDP header itself (checksum is corrected
>   automatically). Tcprewrite  (part of Tcpreplay suite) allows you to
>   change src/dst MAC/IP/port  only, but, it supports VLAN frames
>   (Bit-Twist does not).
>   
>   Bittwistb (bridge) aids the injection of packets from an end host
>   which  get forwarded across different LAN segments. It supports
>   multiple ports  (up to 8, or more if you want it to). Tcpbridge
>   supports only 2.
>   
>   Simply put, Bit-Twist is created not to compete with any existing
>   similar projects, i.e. Tcpreplay, but it is here in favor of freedom
>   of  choice :) and also, Bit-Twist is currently being used as a
>   practical  teaching material in Computer Network classes.

There is now a port for this available at net/bittwist if anyone is
interested in playing with it further.  It doesn't build under 4.x due
to a redefinition of in_addr_t and a lack of round(), but it builds
under more recent versions.  :)

-- WXS


More information about the freebsd-net mailing list