1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015, 2016, 2017 Stefan Reichör <stefan@xsteve.at>
6 ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
7 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
10 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
12 ;;; Copyright © 2016, 2017 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
14 ;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
15 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
22 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
23 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
24 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
26 ;;; This file is part of GNU Guix.
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 ;;; GNU General Public License for more details.
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages networking)
42 #:use-module ((guix licenses) #:prefix license:)
43 #:use-module (guix packages)
44 #:use-module (guix download)
45 #:use-module (guix git-download)
46 #:use-module (guix build-system cmake)
47 #:use-module (guix build-system glib-or-gtk)
48 #:use-module (guix build-system gnu)
49 #:use-module (guix build-system perl)
50 #:use-module (guix build-system python)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages admin)
53 #:use-module (gnu packages adns)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages audio)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages base)
58 #:use-module (gnu packages bison)
59 #:use-module (gnu packages check)
60 #:use-module (gnu packages code)
61 #:use-module (gnu packages compression)
62 #:use-module (gnu packages crypto)
63 #:use-module (gnu packages curl)
64 #:use-module (gnu packages databases)
65 #:use-module (gnu packages dejagnu)
66 #:use-module (gnu packages documentation)
67 #:use-module (gnu packages flex)
68 #:use-module (gnu packages gettext)
69 #:use-module (gnu packages glib)
70 #:use-module (gnu packages gnome)
71 #:use-module (gnu packages gnupg)
72 #:use-module (gnu packages gtk)
73 #:use-module (gnu packages image)
74 #:use-module (gnu packages libidn)
75 #:use-module (gnu packages linux)
76 #:use-module (gnu packages lua)
77 #:use-module (gnu packages multiprecision)
78 #:use-module (gnu packages kerberos)
79 #:use-module (gnu packages ncurses)
80 #:use-module (gnu packages pcre)
81 #:use-module (gnu packages perl)
82 #:use-module (gnu packages perl-check)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages python)
85 #:use-module (gnu packages qt)
86 #:use-module (gnu packages readline)
87 #:use-module (gnu packages ssh)
88 #:use-module (gnu packages textutils)
89 #:use-module (gnu packages tls)
90 #:use-module (gnu packages valgrind)
91 #:use-module (gnu packages wm)
92 #:use-module (gnu packages wxwidgets)
93 #:use-module (gnu packages xml)
94 #:use-module (ice-9 match))
96 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
97 ;; the latest version. The author's git repository, mentioned in the 1.6.0
98 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
99 ;; with many OUI updates. Use it, even though it's also several years old now.
100 (define-public macchanger
107 (uri (string-append "https://github.com/alobbs/macchanger/"
108 "releases/download/" version "/"
109 name "-" version ".tar.gz"))
111 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
112 (build-system gnu-build-system)
113 (home-page "https://www.gnu.org/software/macchanger/")
114 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
115 (description "GNU MAC Changer is a utility for viewing and changing MAC
116 addresses of networking devices. New addresses may be set explicitly or
117 randomly. They can include MAC addresses of the same or other hardware vendors
118 or, more generally, MAC addresses of the same category of hardware.")
119 (license license:gpl2+)))
121 (define-public miredo
127 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
131 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
132 (build-system gnu-build-system)
135 (modify-phases %standard-phases
136 ;; The checkconf test in src/ requires network access.
138 'check 'disable-checkconf-test
140 (substitute* "src/Makefile"
141 (("^TESTS = .*") "TESTS = \n")))))))
142 (home-page "http://www.remlab.net/miredo/")
143 (synopsis "Teredo IPv6 tunneling software")
145 "Miredo is an implementation (client, relay, server) of the Teredo
146 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
147 residing in IPv4-only networks, even when they are behind a NAT device.")
148 (license license:gpl2+)))
157 "http://www.dest-unreach.org/socat/download/socat-"
161 "0lcj6zpra33xhgvhmz9l3cqz10v8ybafb8dd1yqkwf1rhy01ymp3"))))
162 (build-system gnu-build-system)
163 (arguments '(#:tests? #f)) ;no 'check' phase
164 (inputs `(("openssl" ,openssl)))
165 (home-page "http://www.dest-unreach.org/socat/")
167 "Open bidirectional communication channels from the command line")
169 "socat is a relay for bidirectional data transfer between two independent
170 data channels---files, pipes, devices, sockets, etc. It can create
171 \"listening\" sockets, named pipes, and pseudo terminals.
173 socat can be used, for instance, as TCP port forwarder, as a shell interface
174 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
175 line, to logically connect serial lines on different computers, or to
176 establish a relatively secure environment (su and chroot) for running client
177 or server shell scripts with network connections.")
178 (license license:gpl2)))
180 (define-public tcp-wrappers
182 (name "tcp-wrappers")
187 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
191 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
192 (build-system gnu-build-system)
195 (modify-phases %standard-phases
196 (delete 'configure) ; there is no configure script
197 (delete 'check) ; there are no tests
201 ;; Upstream doesn't generate a shared library. So we have to do it.
202 (setenv "CC" "gcc -fno-builtin -fPIC")
203 (substitute* "Makefile"
204 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
205 libwrap.so: $(LIB_OBJ)\n
206 \tgcc -shared $^ -o $@\n")))
207 ;; Deal with some gcc breakage.
208 (substitute* "percent_m.c"
209 (("extern char .sys_errlist.*;") ""))
210 (substitute* "scaffold.c"
211 (("extern char .malloc.*;") ""))
212 ;; This, believe it or not, is the recommended way to build!
213 (zero? (system* "make" "REAL_DAEMON_DIR=/etc" "linux"))))
214 ;; There is no make install stage, so we have to do it ourselves.
217 (let ((out (assoc-ref %outputs "out"))
218 (man-pages `("hosts_access.3"
226 (headers `("tcpd.h"))
227 (bins `("safe_finger"
234 (install-file x (string-append out "/include")))
238 (install-file x (string-append out "/share/man/man"
239 (string-take-right x 1))))
243 (install-file x (string-append out "/lib/")))
247 (install-file x (string-append out "/bin/")))
249 (home-page "http://www.porcupine.org")
250 (synopsis "Monitor and filter incoming requests for network services")
251 (description "With this package you can monitor and filter incoming requests for
252 network services. It includes a library which may be used by daemons to
253 transparently check connection attempts against an access control list.")
254 (license (license:non-copyleft "file://DISCLAIMER"
255 "See the file DISCLAIMER in the distribution."))))
258 (define-public zeromq
264 (uri (string-append "http://download.zeromq.org/zeromq-"
268 "00vvwhgcdr1lva2pavicvy92iad0hj8cf71n702hv6blw1kjj2z0"))))
269 (build-system gnu-build-system)
270 (home-page "http://zeromq.org")
271 (synopsis "Library for message-based applications")
273 "The 0MQ lightweight messaging kernel is a library which extends the
274 standard socket interfaces with features traditionally provided by specialized
275 messaging middle-ware products. 0MQ sockets provide an abstraction of
276 asynchronous message queues, multiple messaging patterns, message
277 filtering (subscriptions), seamless access to multiple transport protocols and
279 (license license:lgpl3+)))
288 "https://github.com/zeromq/" name
289 "/releases/download/v" version
290 "/" name "-" version ".tar.gz"))
293 "1h5hrcsc30fcwb032vy5gxkq4j4vv1y4dj460rfs1hhxi0cz83zh"))))
294 (build-system gnu-build-system)
296 '(;; TODO Tests fail for some reason:
298 ;; * zbeacon: OK (skipping test, no UDP broadcasting)
299 ;; E: (czmq_selftest) 18-02-24 16:25:52 No broadcast interface found, (ZSYS_INTERFACE=lo)
300 ;; make[2]: *** [Makefile:2245: check-local] Segmentation fault
301 ;; make[2]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
302 ;; make[1]: *** [Makefile:2032: check-am] Error 2
303 ;; make[1]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
304 ;; make: *** [Makefile:1588: check-recursive] Error 1
305 ;; phase `check' failed after 19.4 seconds
307 #:configure-flags '("--enable-drafts")))
309 `(("zeromq" ,zeromq)))
310 (home-page "http://zeromq.org")
311 (synopsis "High-level C bindings for ØMQ")
313 "czmq provides bindings for the ØMQ core API that hides the differences
314 between different versions of ØMQ.")
315 (license license:mpl2.0)))
317 (define-public librdkafka
324 "https://github.com/edenhill/librdkafka/archive/"
326 (file-name (string-append name "-" version ".tar.gz"))
329 "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
330 (build-system gnu-build-system)
333 (modify-phases %standard-phases
335 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
336 (lambda* (#:key outputs #:allow-other-keys)
337 (let ((out (assoc-ref outputs "out")))
338 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
340 (string-append "-Wl,-rpath=" out "/lib"))
341 (zero? (system* "./configure"
342 (string-append "--prefix=" out)))))))))
344 `(("python" ,python-wrapper)))
346 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
347 (home-page "https://github.com/edenhill/librdkafka")
348 (synopsis "Apache Kafka C/C++ client library")
350 "librdkafka is a C library implementation of the Apache Kafka protocol,
351 containing both Producer and Consumer support.")
352 (license license:bsd-2)))
354 (define-public libndp
360 (uri (string-append "http://libndp.org/files/"
361 name "-" version ".tar.gz"))
364 "03mczwrxqbp54msafxzzyhaazkvjdwm2kipjkrb5xg8kw22glz8c"))))
365 (build-system gnu-build-system)
366 (home-page "http://libndp.org/")
367 (synopsis "Library for Neighbor Discovery Protocol")
369 "libndp contains a library which provides a wrapper for IPv6 Neighbor
370 Discovery Protocol. It also provides a tool named ndptool for sending and
371 receiving NDP messages.")
372 (license license:lgpl2.1+)))
374 (define-public ethtool
380 (uri (string-append "mirror://kernel.org/software/network/"
381 name "/" name "-" version ".tar.xz"))
384 "00ss07jc7p276d83f6jpafgwyc9yiribciyqcgx9j86v49kpm5py"))))
385 (build-system gnu-build-system)
386 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
387 (synopsis "Display or change Ethernet device settings")
389 "ethtool can be used to query and change settings such as speed,
390 auto-negotiation and checksum offload on many network devices, especially
392 (license license:gpl2)))
394 (define-public ifstatus
400 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
401 "ifstatus%20v" version "/ifstatus-v"
405 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
406 (modules '((guix build utils)))
409 (substitute* "Main.h"
410 (("#include <stdio.h>")
411 "#include <stdio.h>\n#include <stdlib.h>"))
413 (build-system gnu-build-system)
415 '(#:tests? #f ; no "check" target
417 (modify-phases %standard-phases
418 (delete 'configure) ; no configure script
420 (lambda* (#:key outputs #:allow-other-keys)
421 (let* ((out (assoc-ref outputs "out"))
422 (bin (string-append out "/bin")))
424 (copy-file "ifstatus"
425 (string-append bin "/ifstatus"))))))))
426 (inputs `(("ncurses" ,ncurses)))
427 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
428 (synopsis "Text based network interface status monitor")
430 "IFStatus is a simple, easy-to-use program for displaying commonly
431 needed/wanted real-time traffic statistics of multiple network
432 interfaces, with a simple and efficient view on the command line. It is
433 intended as a substitute for the PPPStatus and EthStatus projects.")
434 (license license:gpl2+)))
442 (uri (string-append "mirror://sourceforge/nload/nload/" version
443 "/nload-" version ".tar.gz"))
446 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
447 (build-system gnu-build-system)
448 (inputs `(("ncurses" ,ncurses)))
449 (home-page "http://www.roland-riegel.de/nload/")
450 (synopsis "Realtime console network usage monitor")
452 "Nload is a console application which monitors network traffic and
453 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
454 two graphs, and provides additional info like total amount of transferred data
455 and min/max network usage.")
456 (license license:gpl2+)))
458 (define-public iodine
464 (uri (string-append "http://code.kryo.se/" name "/"
465 name "-" version ".tar.gz"))
468 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
469 (build-system gnu-build-system)
472 (modify-phases %standard-phases
474 (add-before 'build 'fix-ifconfig-path
475 ;; This package works only with the net-tools version of ifconfig.
476 (lambda* (#:key inputs #:allow-other-keys)
477 (substitute* "src/tun.c"
479 (string-append (assoc-ref inputs "net-tools") "/bin/")))))
480 (add-before 'check 'delete-failing-tests
481 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
483 (substitute* "tests/common.c"
484 (("tcase_add_test\\(tc, \
485 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
487 #:make-flags (list "CC=gcc"
488 (string-append "prefix=" (assoc-ref %outputs "out")))
489 #:test-target "test"))
490 (inputs `(("net-tools" ,net-tools)
492 (native-inputs `(("check" ,check)
493 ("pkg-config" ,pkg-config)))
494 (home-page "http://code.kryo.se/iodine/")
495 (synopsis "Tunnel IPv4 data through a DNS server")
496 (description "Iodine tunnels IPv4 data through a DNS server. This
497 can be useful in different situations where internet access is firewalled, but
498 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
499 and up to 1 Mbit/s downstream.")
500 ;; src/md5.[ch] is released under the zlib license
501 (license (list license:isc license:zlib))))
510 (uri (string-append "mirror://debian/pool/main/w/whois/"
511 name "_" version ".tar.xz"))
514 "0gl98l26dcgmlap0pxllbv4b9n2fr5b7zml3ijf8sf3a60qsskpg"))))
515 (build-system gnu-build-system)
517 `(#:tests? #f ; no test suite
518 #:make-flags (list "CC=gcc"
519 (string-append "prefix=" (assoc-ref %outputs "out")))
521 (modify-phases %standard-phases
522 (delete 'configure) ; no configure script
523 (add-before 'build 'setenv
525 (setenv "HAVE_ICONV" "1")
528 `(("libidn2" ,libidn2)))
530 `(("gettext" ,gettext-minimal)
532 ("pkg-config" ,pkg-config)))
533 (synopsis "Intelligent client for the WHOIS directory service")
535 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
536 It is commonly used to look up the registered users or assignees of an Internet
537 resource, such as a domain name, an IP address block, or an autonomous system.
538 It can automatically select the appropriate server for most queries.
540 For historical reasons, this package also includes @command{mkpasswd}, which
541 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
543 (home-page "https://github.com/rfc1036/whois")
544 (license license:gpl2+)))
546 (define-public wireshark
553 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
557 "126dvd6myjbxjr69dy9vzzdda2lmjy1wwwc6gcs5djb46jy5nvmb"))))
558 (build-system gnu-build-system)
559 (inputs `(("c-ares" ,c-ares)
563 ("libgcrypt" ,libgcrypt)
569 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
571 ("portaudio" ,portaudio)
573 ("qtmultimedia" ,qtmultimedia)
577 (native-inputs `(("perl" ,perl)
578 ("pkg-config" ,pkg-config)
579 ("python" ,python-wrapper)
580 ("qttools" ,qttools)))
583 (list (string-append "--with-c-ares=" (assoc-ref %build-inputs "c-ares"))
584 (string-append "--with-krb5=" (assoc-ref %build-inputs "krb5"))
585 (string-append "--with-libcap=" (assoc-ref %build-inputs "libcap"))
586 (string-append "--with-libssh=" (assoc-ref %build-inputs "libssh"))
587 (string-append "--with-lua=" (assoc-ref %build-inputs "lua"))
588 (string-append "--with-lz4=" (assoc-ref %build-inputs "lz4"))
589 (string-append "--with-pcap=" (assoc-ref %build-inputs "libpcap"))
590 (string-append "--with-portaudio="
591 (assoc-ref %build-inputs "portaudio"))
592 (string-append "--with-sbc=" (assoc-ref %build-inputs "sbc"))
593 (string-append "--with-snappy=" (assoc-ref %build-inputs "snappy"))
594 (string-append "--with-zlib=" (assoc-ref %build-inputs "zlib")))
596 (modify-phases %standard-phases
597 (add-after 'unpack 'patch-source
599 ;; Fix build against Qt 5.11.
600 (substitute* "ui/qt/packet_format_group_box.cpp"
601 (("#include <QStyle>") "#include <QStyle>
602 #include <QStyleOption>"))
603 (substitute* "ui/qt/time_shift_dialog.cpp"
604 (("#include <ui/time_shift.h>") "#include <ui/time_shift.h>
605 #include <QStyleOption>"))
606 (substitute* "ui/qt/wireless_frame.cpp"
607 (("#include <QProcess>") "#include <QProcess>
608 #include <QAbstractItemView>")))))))
609 (synopsis "Network traffic analyzer")
610 (description "Wireshark is a network protocol analyzer, or @dfn{packet
611 sniffer}, that lets you capture and interactively browse the contents of
613 (home-page "https://www.wireshark.org/")
614 (license license:gpl2+)))
623 (uri (string-append "https://fping.org/dist/fping-"
627 "1kp81wchi79l8z8rrj602fpjrd8bi84y3i7fsaclzlwap5943sv7"))))
628 (build-system gnu-build-system)
629 (home-page "http://fping.org/")
630 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
632 "fping is a ping like program which uses the Internet Control Message
633 Protocol (ICMP) echo request to determine if a target host is responding.
634 fping differs from ping in that you can specify any number of targets on the
635 command line, or specify a file containing the lists of targets to ping.
636 Instead of sending to one target until it times out or replies, fping will
637 send out a ping packet and move on to the next target in a round-robin
639 (license license:expat)))
641 (define-public httping
648 (uri (string-append "https://www.vanheusden.com/httping/httping-"
652 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
653 (build-system gnu-build-system)
655 `(("gettext" ,gettext-minimal)))
659 ("openssl" ,openssl)))
661 `(#:make-flags (list "CC=gcc"
662 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
664 #:tests? #f)) ; no tests
665 (home-page "https://www.vanheusden.com/httping/")
666 (synopsis "Web server latency and throughput monitor")
668 "httping measures how long it takes to connect to a web server, send an
669 HTTP(S) request, and receive the reply headers. It is somewhat similar to
670 @command{ping}, but can be used even in cases where ICMP traffic is blocked
671 by firewalls or when you want to monitor the response time of the actual web
672 application stack itself.")
673 (license license:gpl2))) ; with permission to link with OpenSSL
675 (define-public httpstat
682 (uri (pypi-uri "httpstat" version))
685 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
686 (build-system python-build-system)
687 (inputs `(("curl" ,curl)))
690 (modify-phases %standard-phases
691 (add-before 'build 'fix-curl-path
692 (lambda* (#:key inputs #:allow-other-keys)
693 (substitute* "httpstat.py"
694 (("ENV_CURL_BIN.get\\('curl'\\)")
695 (string-append "ENV_CURL_BIN.get('"
696 (assoc-ref inputs "curl")
697 "/bin/curl')"))))))))
698 (home-page "https://github.com/reorx/httpstat")
699 (synopsis "Visualize curl statistics")
701 "@command{httpstat} is a tool to visualize statistics from the
702 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
703 prints timing information for each step of the HTTP request (DNS lookup,
704 TCP connection, TLS handshake and so on) in the terminal.")
705 (license license:expat)))
707 (define-public bwm-ng
714 (uri (string-append "https://www.gropp.org/bwm-ng/bwm-ng-"
718 "1w0dwpjjm9pqi613i8glxrgca3rdyqyp3xydzagzr5ndc34z6z02"))))
719 (build-system gnu-build-system)
720 (inputs `(("ncurses" ,ncurses)))
721 (synopsis "Console based live network and disk I/O bandwidth monitor")
722 (description "Bandwidth Monitor NG is a small and simple console based
723 live network and disk I/O bandwidth monitor.")
724 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
725 (license license:gpl2)))
727 (define-public aircrack-ng
734 (uri (string-append "http://download.aircrack-ng.org/aircrack-ng-"
738 "0dpzx9kddxpgzmgvdpl3rxn0jdaqhm5wxxndp1xd7d75mmmc2fnr"))))
739 (build-system gnu-build-system)
741 `(("pkg-config" ,pkg-config)))
743 `(("libgcrypt" ,libgcrypt)
750 `(#:make-flags `("sqlite=true"
754 "experimental=true" ;build wesside-ng, etc.
755 "AVX2FLAG=N" "AVX1FLAG=N"
756 ,,@(match (%current-system)
757 ((or "x86_64-linux" "i686-linux")
761 ,(string-append "prefix=" %output))
762 #:phases (modify-phases %standard-phases
763 (delete 'configure) ;no configure phase
764 (add-after 'build 'absolutize-tools
765 (lambda* (#:key inputs #:allow-other-keys)
766 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
768 (substitute* "scripts/airmon-ng"
769 (("\\[ ! -x \"\\$\\(command -v ethtool 2>&1)\" \\]")
770 (string-append "! " ethtool " --version "
773 (string-append "$(" ethtool)))
775 (home-page "http://www.aircrack-ng.org")
776 (synopsis "Assess WiFi network security")
778 "Aircrack-ng is a complete suite of tools to assess WiFi network
779 security. It focuses on different areas of WiFi security: monitoring,
780 attacking, testing, and cracking. All tools are command-line driven, which
781 allows for heavy scripting.")
782 (license (list license:gpl2+ license:bsd-3))))
784 (define-public perl-net-dns
786 (name "perl-net-dns")
792 "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
797 "1l31kqrgjzq8zgpr86z12x550px5zpn563gmnja6m14b8fk6pm0s"))))
798 (build-system perl-build-system)
800 `(("perl-digest-hmac" ,perl-digest-hmac)))
801 (home-page "http://search.cpan.org/dist/Net-DNS")
803 "Perl Interface to the Domain Name System")
804 (description "Net::DNS is the Perl Interface to the Domain Name System.")
805 (license license:x11)))
807 (define-public perl-socket6
809 (name "perl-socket6")
815 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
820 "11j5jzqbzmwlws9zals43ry2f1nw9qy6im7yhn9ck5rikywrmm5z"))))
821 (build-system perl-build-system)
824 (modify-phases %standard-phases
826 (lambda* (#:key outputs #:allow-other-keys)
827 (let* ((out (assoc-ref outputs "out"))
828 (args `("Makefile.PL"
829 ,(string-append "PREFIX=" out)
830 "INSTALLDIRS=site")))
831 (setenv "CONFIG_SHELL" (which "sh"))
832 (zero? (apply system* "perl" args))))))))
833 (home-page "http://search.cpan.org/dist/Socket6")
835 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
836 (description "Socket6 binds the IPv6 related part of the C socket header
837 definitions and structure manipulators for Perl.")
838 (license license:bsd-3)))
840 (define-public perl-net-dns-resolver-programmable
842 (name "perl-net-dns-resolver-programmable")
848 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
849 "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
852 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
854 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
855 (build-system perl-build-system)
857 `(("perl-module-build" ,perl-module-build)))
858 (inputs `(("perl-net-dns" ,perl-net-dns)))
860 "http://search.cpan.org/dist/Net-DNS-Resolver-Programmable")
862 "Programmable DNS resolver class for offline emulation of DNS")
863 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
864 offline emulation of DNS.")
865 (license license:perl-license)))
867 (define-public perl-netaddr-ip
869 (name "perl-netaddr-ip")
875 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
880 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
881 (build-system perl-build-system)
884 (modify-phases %standard-phases
886 (lambda* (#:key outputs #:allow-other-keys)
887 (let* ((out (assoc-ref outputs "out"))
888 (args `("Makefile.PL"
889 ,(string-append "PREFIX=" out)
890 "INSTALLDIRS=site")))
891 (setenv "CONFIG_SHELL" (which "sh"))
892 (zero? (apply system* "perl" args))))))))
894 "http://search.cpan.org/dist/NetAddr-IP")
896 "Manages IPv4 and IPv6 addresses and subnets")
897 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
898 (license license:perl-license)))
900 (define-public perl-net-patricia
902 (name "perl-net-patricia")
908 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
913 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
914 (build-system perl-build-system)
916 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
917 ("perl-socket6" ,perl-socket6)))
919 "http://search.cpan.org/dist/Net-Patricia")
921 "Patricia Trie Perl module for fast IP address lookups")
923 "Net::Patricia does IP address lookups quickly in Perl.")
924 ;; The bindings are licensed under GPL2 or later.
925 ;; libpatricia is licensed under 2-clause BSD.
926 (license (list license:gpl2+ license:bsd-2))))
928 (define-public perl-net-cidr-lite
930 (name "perl-net-cidr-lite")
936 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
941 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
942 (build-system perl-build-system)
944 "http://search.cpan.org/dist/Net-CIDR-Lite")
946 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
947 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
948 (license license:gpl1+)))
950 ;; TODO: Use the geolite-mirror-simple.pl script from the example
951 ;; directory to stay current with the databases. How?
952 (define-public perl-geo-ip
960 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
965 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
966 (build-system perl-build-system)
967 (home-page "http://search.cpan.org/dist/Geo-IP")
969 "Look up location and network information by IP Address in Perl")
970 (description "The Perl module 'Geo::IP'. It looks up location and network
971 information by IP Address.")
972 (license license:perl-license)))
974 (define-public perl-io-socket-inet6
976 (name "perl-io-socket-inet6")
982 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
987 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
988 (build-system perl-build-system)
990 `(("perl-module-build" ,perl-module-build)
991 ("perl-test-pod" ,perl-test-pod)
992 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
993 (inputs `(("perl-socket6" ,perl-socket6)))
994 (arguments `(;; Need network socket API
997 "http://search.cpan.org/dist/IO-Socket-INET6")
999 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1000 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1002 (license license:perl-license)))
1004 (define-public libproxy
1010 (uri (string-append "https://github.com/libproxy/libproxy/"
1011 "releases/download/" version "/libproxy-"
1015 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1016 (build-system cmake-build-system)
1018 `(("pkg-config" ,pkg-config)))
1022 ("network-manager" ,network-manager)))
1025 (modify-phases %standard-phases
1028 (zero? (system* "ctest" "-E" "url-test")))))))
1029 (synopsis "Library providing automatic proxy configuration management")
1030 (description "Libproxy handles the details of HTTP/HTTPS proxy
1031 configuration for applications across all scenarios. Applications using
1032 libproxy only have to specify which proxy to use.")
1033 (home-page "https://libproxy.github.io/libproxy")
1034 (license license:lgpl2.1+)))
1036 (define-public proxychains-ng
1038 (name "proxychains-ng")
1042 (uri (string-append "https://github.com/rofl0r/" name "/releases/"
1043 "download/v" version "/" name "-" version
1047 "0kiss3ih6cwayzvqi5cx4kw4vh7r2kfxlbgk56v1f1066ncm8aj8"))))
1048 (build-system gnu-build-system)
1050 `(#:tests? #f ; there are no tests
1051 #:make-flags '("CC=gcc")
1053 (modify-phases %standard-phases
1054 (add-after 'unpack 'fix-configure-script
1056 ;; The configure script is very intolerant to unknown arguments,
1057 ;; such as "CONFIG_SHELL".
1058 (substitute* "configure"
1059 (("\\*\\) break ;;" line)
1060 (string-append "[A-Z]*) shift ;;\n"
1063 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1064 (description "Proxychains-ng is a preloader which hooks calls to sockets
1065 in dynamically linked programs and redirects them through one or more SOCKS or
1067 (home-page "https://github.com/rofl0r/proxychains-ng")
1068 (license license:gpl2+)))
1076 (uri (string-append "http://enet.bespin.org/download/"
1077 name "-" version ".tar.gz"))
1080 "0p53mnmjbm56wizwraznynx13fcibcxiqny110dp6a5a3w174q73"))))
1081 (build-system gnu-build-system)
1083 `(("pkg-config" ,pkg-config)))
1085 "Network communication layer on top of UDP")
1087 "ENet's purpose is to provide a relatively thin, simple and robust network
1088 communication layer on top of UDP. The primary feature it provides is optional
1089 reliable, in-order delivery of packets. ENet omits certain higher level
1090 networking features such as authentication, server discovery, encryption, or
1091 other similar tasks that are particularly application specific so that the
1092 library remains flexible, portable, and easily embeddable.")
1093 (home-page "http://enet.bespin.org")
1094 (license license:expat)))
1102 (uri (string-append "https://github.com/yrutschle/sslh/archive/v"
1104 (file-name (string-append name "-" version ".tar.gz"))
1107 "0pd8hifa9h0rm7vms3k6ic1k29xigrlv2idc5wgcafmb1v1243di"))))
1108 (build-system gnu-build-system)
1110 `(;; Test dependencies.
1113 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1114 ("perl-socket6" ,perl-socket6)
1116 ("valgrind" ,valgrind)))
1118 `(("libcap" ,libcap)
1119 ("libconfig" ,libconfig)
1121 ("tcp-wrappers" ,tcp-wrappers)))
1124 (modify-phases %standard-phases
1125 (delete 'configure) ; no configure script
1126 (add-before 'check 'fix-tests
1129 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1130 ;; The Guix build environment lacks ‘ip6-localhost’.
1131 (("ip6-localhost") "localhost"))
1133 ;; Many of these files are mentioned in the man page. Install them.
1134 (add-after 'install 'install-documentation
1135 (lambda* (#:key outputs #:allow-other-keys)
1136 (let* ((out (assoc-ref outputs "out"))
1137 (doc (string-append out "/share/doc/sslh")))
1138 (install-file "README.md" doc)
1141 (install-file file (string-append doc "/examples")))
1142 (append (find-files "." "\\.cfg")
1143 (find-files "scripts"))))
1145 #:make-flags (list "CC=gcc"
1148 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1149 #:test-target "test"))
1150 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1151 (synopsis "Applicative network protocol demultiplexer")
1153 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1154 accepting connections from clients on one port and forwarding them to different
1155 servers based on the contents of the first received data packet. Detection of
1156 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1157 implemented, but any other protocol that matches a regular expression can be
1158 added. sslh's name comes from its original application of serving both SSH and
1159 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1160 that block port 22.")
1161 (license (list license:bsd-2 ; tls.[ch]
1162 license:gpl2+)))) ; everything else
1164 (define-public iperf
1170 (uri (string-append "http://downloads.es.net/pub/iperf"
1171 "/iperf-" version ".tar.gz"))
1174 "0kvk8d0a3dcxc8fisyprbn01y8akxj4sx8ld5dh508p9dx077vx4"))))
1175 (build-system gnu-build-system)
1176 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1178 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1179 supports tuning of various parameters related to timing, buffers and
1180 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1181 the bandwidth, loss, and other parameters.")
1182 (home-page "http://software.es.net/iperf/")
1183 (license (list license:bsd-3 ; Main distribution.
1184 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1185 license:expat ; src/{cjson,net}.[ch]
1186 license:public-domain)))) ; src/portable_endian.h
1188 (define-public nethogs
1194 (uri (string-append "https://github.com/raboof/nethogs/archive/v"
1198 "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
1199 (file-name (string-append name "-" version ".tar.gz"))))
1200 (build-system gnu-build-system)
1202 `(("libpcap" ,libpcap)
1203 ("ncurses" ,ncurses)))
1205 `(#:make-flags `("CC=gcc"
1206 ,(string-append "PREFIX=" %output))
1208 (modify-phases %standard-phases
1209 (delete 'configure)))) ; No ./configure script.
1210 (home-page "https://github.com/raboof/nethogs")
1211 (synopsis "Per-process bandwidth monitor")
1212 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1213 breaking the traffic down per protocol or per subnet, like most tools do, it
1214 groups bandwidth by process.
1216 NetHogs does not rely on a special kernel module to be loaded. If there's
1217 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1218 which PID is causing this. This makes it easy to identify programs that have
1219 gone wild and are suddenly taking up your bandwidth.")
1220 (license license:gpl2+)))
1222 (define-public nzbget
1229 (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
1231 (file-name (string-append name "-" version ".tar.gz"))
1234 "0y713g7gd4n5chbhr8lv7k50rxkmzysrg13sscxam3s386mmlb1r"))
1235 (modules '((guix build utils)))
1237 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
1239 (substitute* "daemon/connect/TlsSocket.cpp"
1240 (("gnutls_certificate-verification_status_print")
1241 "gnutls_certificate_verification_status_print"))
1246 (string-append "--with-libcurses-includes="
1247 (assoc-ref %build-inputs "ncurses") "/include")
1248 (string-append "--with-libcurses-libraries="
1249 (assoc-ref %build-inputs "ncurses") "/lib")
1250 (string-append "--with-tlslib=GnuTLS"))))
1251 (build-system gnu-build-system)
1252 (inputs `(("gnutls" ,gnutls)
1253 ("libxml2" ,libxml2)
1254 ("ncurses" ,ncurses)
1256 (native-inputs `(("pkg-config" ,pkg-config)))
1257 (home-page "https://github.com/nzbget/nzbget")
1258 (synopsis "Usenet binary file downloader")
1260 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
1261 on information given in @code{nzb} files. NZBGet can be used in standalone
1262 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
1263 files as command-line parameters and it downloads them and exits. NZBGet also
1264 contains a Web interface. Its server can be controlled through remote
1265 procedure calls (RPCs).")
1266 (license license:gpl2+)))
1268 (define-public openvswitch
1270 (name "openvswitch")
1275 "http://openvswitch.org/releases/openvswitch-"
1279 "14rqqhfyv49irz8ag0qbv9jn8z0bn3qzxir3r074y16p4sg4674d"))))
1280 (build-system gnu-build-system)
1282 '(;; FIXME: many tests fail with:
1284 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
1285 ;; ovs-appctl -t ovs-vswitchd exit
1290 "--localstatedir=/var"
1291 "--with-dbdir=/var/lib/openvswitch")
1293 (modify-phases %standard-phases
1296 (zero? (system* "make"
1297 ;; Don't try to create directories under /var.
1305 ("pkg-config" ,pkg-config)
1306 ("python" ,python-2)
1308 ("util-linux" ,util-linux)))
1310 `(("python-six" ,python2-six)))
1312 `(("libcap-ng" ,libcap-ng)
1313 ("openssl" ,openssl)))
1314 (synopsis "Virtual network switch")
1315 (home-page "http://www.openvswitch.org/")
1317 "Open vSwitch is a multilayer virtual switch. It is designed to enable
1318 massive network automation through programmatic extension, while still
1319 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
1320 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
1321 (license ; see debian/copyright for detail
1322 (list license:lgpl2.1 ; xenserver and utilities/bugtool
1323 license:gpl2 ; datapath
1324 license:bsd-2 license:bsd-3
1325 license:asl2.0)))) ; all other
1327 (define-public python-ipy
1333 (uri (pypi-uri "IPy" version))
1336 "1f6sdrxclifky4gvkf4gvyv5hx3fjh8vzspnfrqki6qm5d9mmnk1"))))
1337 (build-system python-build-system)
1338 (home-page "https://github.com/autocracy/python-ipy/")
1339 (synopsis "Python class and tools for handling IP addresses and networks")
1340 (description "The @code{IP} class allows a comfortable parsing and
1341 handling for most notations in use for IPv4 and IPv6 addresses and
1343 (license license:bsd-3)))
1345 (define-public python2-ipy
1346 (package-with-python2 python-ipy))
1348 (define-public speedtest-cli
1350 (name "speedtest-cli")
1356 "https://github.com/sivel/speedtest-cli/archive/v" version ".tar.gz"))
1357 (file-name (string-append name "-" version ".tar.gz"))
1360 "16kcpba7nmszz2h0fq7qvv6src20syck2wlknaacg69kk88aybbk"))))
1361 (build-system python-build-system)
1362 (home-page "https://github.com/sivel/speedtest-cli")
1363 (synopsis "Internet bandwidth tester")
1365 "Command line interface for testing internet bandwidth using
1367 (license license:asl2.0)))
1369 (define-public tftp-hpa
1375 (uri (string-append "mirror://kernel.org/software/"
1376 "network/tftp/tftp-hpa/tftp-hpa-" version
1380 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
1381 (build-system gnu-build-system)
1382 (arguments `(#:tests? #f)) ; no test target
1383 (synopsis "HPA's tftp client")
1385 "This is a tftp client derived from OpenBSD tftp with some extra options
1386 added and bugs fixed. The source includes readline support but it is not
1387 enabled due to license conflicts between the BSD advertising clause and the GPL.")
1388 (home-page "http://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
1389 ;; Some source files are distributed under a 3-clause BSD license, and
1390 ;; others under a 4-clause BSD license. Refer to the files in the source
1391 ;; distribution for clarification.
1392 (license (list license:bsd-3 license:bsd-4))))
1394 (define-public pidentd
1401 (uri (string-append "https://github.com/ptrrkssn/pidentd/archive/"
1402 "v" version ".tar.gz"))
1403 (file-name (string-append name "-" version ".tar.gz"))
1406 "0y3kd1bkydqkpc1qdff24yswysamsqivvadjy0468qri5730izgc"))))
1407 (build-system gnu-build-system)
1409 `(#:tests? #f)) ; No tests are included
1411 `(("openssl" ,openssl))) ; For the DES library
1412 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
1413 (synopsis "Small Ident Daemon")
1415 "@dfn{Pidentd} (Peter's Ident Daemon) is a identd, which implements a
1416 identification server. Pidentd looks up specific TCP/IP connections and
1417 returns the user name and other information about the connection.")
1418 (license license:public-domain)))
1420 (define-public spiped
1426 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
1430 "1r51rdcl7nib1yv3yvgd5alwlkkwmr387brqavaklb0p2bwzixz6"))))
1431 (build-system gnu-build-system)
1433 '(#:test-target "test"
1434 #:make-flags (let* ((out (assoc-ref %outputs "out"))
1435 (bindir (string-append out "/bin"))
1436 (man1dir (string-append out "/share/man/man1")))
1437 (list "CC=gcc" ; It tries to invoke `c99`.
1438 (string-append "BINDIR=" bindir)
1439 (string-append "MAN1DIR=" man1dir)))
1441 (modify-phases %standard-phases
1442 (add-after 'unpack 'patch-command-invocations
1444 (substitute* '("Makefile"
1445 "libcperciva/cpusupport/Build/cpusupport.sh"
1446 "libcperciva/POSIX/posix-cflags.sh"
1447 "libcperciva/POSIX/posix-l.sh")
1448 (("command -p") ""))
1450 (delete 'configure) ; No ./configure script.
1451 (add-after 'install 'install-more-docs
1452 (lambda* (#:key outputs #:allow-other-keys)
1453 (let* ((out (assoc-ref %outputs "out"))
1454 (misc (string-append out "/share/doc/spiped")))
1455 (install-file "DESIGN.md" misc)
1458 `(("procps" ,procps))) ; `ps` is used by the test suite.
1460 `(("openssl" ,openssl)))
1461 (home-page "https://www.tarsnap.com/spiped.html")
1462 (synopsis "Create secure pipes between sockets")
1463 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
1464 symmetrically encrypted and authenticated pipes between socket addresses, so
1465 that one may connect to one address (e.g., a UNIX socket on localhost) and
1466 transparently have a connection established to another address (e.g., a UNIX
1467 socket on a different system). This is similar to 'ssh -L' functionality, but
1468 does not use SSH and requires a pre-shared symmetric key.")
1469 (license license:bsd-2)))
1471 (define-public quagga
1477 (uri (string-append "mirror://savannah/quagga/quagga-"
1481 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
1483 (search-patches "quagga-reproducible-build.patch"))))
1484 (build-system gnu-build-system)
1485 (native-inputs `(("pkg-config" ,pkg-config)
1487 ("dejagnu" ,dejagnu)))
1488 (inputs `(("readline" ,readline)
1489 ("c-ares" ,c-ares)))
1490 (synopsis "Routing Software Suite")
1491 (description "Quagga is a routing software suite, providing implementations
1492 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
1494 The Quagga architecture consists of a core daemon, @command{zebra}, which
1495 acts as an abstraction layer to the underlying Unix kernel and presents the
1496 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
1497 clients which typically implement a routing protocol and communicate routing
1498 updates to the zebra daemon.")
1499 (home-page "https://www.nongnu.org/quagga/")
1500 (license license:gpl2+)))
1502 (define-public thc-ipv6
1503 (let ((revision "0")
1504 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
1507 (version (git-version "3.4" revision commit))
1511 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
1513 (file-name (git-file-name name version))
1516 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
1517 (build-system gnu-build-system)
1519 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1520 #:tests? #f ; No test suite.
1522 (modify-phases %standard-phases
1523 (delete 'configure) ; No ./configure script.
1524 (add-before 'build 'patch-paths
1526 (substitute* "Makefile"
1527 (("/bin/echo") "echo"))
1529 (add-after 'install 'install-more-docs
1530 (lambda* (#:key outputs #:allow-other-keys)
1531 (let* ((out (assoc-ref outputs "out"))
1532 (doc (string-append out "/share/thc-ipv6/doc")))
1533 (install-file "README" doc)
1534 (install-file "HOWTO-INJECT" doc)
1536 ;; TODO Add libnetfilter-queue once packaged.
1538 `(("libpcap" ,libpcap)
1539 ("openssl" ,openssl)
1541 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
1542 (synopsis "IPv6 security research toolkit")
1543 (description "The THC IPv6 Toolkit provides command-line tools and a library
1544 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
1545 newer and only works on Ethernet network interfaces.")
1546 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
1547 ;; the source distribution for more information.
1548 (license license:agpl3))))
1557 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
1558 version "/bmon-" version ".tar.gz"))
1561 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
1562 (build-system gnu-build-system)
1564 `(("libconfuse" ,libconfuse)
1566 ("ncurses" ,ncurses)))
1568 `(("pkg-config" ,pkg-config)))
1569 (synopsis "Bandwidth monitor")
1570 (description "bmon is a monitoring and debugging tool to capture
1571 networking-related statistics and prepare them visually in a human-friendly
1572 way. It features various output methods including an interactive curses user
1573 interface and a programmable text output for scripting.")
1574 (home-page "https://github.com/tgraf/bmon")
1575 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
1576 ;; the source files only have expat license headers. Upstream has been
1577 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
1578 ;; Update the license field when upstream responds.
1579 (license (list license:bsd-2
1582 (define-public libnet
1588 (uri (string-append "https://github.com/sam-github/libnet/"
1589 "archive/libnet-" version ".tar.gz"))
1590 (file-name (string-append name "-" version ".tar.gz"))
1593 "0l4gbzzvr199fzczzricjz7b825i7dlk6sgl5p5alnkcagmq0xys"))))
1594 (build-system gnu-build-system)
1597 (modify-phases %standard-phases
1598 (add-after 'unpack 'chdir
1599 (lambda _ (chdir "libnet") #t))
1600 (add-before 'build 'build-doc
1601 (lambda* (#:key make-flags #:allow-other-keys)
1602 (zero? (apply system* "make" "-C" "doc" "doc"
1605 `(("autoconf" ,autoconf)
1606 ("automake" ,automake)
1607 ("libtool" ,libtool)
1608 ("doxygen" ,doxygen)))
1609 (home-page "https://sourceforge.net/projects/libnet-dev/")
1610 (synopsis "Framework for low-level network packet construction")
1612 "Libnet provides a fairly portable framework for network packet
1613 construction and injection. It features portable packet creation interfaces
1614 at the IP layer and link layer, as well as a host of supplementary
1615 functionality. Using libnet, quick and simple packet assembly applications
1616 can be whipped up with little effort.")
1617 (license license:bsd-2)))
1626 (uri (string-append "ftp://ftp.bitwizard.nl/" name "/"
1627 name "-" version ".tar.gz"))
1629 (base32 "10j3ds3p27jygys4x08kj8fi3zlsgiv72xsfazkah6plwawrv5zj"))))
1630 (build-system gnu-build-system)
1632 `(("libcap" ,libcap)
1633 ("ncurses" ,ncurses)))
1635 ;; The 0.92 release tarball still requires the ‘autoheader’ tool.
1636 `(("autoconf" ,autoconf)))
1638 `(#:tests? #f)) ; tests require network access
1639 (home-page "https://www.bitwizard.nl/mtr/")
1640 (synopsis "Network diagnostic tool")
1642 "@dfn{mtr} (My TraceRoute) combines the functionality of the
1643 @command{traceroute} and @command{ping} programs in a single network diagnostic
1644 tool. @command{mtr} can use several network protocols to detect intermediate
1645 routers (or @dfn{hops}) between the local host and a user-specified destination.
1646 It then continually measures the response time and packet loss at each hop, and
1647 displays the results in real time.")
1648 (license license:gpl2+)))
1650 (define-public strongswan
1657 (uri (string-append "https://download.strongswan.org/strongswan-"
1658 version ".tar.bz2"))
1660 (base32 "14ifqay54brw2b2hbmm517bxw8bs9631d7jm4g139igkxcq0m9p0"))))
1661 (build-system gnu-build-system)
1664 (modify-phases %standard-phases
1665 (add-before 'build 'patch-command-file-names
1666 (lambda* (#:key inputs #:allow-other-keys)
1667 (substitute* "src/libstrongswan/utils/process.c"
1669 (string-append (assoc-ref inputs "bash") "/bin/sh")))
1671 (substitute* "src/libstrongswan/tests/suites/test_process.c"
1672 (("/bin/sh") (which "sh"))
1673 (("/bin/echo") (which "echo"))
1674 (("cat") (which "cat")))
1676 (add-before 'check 'set-up-test-environment
1677 (lambda* (#:key inputs #:allow-other-keys)
1678 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
1683 ;; Disable bsd-4 licensed plugins
1685 "--disable-blowfish")))
1689 ("libgcrypt" ,libgcrypt)
1690 ("openssl" ,openssl)))
1692 `(("coreutils" ,coreutils)
1693 ("tzdata" ,tzdata-for-tests)))
1694 (synopsis "IKEv1/v2 keying daemon")
1695 (description "StrongSwan is an IPsec implementation originally based upon
1696 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
1698 (home-page "https://strongswan.org/")
1702 ;; src/libcharon/plugins/dnscert/*
1703 ;; src/libcharon/plugins/ext_auth/*
1704 ;; src/libcharon/plugins/vici/ruby/*
1705 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
1709 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
1710 license:public-domain
1711 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
1712 (license:non-copyleft
1713 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
1714 "pkcs11 contains a unknown permissive license. View the specific
1715 file for more details.")
1716 ;; These files are not included in the
1717 ;; build, they are disabled through
1718 ;; options to ./configure
1720 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
1721 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
1722 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
1723 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
1724 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
1725 ;; src/libstrongswan/plugins/des/des_crypter.c
1728 (define-public amule
1735 "https://github.com/amule-project/amule/archive/"
1737 (file-name (string-append name "-" version ".tar.gz"))
1740 "1wvcj0n9xz03xz5c2xwp6dwfp7sqjhhwbki3m0lwikskpn9lkzk2"))
1741 ;; Patch for adopting crypto++ >= 6.0.
1742 (patches (search-patches "amule-crypto-6.patch"))))
1743 (build-system gnu-build-system)
1746 (modify-phases %standard-phases
1747 (add-after 'patch-source-shebangs 'autogen
1749 (invoke "sh" "autogen.sh")
1763 "--enable-amule-gui"
1764 "--enable-amule-daemon"
1765 "--enable-webserver"
1766 "--with-denoise-level=0")))
1768 `(("autoconf" ,autoconf)
1769 ("automake" ,automake)
1770 ("gettext-minimal" ,gettext-minimal)
1774 ("crypto++" ,crypto++)
1776 ("wxwidgets-gtk2", wxwidgets-gtk2)))
1777 (home-page "http://amule.org/")
1778 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
1780 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
1781 file sharing networks. It includes a graphical user interface (GUI), a daemon
1782 allowing you to run a client with no graphical interface, and a Web GUI for
1783 remote access. The @command{amulecmd} command allows you to control aMule
1785 (license license:gpl2+)))
1794 (string-append "https://github.com/zeromq/zyre/releases/download/v"
1795 version "/" name "-" version ".tar.gz"))
1798 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
1799 (build-system gnu-build-system)
1800 (inputs `(("zeromq" ,zeromq)
1802 ("libsodium" ,libsodium)))
1803 (synopsis "Framework for proximity-based peer-to-peer applications")
1804 (description "Zyre provides reliable group messaging over local area
1805 networks using zeromq. It has these key characteristics:
1808 @item Zyre needs no administration or configuration.
1809 @item Peers may join and leave the network at any time.
1810 @item Peers talk to each other without any central brokers or servers.
1811 @item Peers can talk directly to each other.
1812 @item Peers can join groups, and then talk to groups.
1813 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
1814 @item Zyre is fast and has low latency, requiring no consensus protocols.
1815 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
1817 (home-page "https://github.com/zeromq/zyre")
1818 (license license:mpl2.0)))
1820 (define-public can-utils
1823 (version "2018.02.0")
1827 (url "https://github.com/linux-can/can-utils.git")
1828 (commit (string-append "v" version))))
1829 (file-name (git-file-name name version))
1832 "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb"))))
1833 (build-system gnu-build-system)
1835 `(#:tests? #f ; No tests exist.
1836 #:make-flags (list "CC=gcc"
1837 (string-append "PREFIX="
1838 (assoc-ref %outputs "out")))
1840 (modify-phases %standard-phases
1841 (delete 'configure))))
1842 (home-page "https://github.com/linux-can/can-utils")
1843 (synopsis "CAN utilities")
1844 (description "This package provides CAN utilities in the following areas:
1847 @item Basic tools to display, record, generate and replay CAN traffic
1848 @item CAN access via IP sockets
1849 @item CAN in-kernel gateway configuration
1850 @item CAN bus measurement and testing
1851 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
1853 @item Log file converters
1854 @item Serial Line Discipline configuration for slcan driver
1856 ;; Either BSD-3 or GPL-2 can be used.
1857 (license (list license:bsd-3 license:gpl2))))