Fred Klassen 8d183dfd1d Import upstream version 4.5.1 5 months ago
..
LICENSE 25da238943 Import upstream version 4.2.4 7 years ago
Makefile.am 6098e4c6ee Import upstream version 4.3.1 6 years ago
Makefile.in 27a7598261 Import upstream version 4.4.4 1 year ago
README 25da238943 Import upstream version 4.2.4 7 years ago
argv.c 27a7598261 Import upstream version 4.4.4 1 year ago
argv.h 27a7598261 Import upstream version 4.4.4 1 year ago
bget.c 27a7598261 Import upstream version 4.4.4 1 year ago
bget.h 27a7598261 Import upstream version 4.4.4 1 year ago
fragroute.c 8d183dfd1d Import upstream version 4.5.1 5 months ago
fragroute.h 8d183dfd1d Import upstream version 4.5.1 5 months ago
iputil.c 27a7598261 Import upstream version 4.4.4 1 year ago
iputil.h 27a7598261 Import upstream version 4.4.4 1 year ago
mod.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod.h 27a7598261 Import upstream version 4.4.4 1 year ago
mod_delay.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_drop.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_dup.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_echo.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_ip6_opt.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_ip6_qos.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_ip_chaff.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_ip_frag.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_ip_opt.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_ip_tos.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_ip_ttl.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_order.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_print.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_tcp_chaff.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_tcp_opt.c 27a7598261 Import upstream version 4.4.4 1 year ago
mod_tcp_seg.c 27a7598261 Import upstream version 4.4.4 1 year ago
pkt.c 27a7598261 Import upstream version 4.4.4 1 year ago
pkt.h 27a7598261 Import upstream version 4.4.4 1 year ago
randutil.c 27a7598261 Import upstream version 4.4.4 1 year ago
randutil.h 27a7598261 Import upstream version 4.4.4 1 year ago

README

This code is heavily based on, even stolen from Dug Song's excellent fragroute
utility. I've taken a perfectly good application and converted it into a
packet editing library for my own needs. Any bugs are my fault. Any praises
really should go to Dug.

Please consider all files here under the original fragroute LICENSE, with the
added caveat that any changes are:

Copyright 2008-2010, Aaron Turner
Copyright 2013, Fred Klassen - AppNeta

Notes:
Fragroute runs as a daemon which intercepts packets by modifying the host
operating systems routing table, redirecting packets destined to the target
IP over the loopback interface. Packets reaching the loopback interface
are then read using libpcap/BPF filter processed according to the fragroute
rule set and then resent out the configured interface.

libfragroute works differently. First, we do away with any changes to the
host routing table. Secondly, packets are not sent out any interface, but
are read back by the caller. The API should look something like this:

ctx = fragroute_init(mtu, ); // init library

// process a packet
fragroute_process(ctx, char *pktbuff, int pktsize)

// read resulting fragments
while ((ret = fragroute_read(ctx, char **fragment)) > 0) {
// do something with fragment
} else {
// no more fragments
}