summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-06-09mausezahn: man: fixed typo and minor sentence editsJon Schipp1-13/+12
That's a first part of the manpage edit for now. Signed-off-by: Jon Schipp <jonschipp@gmail.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-08bpfc: also allow to load skb len into XDaniel Borkmann1-0/+2
This functionality is available in the kernel, so make it also available for use in bpfc. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-06ifpps: Also display min hitter for IRQsTobias Klauser1-23/+50
Also display the least heavy hitter for the relative and absolute IRQ list. Also check that the number passed with -n is actually 1 or larger. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2013-06-06ifpps: Always display the least heavy hitter CPUTobias Klauser2-19/+44
Along with the topmost heavy hitters, we always display the least heavy hitter (unless there's only 1 CPU). This is not influenced by the -n command line parameter, so also display the according additional CPU in the header line. Also update the manpage accordingly. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2013-06-04zsh: add zsh completion function for mausezahnHideo Hattori1-0/+67
Initial zsh autocompletion support for mausezahn! Signed-off-by: Hideo Hattori <hhatto.jp@gmail.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04curve: also really remove taia functions from hereDaniel Borkmann1-43/+3
We should also remove those functions! Arg. While at it, slightly clean up a bit. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04taia: move taia evaluation out of curve.Daniel Borkmann4-1/+36
This is not really related to curve functions, so move it out from there. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04curve: move taia related functions into own headerDaniel Borkmann2-139/+160
Move them into a separate header, structures and inline functions, since they are more or less independant of curve.h. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04bpf: split up instructions and extensions from headerDaniel Borkmann3-98/+107
Move them into a separate header file, so that it is more clean. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04ioops: fix build error by renaming 'len' variableDaniel Borkmann1-2/+2
Argh, forgot to rename variables in read_blob_or_die/write_blob_or_die. ioops.c: In function ‘read_blob_or_die’: ioops.c:105:30: error: ‘len’ undeclared (first use in this function) ioops.c:105:30: note: each undeclared identifier is reported only once for each function it appears in ioops.c: In function ‘write_blob_or_die’: ioops.c:116:31: error: ‘len’ undeclared (first use in this function) make: *** [netsniff-ng/ioops.o] Error 1 Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04keypair: Add routines to generate and verify a keypairDaniel Borkmann5-0/+90
This is needed in order to replace curvetun's routines. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04ioops: Add {read,write}_blob_or_die for reading/writing binary blobsDaniel Borkmann2-0/+25
We need those functions for later key generation simplification. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04rnd: add gen_key_bytes to generate key from good entropy sourceDaniel Borkmann3-19/+33
Make this a function and do not have this in curvetun hard coded. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04crypto: add crypto header with includes and definesDaniel Borkmann6-34/+26
Add another header with includes and defines, so that we can reduce double-definitions, and shorten long text strings. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04misc: cleanup header commentsDaniel Borkmann19-115/+12
Remove header comments where appropriate. And also clean up colorize a bit. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04tstamping: add header file for packet timestampingDaniel Borkmann3-11/+9
Better add a header file for this, so that we do not need to have it in multiple places declared. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04rnd: move entropy source definition to rndDaniel Borkmann3-10/+11
It's better off there anyway. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04stun: add header fileDaniel Borkmann3-10/+8
Add a header file for stun functions. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04xutils: eliminate xutils, move rest to epoll2Daniel Borkmann46-154/+53
Finally eliminate xutils.{c,h} and move the rest to epoll2. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04timer: add time management functionsDaniel Borkmann8-12/+26
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04sig: add signal handling functionsDaniel Borkmann16-30/+52
Add an extra file for signal handling functions. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04link: add link management functionsDaniel Borkmann12-166/+192
Same here as usual, break out link functions from xutils. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04sock: add socket management functionsDaniel Borkmann19-186/+209
Remove them from xutils, and add them to socket management. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04proc: move out process specific management functionsDaniel Borkmann8-79/+80
Move them out of xutils, so that we can maintain them separately. Also simplify things a bit. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04privs: move drop_privileges out of xutilsDaniel Borkmann8-15/+31
Again, also to be able to maintain this more easily. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04xutils: move device management functions out of xutilsDaniel Borkmann16-168/+198
Move those functions out so that they can be more easily maintained in its separate file. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04xutils: break out promisc mode functionsDaniel Borkmann8-23/+36
Put them separately for the sake of maintanence. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04irq: rename device_bind_irq_to_cpu to device_set_irq_affinityDaniel Borkmann3-4/+4
This is more appropriate and consistent with other device irq functions. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04xio: rename xio to ioops and reduce its includesDaniel Borkmann24-40/+27
Rename xio to ioops (io-ops) and boil its include files down to a minimum. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04xio: add ioexact operationsDaniel Borkmann14-74/+70
Break this out so that we only need to have sigint non-static where it is really needed. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04xio: refactor fopencookie related functionsDaniel Borkmann6-46/+59
Again, we move them out of xio to shrink it down. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04rnd: break out prng from xutilsDaniel Borkmann7-46/+58
We only need it in curvetun, this makes it easier to maintain. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04corking: use bool instead of intDaniel Borkmann2-6/+8
We have a boolen condition, so use bool instead of doing stupid things with ints. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04trie: remove useless header commentDaniel Borkmann1-6/+0
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04cpusched: remove useless header commentDaniel Borkmann1-6/+0
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04corking: break out udp/tcp cork functionsDaniel Borkmann7-58/+80
No, it's not about whine bottles ... move udp and tcp cork functions out of xutils.c, so that we can further let it shrink. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04xutils: remove unused declarationDaniel Borkmann1-1/+0
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04cpus: break out cpu related functions from xutilsDaniel Borkmann6-12/+19
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04xutils: break out string handling and lockingDaniel Borkmann32-95/+149
Break out all string handling functions and lockme stuff in order to further eliminate the big code blob in xutils, so that it can be easier maintained. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-03iosched: break out io scheduling functions from xutilsDaniel Borkmann8-62/+88
Break this stuff out, for better maintainability and readability. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-03netsniff-ng: v3: fix packet accounting on --numDaniel Borkmann5-30/+34
We need to carry frame_count through multiple calls of walk function to account correctly for --num <pkts>. Also, move socket stats printing into rx ring, since it belongs there. Todo: the kernel socket seems to have a different count that what we see. This needs to be fixed one way or the other. Not yet sure what's causing this. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-03irq: break out from xutils and save + restoreDaniel Borkmann8-112/+145
Break out IRQ functionality from xutils, simplify it, and save + restore IRQ affinity list. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-03zsh: update zsh autocompletion functions to implementationHideo Hattori4-8/+13
Update those functions to implementation status. Signed-off-by: Hideo Hattori <hhatto.jp@gmail.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-02ifpps: Rename variable containing top number of CPUsTobias Klauser1-8/+8
To make it more clear whether we're using the total number of CPUs or the top number (default 10 or specified by user), rename the variable, where the top number is used. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2013-05-31netsniff-ng: minor: update help descriptionDaniel Borkmann1-3/+3
Give -J a lower prio in the help option ranking and state that its only for replay or forwarding. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-05-31man: netsniff-ng: update man page to document when -J is neededDaniel Borkmann1-13/+16
--jumbo-support is now not always needed anymore. So document when one needs it and when not. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-05-31netsniff-ng: enable jumbo frames on default in tpacket_v3Daniel Borkmann1-4/+4
Since frames are stored more compressed and contiguous, we can also enable jumbo support in pcap dumps by default, since we have no further restrictions in terms of ring buffer frame size. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-05-31ring_rx: if v3, free it in kernel space during closeDaniel Borkmann1-2/+7
Let this be freed by the kernel during close(2) call in case of v3 otherwise we would get a -EINVAL. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-05-31ring: netsniff-ng: migrate capture only to TPACKET_V3Daniel Borkmann7-128/+176
Lets migrate capturing to TPACKET_V3, since it will bring a better performance due to fewer page cache misses caused by a higher density of packets, since now they are contigous placed in the ring buffer. It is said that TPACKET_V3 brings the following benefits: *) ~15 - 20% reduction in CPU-usage *) ~20% increase in packet capture rate *) ~2x increase in packet density *) Port aggregation analysis *) Non static frame size to capture entire packet payload Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-05-31ring: setup frame structure for v2/v3 in a generic wayDaniel Borkmann8-18/+30
Prepare TPACKET_V3 for allowing to transparently setting up the frame structure such that we do not need to change much in the netsniff-ng/trafgen code. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>