4 [![Build Status](https://secure.travis-ci.org/eroullit/dabba.png?branch=master)](http://travis-ci.org/eroullit/dabba)
6 dabba is a set of network tools written for Linux.
8 This is inspired on the Dabba Walla system present in Mumbai where
9 meals are regrouped and dispatched throughout the city with a high
10 efficiency rate, every day of the year.
12 The project has 4 main components:
13 * `libdabba` - low-level zero-copy network library
14 * `libdabba-rpc` - protobuf-based rpc library for dabbad and dabba
15 * `dabbad` - multi-threaded task manager and RPC query processor
16 * `dabba` - CLI 'à la git' to communicate with dabbad and submit tasks
18 Currently supported feature are listed in the [CODING] file.
24 git clone git://github.com/eroullit/dabba.git
27 Contributions are welcome, [CODING] regroups all information about it.
32 dabba needs these to compile and run properly:
33 * Linux kernel >= 2.6.31
40 * `protobuf-c-compiler`
41 * `libprotobuf-c0-dev`
42 * `setcap` (within `libcap2-bin` package)
44 Recommended optional packages:
53 $ mkdir build && cd build && cmake .. && make
56 To install it after being built:
58 $ sudo make install/strip
64 To configure dabba to run with a regular user account:
72 Automatic tests are available. There are two kinds:
73 * Read-only (which do not interfere with network interface settings)
74 * Read-write (which modify network interface settings)
76 WARNING: Read-write tests might degrade or disable the
77 interface connectivity while tests are running. Avoid to run
78 then on production interfaces.
80 To run read-only automatic tests, make sure proper capabilities are granted and
81 run in the build directory:
83 $ ctest --output-on-failure
86 To run read-only automatic tests, make sure proper capabilities are granted,
87 set the `TEST_DEV` variable with the interface name to modify
88 and run in the build directory:
90 $ TEST_DEV=eth0 ctest --output-on-failure
101 As long as dabbad is running, captures tasks can be submitted:
103 $ dabba capture start --interface eth0 --pcap /tmp/example.pcap
106 Running captures can be listed in YAML format:
113 packet mmap size: 32768
115 pcap: /tmp/example.pcap
119 Stopping the capture:
121 $ dabba capture stop --id 3076324160
127 The MIT License (MIT)
129 Copyright (c) 2013 Emmanuel Roullit
131 Permission is hereby granted, free of charge, to any person obtaining a copy
132 of this software and associated documentation files (the "Software"), to deal
133 in the Software without restriction, including without limitation the rights
134 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
135 copies of the Software, and to permit persons to whom the Software is
136 furnished to do so, subject to the following conditions:
138 The above copyright notice and this permission notice shall be included in
139 all copies or substantial portions of the Software.
141 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
142 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
143 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
144 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
145 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
146 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
153 Send me a message to @eroullit on GitHub
155 For suggestions or bug reports:
156 Feel free to open an issue on the [ticket system](https://github.com/eroullit/dabba/issues).
158 [CODING]: https://github.com/eroullit/dabba/blob/master/CODING