├── .config ├── .gitignore ├── .gitlab-ci.yml ├── .indent.pro ├── AUTHORS ├── Config.in ├── INSTALL ├── LICENSE ├── Makefile ├── Makefile.custom ├── Makefile.flags ├── Makefile.help ├── applets ├── .gitignore ├── Kbuild.src ├── applet_tables.c ├── applets.c ├── busybox.mkll ├── busybox.mksuid ├── individual.c ├── install.sh ├── usage.c ├── usage_compressed └── usage_pod.c ├── applets_sh ├── README ├── dos2unix ├── nologin ├── tac └── unix2dos ├── arch └── i386 │ └── Makefile ├── archival ├── Config.src ├── Kbuild.src ├── bbunzip.c ├── gzip.c └── libarchive │ ├── Kbuild.src │ ├── bz │ ├── LICENSE │ ├── README │ ├── blocksort.c │ ├── bzlib.c │ ├── bzlib.h │ ├── bzlib_private.h │ ├── compress.c │ └── huffman.c │ ├── common.c │ ├── data_align.c │ ├── data_extract_all.c │ ├── data_extract_to_command.c │ ├── data_extract_to_stdout.c │ ├── data_skip.c │ ├── decompress_bunzip2.c │ ├── decompress_gunzip.c │ ├── decompress_uncompress.c │ ├── decompress_unlzma.c │ ├── decompress_unxz.c │ ├── filter_accept_all.c │ ├── filter_accept_list.c │ ├── filter_accept_list_reassign.c │ ├── filter_accept_reject_list.c │ ├── find_list_entry.c │ ├── get_header_ar.c │ ├── get_header_cpio.c │ ├── get_header_tar.c │ ├── get_header_tar_bz2.c │ ├── get_header_tar_gz.c │ ├── get_header_tar_lzma.c │ ├── get_header_tar_xz.c │ ├── header_list.c │ ├── header_skip.c │ ├── header_verbose_list.c │ ├── init_handle.c │ ├── liblzo.h │ ├── lzo1x_1.c │ ├── lzo1x_1o.c │ ├── lzo1x_9x.c │ ├── lzo1x_c.c │ ├── lzo1x_d.c │ ├── open_transformer.c │ ├── seek_by_jump.c │ ├── seek_by_read.c │ ├── unpack_ar_archive.c │ ├── unsafe_prefix.c │ └── unxz │ ├── README │ ├── xz.h │ ├── xz_config.h │ ├── xz_dec_bcj.c │ ├── xz_dec_lzma2.c │ ├── xz_dec_stream.c │ ├── xz_lzma2.h │ ├── xz_private.h │ └── xz_stream.h ├── build-config └── gitlab-docker │ └── Dockerfile ├── coreutils ├── Config.src ├── Kbuild.src ├── buddyinfo.c ├── condmv.c ├── date.c └── dfrm.c ├── eperd ├── Config.src ├── Kbuild.src ├── condmv.c ├── eooqd.c ├── eperd.c ├── eperd.h ├── evhttpget.c ├── evntp.c ├── evping.c ├── evsslgetcert.c ├── evtdig.c ├── evtlsscan.c ├── evtraceroute.c ├── http2.c ├── http2.h ├── httpget.c ├── json-macros.h ├── ntp.c ├── ping.c ├── readresolv.c ├── readresolv.h ├── sslgetcert.c ├── tcputil.c ├── tcputil.h ├── tls-hostcheck.c ├── tls-hostcheck.h ├── tls_hostname_validation.c ├── tls_hostname_validation.h └── traceroute.c ├── include ├── .gitignore ├── applet_metadata.h ├── applets.h.sh ├── applets.src.h ├── ar.h ├── atlas_path.h.in ├── bb_archive.h ├── bb_e2fs_defs.h ├── busybox.h ├── cmdtable.h ├── dump.h ├── fix_u32.h ├── grp_.h ├── inet_common.h ├── libbb.h ├── liblzo_interface.h ├── platform.h ├── pwd_.h ├── rtc_.h ├── shadow_.h ├── unicode.h ├── usage.src.h ├── volume_id.h ├── xatonum.h └── xregex.h ├── libbb ├── Config.src ├── Kbuild.src ├── appletlib.c ├── atlas_bb64.c ├── atlas_bb64.h ├── atlas_check_addr.c ├── atlas_gettime_mono.c ├── atlas_ipv6_option.c ├── atlas_name_macro.c ├── atlas_probe.c ├── atlas_probe.h ├── atlas_read_response.c ├── atlas_tests.c ├── atlas_time.c ├── atlas_timesync.c ├── atlas_unsafe.c ├── atlas_version.c ├── atlas_write_response.c ├── bb_bswap_64.c ├── bb_strtonum.c ├── bind_interface.c ├── common_bufsiz.c ├── compare_string_array.c ├── concat_path_file.c ├── copyfd.c ├── crc32.c ├── default_error_retval.c ├── full_write.c ├── get_last_path_component.c ├── getopt32.c ├── getpty.c ├── hash_md5_sha.c ├── inet_common.c ├── last_char_is.c ├── llist.c ├── login.c ├── match_fstype.c ├── messages.c ├── parse_config.c ├── perror_msg.c ├── pidfile.c ├── ptr_to_globals.c ├── read.c ├── read_printf.c ├── route_set_flags.c ├── safe_gethostname.c ├── safe_strncpy.c ├── safe_write.c ├── signals.c ├── skip_whitespace.c ├── strlcat.c ├── strlcpy.c ├── time.c ├── unicode.c ├── validate_atlas_id.c ├── validate_filename.c ├── verror_msg.c ├── vfork_daemon_rexec.c ├── wfopen.c ├── wfopen_input.c ├── xatonum.c ├── xatonum_template.c ├── xconnect.c ├── xfunc_die.c ├── xfuncs.c ├── xfuncs_printf.c └── xreadlink.c ├── libevent-2.1.11-stable ├── .gitignore ├── CMakeLists.txt ├── CONTRIBUTING.md ├── ChangeLog ├── ChangeLog-1.4 ├── ChangeLog-2.0 ├── Doxyfile ├── LICENSE ├── Makefile.am ├── Makefile.nmake ├── README.md ├── Vagrantfile ├── WIN32-Code │ ├── getopt.c │ ├── getopt.h │ ├── getopt_long.c │ ├── nmake │ │ ├── evconfig-private.h │ │ └── event2 │ │ │ └── event-config.h │ └── tree.h ├── appveyor.yml ├── arc4random.c ├── autogen.sh ├── buffer.c ├── buffer_iocp.c ├── bufferevent-internal.h ├── bufferevent.c ├── bufferevent_async.c ├── bufferevent_filter.c ├── bufferevent_openssl.c ├── bufferevent_pair.c ├── bufferevent_ratelim.c ├── bufferevent_sock.c ├── changelist-internal.h ├── checkpatch.sh ├── cmake │ ├── AddCompilerFlags.cmake │ ├── AddEventLibrary.cmake │ ├── COPYING-CMAKE-SCRIPTS │ ├── CheckConstExists.cmake │ ├── CheckFileOffsetBits.c │ ├── CheckFileOffsetBits.cmake │ ├── CheckFunctionExistsEx.c │ ├── CheckFunctionExistsEx.cmake │ ├── CheckFunctionKeywords.cmake │ ├── CheckPrototypeDefinition.c.in │ ├── CheckPrototypeDefinition.cmake │ ├── CheckWorkingKqueue.cmake │ ├── CodeCoverage.cmake │ ├── Copyright.txt │ ├── FindGit.cmake │ ├── LibeventConfig.cmake.in │ ├── LibeventConfigBuildTree.cmake.in │ ├── LibeventConfigVersion.cmake.in │ ├── Uninstall.cmake.in │ └── VersionViaGit.cmake ├── compat │ └── sys │ │ └── queue.h ├── configure.ac ├── configure.gnu ├── defer-internal.h ├── devpoll.c ├── epoll.c ├── epoll_sub.c ├── epolltable-internal.h ├── evbuffer-internal.h ├── evconfig-private.h.cmake ├── evconfig-private.h.in ├── evdns.3 ├── evdns.c ├── event-config.h.cmake ├── event-internal.h ├── event.3 ├── event.c ├── event_iocp.c ├── event_rpcgen.py ├── event_tagging.c ├── evmap-internal.h ├── evmap.c ├── evport.c ├── evrpc-internal.h ├── evrpc.c ├── evsignal-internal.h ├── evthread-internal.h ├── evthread.c ├── evthread_pthread.c ├── evthread_win32.c ├── evutil.c ├── evutil_rand.c ├── evutil_time.c ├── ht-internal.h ├── http-internal.h ├── http.c ├── include │ ├── evdns.h │ ├── event.h │ ├── event2 │ │ ├── buffer.h │ │ ├── buffer_compat.h │ │ ├── bufferevent.h │ │ ├── bufferevent_compat.h │ │ ├── bufferevent_ssl.h │ │ ├── bufferevent_struct.h │ │ ├── dns.h │ │ ├── dns_compat.h │ │ ├── dns_struct.h │ │ ├── event.h │ │ ├── event_compat.h │ │ ├── event_struct.h │ │ ├── http.h │ │ ├── http_compat.h │ │ ├── http_struct.h │ │ ├── keyvalq_struct.h │ │ ├── listener.h │ │ ├── rpc.h │ │ ├── rpc_compat.h │ │ ├── rpc_struct.h │ │ ├── tag.h │ │ ├── tag_compat.h │ │ ├── thread.h │ │ ├── util.h │ │ └── visibility.h │ ├── evhttp.h │ ├── evrpc.h │ ├── evutil.h │ └── include.am ├── iocp-internal.h ├── ipv6-internal.h ├── kqueue-internal.h ├── kqueue.c ├── libevent.pc.in ├── libevent_core.pc.in ├── libevent_extra.pc.in ├── libevent_openssl.pc.in ├── libevent_pthreads.pc.in ├── listener.c ├── log-internal.h ├── log.c ├── m4 │ ├── ac_backport_259_ssizet.m4 │ ├── acx_pthread.m4 │ ├── libevent_openssl.m4 │ └── ntp_pkg_config.m4 ├── make-event-config.sed ├── make_epoll_table.py ├── minheap-internal.h ├── mm-internal.h ├── openssl-compat.h ├── poll.c ├── ratelim-internal.h ├── sample │ ├── dns-example.c │ ├── event-read-fifo.c │ ├── hello-world.c │ ├── hostcheck.c │ ├── hostcheck.h │ ├── http-connect.c │ ├── http-server.c │ ├── https-client.c │ ├── include.am │ ├── le-proxy.c │ ├── openssl_hostname_validation.c │ ├── openssl_hostname_validation.h │ ├── signal-test.c │ └── time-test.c ├── select.c ├── signal.c ├── strlcpy-internal.h ├── strlcpy.c ├── test │ ├── Makefile.nmake │ ├── bench.c │ ├── bench_cascade.c │ ├── bench_http.c │ ├── bench_httpclient.c │ ├── check-dumpevents.py │ ├── include.am │ ├── print-winsock-errors.c │ ├── regress.c │ ├── regress.h │ ├── regress.rpc │ ├── regress_buffer.c │ ├── regress_bufferevent.c │ ├── regress_dns.c │ ├── regress_et.c │ ├── regress_finalize.c │ ├── regress_http.c │ ├── regress_iocp.c │ ├── regress_listener.c │ ├── regress_main.c │ ├── regress_minheap.c │ ├── regress_rpc.c │ ├── regress_ssl.c │ ├── regress_testutils.c │ ├── regress_testutils.h │ ├── regress_thread.c │ ├── regress_thread.h │ ├── regress_util.c │ ├── regress_zlib.c │ ├── rpcgen_wrapper.sh │ ├── test-changelist.c │ ├── test-closed.c │ ├── test-dumpevents.c │ ├── test-eof.c │ ├── test-fdleak.c │ ├── test-init.c │ ├── test-ratelim.c │ ├── test-ratelim.sh │ ├── test-time.c │ ├── test-weof.c │ ├── test.sh │ ├── tinytest.c │ ├── tinytest.h │ ├── tinytest_demo.c │ ├── tinytest_local.h │ └── tinytest_macros.h ├── time-internal.h ├── util-internal.h ├── whatsnew-2.0.txt ├── whatsnew-2.1.txt └── win32select.c ├── libpwdgrp ├── Kbuild.src └── uidgid_get.c ├── make_single_applets.sh ├── miscutils ├── Config.src ├── Kbuild.src ├── onlyuptime.c ├── perd.c ├── rchoose.c └── rptuptime.c ├── networking ├── Config.src ├── Kbuild.src ├── atlasinit.c ├── atlasinit.h ├── httppost.c ├── rptaddrs.c ├── rptra6.c ├── rxtxrpt.c └── telnetd.c ├── scripts ├── Kbuild.include ├── Kbuild.src ├── Makefile.IMA ├── Makefile.build ├── Makefile.clean ├── Makefile.host ├── Makefile.lib ├── basic │ ├── .gitignore │ ├── Makefile │ ├── docproc.c │ ├── fixdep.c │ └── split-include.c ├── bb_release ├── bloat-o-meter ├── checkhelp.awk ├── checkstack.pl ├── cleanup_printf2puts ├── echo.c ├── find_bad_common_bufsiz ├── find_stray_common_vars ├── find_stray_empty_lines ├── fix_ws.sh ├── gcc-version.sh ├── gen_build_files.sh ├── generate_BUFSIZ.sh ├── kconfig │ ├── .gitignore │ ├── Makefile │ ├── POTFILES.in │ ├── check.sh │ ├── conf.c │ ├── confdata.c │ ├── expr.c │ ├── expr.h │ ├── gconf.c │ ├── gconf.glade │ ├── images.c │ ├── kconfig_load.c │ ├── kxgettext.c │ ├── lex.zconf.c_shipped │ ├── lkc.h │ ├── lkc_proto.h │ ├── lxdialog │ │ ├── .gitignore │ │ ├── BIG.FAT.WARNING │ │ ├── Makefile │ │ ├── check-lxdialog.sh │ │ ├── checklist.c │ │ ├── colors.h │ │ ├── dialog.h │ │ ├── inputbox.c │ │ ├── lxdialog.c │ │ ├── menubox.c │ │ ├── msgbox.c │ │ ├── textbox.c │ │ ├── util.c │ │ └── yesno.c │ ├── mconf.c │ ├── menu.c │ ├── qconf.cc │ ├── qconf.h │ ├── symbol.c │ ├── util.c │ ├── zconf.gperf │ ├── zconf.hash.c_shipped │ ├── zconf.l │ ├── zconf.tab.c_shipped │ └── zconf.y ├── memusage ├── mkconfigs ├── mkdiff_obj ├── mkdiff_obj_bloat ├── mkmakefile ├── objsizes ├── randomtest ├── randomtest.loop ├── sample_pmap ├── showasm ├── test_make_O ├── test_make_clean └── trylink └── testsuite ├── README ├── evhttpget-data ├── evhttpget-0.net ├── evhttpget-0.out ├── evhttpget-1.net ├── evhttpget-1.out ├── evhttpget-4.net ├── evhttpget-4.out ├── evhttpget-6.net ├── evhttpget-6.out ├── evhttpget-A42.net ├── evhttpget-A42.out ├── evhttpget-b43.net ├── evhttpget-b43.out ├── evhttpget-body100.net ├── evhttpget-body100.out ├── evhttpget-eetim.net ├── evhttpget-eetim.out ├── evhttpget-etim.net ├── evhttpget-etim.out ├── evhttpget-head100.net ├── evhttpget-head100.out ├── evhttpget-host.net ├── evhttpget-host.out ├── evhttpget-https.net ├── evhttpget-https.out ├── evhttpget-user.net └── evhttpget-user.out ├── evhttpget-gentests ├── evhttpget.tests ├── evntp-data ├── evntp-4.net ├── evntp-4.out ├── evntp-6.net ├── evntp-6.out ├── evntp-A42.net ├── evntp-A42.out ├── evntp-B43.net ├── evntp-B43.out ├── evntp-c1.net └── evntp-c1.out ├── evntp-gentests ├── evntp.tests ├── evping-data ├── evping-4.net ├── evping-4.out ├── evping-6.net ├── evping-6.out ├── evping-A42.net ├── evping-A42.out ├── evping-B43.net ├── evping-B43.out ├── evping-c1.net ├── evping-c1.out ├── evping-s0.net ├── evping-s0.out ├── evping-s1024.net ├── evping-s1024.out ├── evping-s128.net ├── evping-s128.out ├── evping-s2048.net └── evping-s2048.out ├── evping-gentests ├── evping.tests ├── evsslgetcert-data ├── evsslgetcert-4.net ├── evsslgetcert-4.out ├── evsslgetcert-6.net ├── evsslgetcert-6.out ├── evsslgetcert-A42.net ├── evsslgetcert-A42.out ├── evsslgetcert-B43.net ├── evsslgetcert-B43.out ├── evsslgetcert-TLS1.0.net ├── evsslgetcert-TLS1.0.out ├── evsslgetcert-h.net ├── evsslgetcert-h.out ├── evsslgetcert-p853.net └── evsslgetcert-p853.out ├── evsslgetcert-gentests ├── evsslgetcert.tests ├── evtdig-data ├── evtdig-4.net ├── evtdig-4.out ├── evtdig-6.net ├── evtdig-6.out ├── evtdig-A123.net ├── evtdig-A123.out ├── evtdig-B456.net ├── evtdig-B456.out ├── evtdig-R.net ├── evtdig-R.out ├── evtdig-a.net ├── evtdig-a.out ├── evtdig-aaaa.net ├── evtdig-aaaa.out ├── evtdig-ad.net ├── evtdig-ad.out ├── evtdig-afsdb.net ├── evtdig-afsdb.out ├── evtdig-any.net ├── evtdig-any.out ├── evtdig-apl.net ├── evtdig-apl.out ├── evtdig-axfr.net ├── evtdig-axfr.out ├── evtdig-caa.net ├── evtdig-caa.out ├── evtdig-cd.net ├── evtdig-cd.out ├── evtdig-cert.net ├── evtdig-cert.out ├── evtdig-client-subnet.net ├── evtdig-client-subnet.out ├── evtdig-cname.net ├── evtdig-cname.out ├── evtdig-cookies.net ├── evtdig-cookies.out ├── evtdig-dlv.net ├── evtdig-dlv.out ├── evtdig-dname.net ├── evtdig-dname.out ├── evtdig-dnskey.net ├── evtdig-dnskey.out ├── evtdig-do.net ├── evtdig-do.out ├── evtdig-ds.net ├── evtdig-ds.out ├── evtdig-ends-flags-2.net ├── evtdig-ends-flags-2.out ├── evtdig-ends-option-64.net ├── evtdig-ends-option-64.out ├── evtdig-ends-version-42.net ├── evtdig-ends-version-42.out ├── evtdig-ends0-1024.net ├── evtdig-ends0-1024.out ├── evtdig-hostname.bind.net ├── evtdig-hostname.bind.out ├── evtdig-https.net ├── evtdig-https.out ├── evtdig-id.server.net ├── evtdig-id.server.out ├── evtdig-ipseckey.net ├── evtdig-ipseckey.out ├── evtdig-ipv6-dest-option-128.net ├── evtdig-ipv6-dest-option-128.out ├── evtdig-loc.net ├── evtdig-loc.out ├── evtdig-mx.net ├── evtdig-mx.out ├── evtdig-naptr.net ├── evtdig-naptr.out ├── evtdig-noabuf.net ├── evtdig-noabuf.out ├── evtdig-ns.net ├── evtdig-ns.out ├── evtdig-nsec.net ├── evtdig-nsec.out ├── evtdig-nsec3.net ├── evtdig-nsec3.out ├── evtdig-nsec3param.net ├── evtdig-nsec3param.out ├── evtdig-nsid.net ├── evtdig-nsid.out ├── evtdig-p_probe_id.net ├── evtdig-p_probe_id.out ├── evtdig-ptr.net ├── evtdig-ptr.out ├── evtdig-qbuf.net ├── evtdig-qbuf.out ├── evtdig-resolv.net ├── evtdig-resolv.out ├── evtdig-retry-3.net ├── evtdig-retry-3.out ├── evtdig-rp.net ├── evtdig-rp.out ├── evtdig-rrsig.net ├── evtdig-rrsig.out ├── evtdig-sig.net ├── evtdig-sig.out ├── evtdig-soa.net ├── evtdig-soa.out ├── evtdig-spf.net ├── evtdig-spf.out ├── evtdig-srv.net ├── evtdig-srv.out ├── evtdig-sshfp.net ├── evtdig-sshfp.out ├── evtdig-t.net ├── evtdig-t.out ├── evtdig-ta.net ├── evtdig-ta.out ├── evtdig-tls.net ├── evtdig-tls.out ├── evtdig-tlsa.net ├── evtdig-tlsa.out ├── evtdig-ttl.net ├── evtdig-ttl.out ├── evtdig-txt.net ├── evtdig-txt.out ├── evtdig-type-class-query.net ├── evtdig-type-class-query.out ├── evtdig-version.bind.net ├── evtdig-version.bind.out ├── evtdig-version.server.net └── evtdig-version.server.out ├── evtdig-gentests ├── evtdig.tests ├── evtraceroute-data ├── evtraceroute-4.net ├── evtraceroute-4.out ├── evtraceroute-4T.net ├── evtraceroute-4T.out ├── evtraceroute-4U.net ├── evtraceroute-4U.out ├── evtraceroute-6.net ├── evtraceroute-6.out ├── evtraceroute-6T.net ├── evtraceroute-6T.out ├── evtraceroute-6U.net ├── evtraceroute-6U.out ├── evtraceroute-A42.net ├── evtraceroute-A42.out ├── evtraceroute-B43.net ├── evtraceroute-B43.out ├── evtraceroute-D512.net ├── evtraceroute-D512.out ├── evtraceroute-F.net ├── evtraceroute-F.out ├── evtraceroute-H512.net ├── evtraceroute-H512.out ├── evtraceroute-S0.net ├── evtraceroute-S0.out ├── evtraceroute-S1024.net ├── evtraceroute-S1024.out ├── evtraceroute-S2048.net ├── evtraceroute-S2048.out ├── evtraceroute-a32.net ├── evtraceroute-a32.out ├── evtraceroute-b2.net ├── evtraceroute-b2.out ├── evtraceroute-c4.net ├── evtraceroute-c4.out ├── evtraceroute-f3.net ├── evtraceroute-f3.out ├── evtraceroute-g2.net ├── evtraceroute-g2.out ├── evtraceroute-m2.net ├── evtraceroute-m2.out ├── evtraceroute-p443.net ├── evtraceroute-p443.out ├── evtraceroute-t128.net └── evtraceroute-t128.out ├── evtraceroute-gentests ├── evtraceroute.tests ├── runtest └── testing.sh /.gitignore: -------------------------------------------------------------------------------- 1 | # 2 | # Kbuild ignores 3 | # 4 | .* 5 | *.o 6 | *.o.* 7 | *.a 8 | *.s 9 | Kbuild 10 | Config.in 11 | !.config 12 | !.gitlab-ci.yml 13 | # 14 | # Never ignore these 15 | # 16 | !.gitignore 17 | 18 | # 19 | # Normal output 20 | # 21 | /busybox 22 | /busybox_old 23 | /busybox_unstripped* 24 | 25 | # 26 | # Backups / patches 27 | # 28 | *~ 29 | *.orig 30 | *.rej 31 | /*.patch 32 | 33 | # 34 | # debugging stuff 35 | # 36 | core 37 | .gdb_history 38 | .gdbinit 39 | 40 | # 41 | # testing output 42 | # 43 | /busybox.links 44 | /runtest-tempdir-links 45 | /testsuite/echo-ne 46 | 47 | # 48 | # cscope output 49 | # 50 | cscope.files 51 | cscope.in.out 52 | cscope.out 53 | cscope.po.out 54 | 55 | libevent-2.0.20-stable/autom4te.cache 56 | libevent-2.0.20-stable/config.h 57 | libevent-2.0.20-stable/config.log 58 | libevent-2.0.20-stable/config.status 59 | libevent-2.0.20-stable/.deps 60 | libevent-2.0.20-stable/include/event2/event-config.h 61 | libevent-2.0.20-stable/include/Makefile 62 | libevent-2.0.20-stable/*.la 63 | libevent-2.0.20-stable/.libs 64 | libevent-2.0.20-stable/libtool 65 | libevent-2.0.20-stable/*.lo 66 | libevent-2.0.20-stable/Makefile 67 | libevent-2.0.20-stable/*.pc 68 | libevent-2.0.20-stable/sample 69 | libevent-2.0.20-stable/sample/.libs/* 70 | libevent-2.0.20-stable/stamp-h1 71 | libevent-2.0.20-stable/test 72 | 73 | include/atlas_path.h 74 | -------------------------------------------------------------------------------- /.indent.pro: -------------------------------------------------------------------------------- 1 | --blank-lines-after-declarations 2 | --blank-lines-after-procedures 3 | --break-before-boolean-operator 4 | --no-blank-lines-after-commas 5 | --braces-on-if-line 6 | --braces-on-struct-decl-line 7 | --comment-indentation25 8 | --declaration-comment-column25 9 | --no-comment-delimiters-on-blank-lines 10 | --cuddle-else 11 | --continuation-indentation4 12 | --case-indentation0 13 | --else-endif-column33 14 | --space-after-cast 15 | --line-comments-indentation0 16 | --declaration-indentation1 17 | --dont-format-first-column-comments 18 | --dont-format-comments 19 | --honour-newlines 20 | --indent-level4 21 | /* changed from 0 to 4 */ 22 | --parameter-indentation4 23 | --line-length78 /* changed from 75 */ 24 | --continue-at-parentheses 25 | --no-space-after-function-call-names 26 | --dont-break-procedure-type 27 | --dont-star-comments 28 | --leave-optional-blank-lines 29 | --dont-space-special-semicolon 30 | --tab-size4 31 | /* additions by Mark */ 32 | --case-brace-indentation0 33 | --leave-preprocessor-space 34 | -------------------------------------------------------------------------------- /applets/.gitignore: -------------------------------------------------------------------------------- 1 | /applet_tables 2 | /usage 3 | /usage_pod 4 | -------------------------------------------------------------------------------- /applets/applets.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Stub for linking busybox binary against libbusybox. 4 | * 5 | * Copyright (C) 2007 Denys Vlasenko 6 | * 7 | * Licensed under GPLv2, see file LICENSE in this source tree. 8 | */ 9 | #include "busybox.h" 10 | 11 | #if ENABLE_BUILD_LIBBUSYBOX 12 | int main(int argc UNUSED_PARAM, char **argv) 13 | { 14 | return lbb_main(argv); 15 | } 16 | #endif 17 | -------------------------------------------------------------------------------- /applets/busybox.mkll: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Make busybox links list file. 3 | 4 | # input $1: full path to Config.h 5 | # input $2: full path to applets.h 6 | # output (stdout): list of pathnames that should be linked to busybox 7 | 8 | # Maintainer: Larry Doolittle 9 | 10 | export LC_ALL=POSIX 11 | export LC_CTYPE=POSIX 12 | 13 | CONFIG_H=${1:-include/autoconf.h} 14 | APPLETS_H=${2:-include/applets.h} 15 | $HOSTCC -E -DMAKE_LINKS -include $CONFIG_H $APPLETS_H | 16 | awk '/^[ \t]*LINK/{ 17 | dir=substr($2,7) 18 | gsub("_","/",dir) 19 | if(dir=="/ROOT") dir="" 20 | file=$3 21 | gsub("\"","",file) 22 | if (file=="busybox") next 23 | print tolower(dir) "/" file 24 | }' 25 | -------------------------------------------------------------------------------- /applets/individual.c: -------------------------------------------------------------------------------- 1 | /* Minimal wrapper to build an individual busybox applet. 2 | * 3 | * Copyright 2005 Rob Landley 11 | #include 12 | #include "usage.h" 13 | 14 | int main(int argc, char **argv) 15 | { 16 | applet_name = argv[0]; 17 | return APPLET_main(argc, argv); 18 | } 19 | 20 | void bb_show_usage(void) 21 | { 22 | fputs(APPLET_full_usage "\n", stdout); 23 | exit(EXIT_FAILURE); 24 | } 25 | -------------------------------------------------------------------------------- /applets/usage.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Copyright (C) 2008 Denys Vlasenko. 4 | * 5 | * Licensed under GPLv2, see file LICENSE in this source tree. 6 | */ 7 | #include 8 | #include 9 | #include 10 | 11 | #include "autoconf.h" 12 | 13 | /* Since we can't use platform.h, have to do this again by hand: */ 14 | #if ENABLE_NOMMU 15 | # define BB_MMU 0 16 | # define USE_FOR_NOMMU(...) __VA_ARGS__ 17 | # define USE_FOR_MMU(...) 18 | #else 19 | # define BB_MMU 1 20 | # define USE_FOR_NOMMU(...) 21 | # define USE_FOR_MMU(...) __VA_ARGS__ 22 | #endif 23 | 24 | #include "usage.h" 25 | #define MAKE_USAGE(aname, usage) { aname, usage }, 26 | static struct usage_data { 27 | const char *aname; 28 | const char *usage; 29 | } usage_array[] = { 30 | #include "applets.h" 31 | }; 32 | 33 | static int compare_func(const void *a, const void *b) 34 | { 35 | const struct usage_data *ua = a; 36 | const struct usage_data *ub = b; 37 | return strcmp(ua->aname, ub->aname); 38 | } 39 | 40 | int main(void) 41 | { 42 | int i; 43 | int num_messages = sizeof(usage_array) / sizeof(usage_array[0]); 44 | 45 | if (num_messages == 0) 46 | return 0; 47 | 48 | qsort(usage_array, 49 | num_messages, sizeof(usage_array[0]), 50 | compare_func); 51 | for (i = 0; i < num_messages; i++) 52 | write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1); 53 | 54 | return 0; 55 | } 56 | -------------------------------------------------------------------------------- /applets_sh/README: -------------------------------------------------------------------------------- 1 | This directory contains examples of applets implemented as shell scripts. 2 | 3 | So far these scripts are not hooked to the build system and are not 4 | installed by "make install". If you want to use them, 5 | you need to install them by hand. 6 | -------------------------------------------------------------------------------- /applets_sh/dos2unix: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # TODO: use getopt to avoid parsing options as filenames, 3 | # and to support -- and --help 4 | [ $# -ne 0 ] && DASH_I=-i 5 | sed $DASH_I -e 's/\r$//' "$@" 6 | -------------------------------------------------------------------------------- /applets_sh/nologin: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cat /etc/nologin.txt 2>/dev/null || echo "This account is not available" 3 | sleep 5 4 | exit 1 5 | -------------------------------------------------------------------------------- /applets_sh/tac: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # TODO: use getopt to avoid parsing options as filenames, 3 | # and to support -- and --help 4 | for i in "$@" 5 | do 6 | sed -e '1!G;h;$!d' "$i" 7 | done 8 | -------------------------------------------------------------------------------- /applets_sh/unix2dos: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # TODO: use getopt to avoid parsing options as filenames, 3 | # and to support -- and --help 4 | [ $# -ne 0 ] && DASH_I=-i 5 | sed $DASH_I -e 's/$/\r/' "$@" 6 | -------------------------------------------------------------------------------- /arch/i386/Makefile: -------------------------------------------------------------------------------- 1 | # ========================================================================== 2 | # Build system 3 | # ========================================================================== 4 | 5 | # -mpreferred-stack-boundary=2 is essential in preventing gcc 4.2.x 6 | # from aligning stack to 16 bytes. (Which is gcc's way of supporting SSE). 7 | CFLAGS += $(call cc-option,-march=i386 -mpreferred-stack-boundary=2,) 8 | -------------------------------------------------------------------------------- /archival/Config.src: -------------------------------------------------------------------------------- 1 | # 2 | # For a description of the syntax of this configuration file, 3 | # see scripts/kbuild/config-language.txt. 4 | # 5 | 6 | menu "Archival Utilities" 7 | 8 | config FEATURE_SEAMLESS_XZ 9 | bool "Make tar, rpm, modprobe etc understand .xz data" 10 | default y 11 | help 12 | Make tar, rpm, modprobe etc understand .xz data. 13 | 14 | config FEATURE_SEAMLESS_LZMA 15 | bool "Make tar, rpm, modprobe etc understand .lzma data" 16 | default y 17 | help 18 | Make tar, rpm, modprobe etc understand .lzma data. 19 | 20 | config FEATURE_SEAMLESS_BZ2 21 | bool "Make tar, rpm, modprobe etc understand .bz2 data" 22 | default y 23 | help 24 | Make tar, rpm, modprobe etc understand .bz2 data. 25 | 26 | config FEATURE_SEAMLESS_GZ 27 | bool "Make tar, rpm, modprobe etc understand .gz data" 28 | default y 29 | help 30 | Make tar, rpm, modprobe etc understand .gz data. 31 | 32 | config FEATURE_SEAMLESS_Z 33 | bool "Make tar, rpm, modprobe etc understand .Z data" 34 | default n # it is ancient 35 | help 36 | Make tar, rpm, modprobe etc understand .Z data. 37 | 38 | INSERT 39 | 40 | endmenu 41 | -------------------------------------------------------------------------------- /archival/Kbuild.src: -------------------------------------------------------------------------------- 1 | # Makefile for busybox 2 | # 3 | # Copyright (C) 1999-2005 by Erik Andersen 4 | # 5 | # Licensed under GPLv2, see file LICENSE in this source tree. 6 | 7 | libs-y += libarchive/ 8 | 9 | lib-y:= 10 | 11 | INSERT 12 | -------------------------------------------------------------------------------- /archival/libarchive/common.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | const char cpio_TRAILER[] ALIGN1 = "TRAILER!!!"; 10 | -------------------------------------------------------------------------------- /archival/libarchive/data_align.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | void FAST_FUNC data_align(archive_handle_t *archive_handle, unsigned boundary) 10 | { 11 | unsigned skip_amount = (boundary - (archive_handle->offset % boundary)) % boundary; 12 | 13 | archive_handle->seek(archive_handle->src_fd, skip_amount); 14 | archive_handle->offset += skip_amount; 15 | } 16 | -------------------------------------------------------------------------------- /archival/libarchive/data_extract_to_stdout.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | void FAST_FUNC data_extract_to_stdout(archive_handle_t *archive_handle) 10 | { 11 | bb_copyfd_exact_size(archive_handle->src_fd, 12 | STDOUT_FILENO, 13 | archive_handle->file_header->size); 14 | } 15 | -------------------------------------------------------------------------------- /archival/libarchive/data_skip.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | void FAST_FUNC data_skip(archive_handle_t *archive_handle) 10 | { 11 | archive_handle->seek(archive_handle->src_fd, archive_handle->file_header->size); 12 | } 13 | -------------------------------------------------------------------------------- /archival/libarchive/filter_accept_all.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Copyright (C) 2002 by Glenn McGrath 4 | * 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 | */ 7 | 8 | #include "libbb.h" 9 | #include "bb_archive.h" 10 | 11 | /* Accept any non-null name, its not really a filter at all */ 12 | char FAST_FUNC filter_accept_all(archive_handle_t *archive_handle) 13 | { 14 | if (archive_handle->file_header->name) 15 | return EXIT_SUCCESS; 16 | return EXIT_FAILURE; 17 | } 18 | -------------------------------------------------------------------------------- /archival/libarchive/filter_accept_list.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Copyright (C) 2002 by Glenn McGrath 4 | * 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 | */ 7 | 8 | #include "libbb.h" 9 | #include "bb_archive.h" 10 | 11 | /* 12 | * Accept names that are in the accept list, ignoring reject list. 13 | */ 14 | char FAST_FUNC filter_accept_list(archive_handle_t *archive_handle) 15 | { 16 | if (find_list_entry(archive_handle->accept, archive_handle->file_header->name)) 17 | return EXIT_SUCCESS; 18 | return EXIT_FAILURE; 19 | } 20 | -------------------------------------------------------------------------------- /archival/libarchive/filter_accept_reject_list.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Copyright (C) 2002 by Glenn McGrath 4 | * 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 | */ 7 | 8 | #include "libbb.h" 9 | #include "bb_archive.h" 10 | 11 | /* 12 | * Accept names that are in the accept list and not in the reject list 13 | */ 14 | char FAST_FUNC filter_accept_reject_list(archive_handle_t *archive_handle) 15 | { 16 | const char *key; 17 | const llist_t *reject_entry; 18 | const llist_t *accept_entry; 19 | 20 | key = archive_handle->file_header->name; 21 | 22 | /* If the key is in a reject list fail */ 23 | reject_entry = find_list_entry2(archive_handle->reject, key); 24 | if (reject_entry) { 25 | return EXIT_FAILURE; 26 | } 27 | 28 | /* Fail if an accept list was specified and the key wasnt in there */ 29 | if (archive_handle->accept) { 30 | accept_entry = find_list_entry2(archive_handle->accept, key); 31 | if (!accept_entry) { 32 | return EXIT_FAILURE; 33 | } 34 | } 35 | 36 | /* Accepted */ 37 | return EXIT_SUCCESS; 38 | } 39 | -------------------------------------------------------------------------------- /archival/libarchive/get_header_tar_bz2.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | char FAST_FUNC get_header_tar_bz2(archive_handle_t *archive_handle) 10 | { 11 | /* Can't lseek over pipes */ 12 | archive_handle->seek = seek_by_read; 13 | 14 | fork_transformer_with_sig(archive_handle->src_fd, unpack_bz2_stream, "bunzip2"); 15 | archive_handle->offset = 0; 16 | while (get_header_tar(archive_handle) == EXIT_SUCCESS) 17 | continue; 18 | 19 | /* Can only do one file at a time */ 20 | return EXIT_FAILURE; 21 | } 22 | -------------------------------------------------------------------------------- /archival/libarchive/get_header_tar_gz.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | char FAST_FUNC get_header_tar_gz(archive_handle_t *archive_handle) 10 | { 11 | /* Can't lseek over pipes */ 12 | archive_handle->seek = seek_by_read; 13 | 14 | fork_transformer_with_sig(archive_handle->src_fd, unpack_gz_stream, "gunzip"); 15 | archive_handle->offset = 0; 16 | while (get_header_tar(archive_handle) == EXIT_SUCCESS) 17 | continue; 18 | 19 | /* Can only do one file at a time */ 20 | return EXIT_FAILURE; 21 | } 22 | -------------------------------------------------------------------------------- /archival/libarchive/get_header_tar_lzma.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Small lzma deflate implementation. 4 | * Copyright (C) 2006 Aurelien Jacobs 5 | * 6 | * Licensed under GPLv2, see file LICENSE in this source tree. 7 | */ 8 | 9 | #include "libbb.h" 10 | #include "bb_archive.h" 11 | 12 | char FAST_FUNC get_header_tar_lzma(archive_handle_t *archive_handle) 13 | { 14 | /* Can't lseek over pipes */ 15 | archive_handle->seek = seek_by_read; 16 | 17 | fork_transformer_with_sig(archive_handle->src_fd, unpack_lzma_stream, "unlzma"); 18 | archive_handle->offset = 0; 19 | while (get_header_tar(archive_handle) == EXIT_SUCCESS) 20 | continue; 21 | 22 | /* Can only do one file at a time */ 23 | return EXIT_FAILURE; 24 | } 25 | -------------------------------------------------------------------------------- /archival/libarchive/get_header_tar_xz.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | char FAST_FUNC get_header_tar_xz(archive_handle_t *archive_handle) 10 | { 11 | /* Can't lseek over pipes */ 12 | archive_handle->seek = seek_by_read; 13 | 14 | fork_transformer_with_sig(archive_handle->src_fd, unpack_xz_stream, "unxz"); 15 | archive_handle->offset = 0; 16 | while (get_header_tar(archive_handle) == EXIT_SUCCESS) 17 | continue; 18 | 19 | /* Can only do one file at a time */ 20 | return EXIT_FAILURE; 21 | } 22 | -------------------------------------------------------------------------------- /archival/libarchive/header_list.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | #include "libbb.h" 6 | #include "bb_archive.h" 7 | 8 | void FAST_FUNC header_list(const file_header_t *file_header) 9 | { 10 | //TODO: cpio -vp DIR should output "DIR/NAME", not just "NAME" */ 11 | puts(file_header->name); 12 | } 13 | -------------------------------------------------------------------------------- /archival/libarchive/header_skip.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | #include "libbb.h" 6 | #include "bb_archive.h" 7 | 8 | void FAST_FUNC header_skip(const file_header_t *file_header UNUSED_PARAM) 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /archival/libarchive/init_handle.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | archive_handle_t* FAST_FUNC init_handle(void) 10 | { 11 | archive_handle_t *archive_handle; 12 | 13 | /* Initialize default values */ 14 | archive_handle = xzalloc(sizeof(archive_handle_t)); 15 | archive_handle->file_header = xzalloc(sizeof(file_header_t)); 16 | archive_handle->action_header = header_skip; 17 | archive_handle->action_data = data_skip; 18 | archive_handle->filter = filter_accept_all; 19 | archive_handle->seek = seek_by_jump; 20 | #if ENABLE_CPIO || ENABLE_RPM2CPIO || ENABLE_RPM 21 | archive_handle->cpio__owner.uid = (uid_t)-1L; 22 | archive_handle->cpio__owner.gid = (gid_t)-1L; 23 | #endif 24 | 25 | return archive_handle; 26 | } 27 | -------------------------------------------------------------------------------- /archival/libarchive/seek_by_jump.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | void FAST_FUNC seek_by_jump(int fd, off_t amount) 10 | { 11 | if (amount 12 | && lseek(fd, amount, SEEK_CUR) == (off_t) -1 13 | ) { 14 | if (errno == ESPIPE) 15 | seek_by_read(fd, amount); 16 | else 17 | bb_perror_msg_and_die("seek failure"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /archival/libarchive/seek_by_read.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | /* If we are reading through a pipe, or from stdin then we can't lseek, 10 | * we must read and discard the data to skip over it. 11 | */ 12 | void FAST_FUNC seek_by_read(int fd, off_t amount) 13 | { 14 | if (amount) 15 | bb_copyfd_exact_size(fd, -1, amount); 16 | } 17 | -------------------------------------------------------------------------------- /archival/libarchive/unpack_ar_archive.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | #include "ar.h" 9 | 10 | void FAST_FUNC unpack_ar_archive(archive_handle_t *ar_archive) 11 | { 12 | char magic[7]; 13 | 14 | xread(ar_archive->src_fd, magic, AR_MAGIC_LEN); 15 | if (!is_prefixed_with(magic, AR_MAGIC)) { 16 | bb_error_msg_and_die("invalid ar magic"); 17 | } 18 | ar_archive->offset += AR_MAGIC_LEN; 19 | 20 | while (get_header_ar(ar_archive) == EXIT_SUCCESS) 21 | continue; 22 | } 23 | -------------------------------------------------------------------------------- /archival/libarchive/unsafe_prefix.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include "bb_archive.h" 8 | 9 | const char* FAST_FUNC strip_unsafe_prefix(const char *str) 10 | { 11 | const char *cp = str; 12 | while (1) { 13 | char *cp2; 14 | if (*cp == '/') { 15 | cp++; 16 | continue; 17 | } 18 | if (is_prefixed_with(cp, "/../"+1)) { 19 | cp += 3; 20 | continue; 21 | } 22 | cp2 = strstr(cp, "/../"); 23 | if (!cp2) 24 | break; 25 | cp = cp2 + 4; 26 | } 27 | if (cp != str) { 28 | static smallint warned = 0; 29 | if (!warned) { 30 | warned = 1; 31 | bb_error_msg("removing leading '%.*s' from member names", 32 | (int)(cp - str), str); 33 | } 34 | } 35 | return cp; 36 | } 37 | -------------------------------------------------------------------------------- /build-config/gitlab-docker/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.9.2009 2 | 3 | MAINTAINER phomburg@ripe.net 4 | 5 | RUN yum -y update 6 | RUN yum -y install autoconf 7 | RUN yum -y install automake 8 | RUN yum -y install libtool 9 | RUN yum -y install make 10 | RUN yum -y install ncurses-devel 11 | RUN yum -y install openssl-devel 12 | -------------------------------------------------------------------------------- /coreutils/Kbuild.src: -------------------------------------------------------------------------------- 1 | # Makefile for busybox 2 | # 3 | # Copyright (C) 1999-2005 by Erik Andersen 4 | # 5 | # Licensed under GPLv2, see file LICENSE in this source tree. 6 | 7 | libs-y += libcoreutils/ 8 | 9 | lib-y:= 10 | 11 | INSERT 12 | 13 | lib-$(CONFIG_MORE) += cat.o # more uses it if stdout isn't a tty 14 | lib-$(CONFIG_LESS) += cat.o # less too 15 | lib-$(CONFIG_CRONTAB) += cat.o # crontab -l 16 | lib-$(CONFIG_ADDUSER) += chown.o # used by adduser 17 | lib-$(CONFIG_ADDGROUP) += chown.o # used by adduser 18 | lib-$(CONFIG_ASH) += echo.o # used by ash 19 | lib-$(CONFIG_SH_IS_ASH) += echo.o # used by ash 20 | lib-$(CONFIG_BASH_IS_ASH) += echo.o # used by ash 21 | lib-$(CONFIG_HUSH) += echo.o # used by hush 22 | lib-$(CONFIG_SH_IS_HUSH) += echo.o # used by hush 23 | lib-$(CONFIG_BASH_IS_HUSH) += echo.o # used by hush 24 | lib-$(CONFIG_FTPD) += ls.o # used by ftpd 25 | lib-$(CONFIG_ASH_BUILTIN_PRINTF) += printf.o 26 | -------------------------------------------------------------------------------- /eperd/Config.src: -------------------------------------------------------------------------------- 1 | # 2 | # For a description of the syntax of this configuration file, 3 | # see scripts/kbuild/config-language.txt. 4 | # 5 | 6 | menu "Eperd" 7 | 8 | INSERT 9 | 10 | endmenu 11 | -------------------------------------------------------------------------------- /eperd/Kbuild.src: -------------------------------------------------------------------------------- 1 | # Makefile for busybox 2 | # 3 | # Copyright (c) 2013 RIPE NCC 4 | # 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. 6 | 7 | lib-y:= 8 | 9 | INSERT 10 | -------------------------------------------------------------------------------- /eperd/http2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | * http2.h 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | struct http2_env; 14 | 15 | typedef void (*http2_reply_cb_t)(void *ref, unsigned status, 16 | u_char *data, size_t len); 17 | typedef void (*http2_write_response_cb_t)(void *ref, void *data, size_t len); 18 | typedef size_t (*http2_read_response_cb_t)(void *ref, void *data, size_t len); 19 | 20 | struct http2_env *http2_init(void); 21 | void http2_free(struct http2_env *env); 22 | void http2_dns(struct http2_env *env, struct bufferevent *bev, 23 | const char *hostname, const char *port, const char *path, 24 | u_char *req, size_t reqlen); 25 | int http2_dns_input(struct http2_env *env, struct bufferevent *bev, 26 | http2_reply_cb_t reply_cb, void *ref, 27 | http2_write_response_cb_t write_response_cb, 28 | http2_read_response_cb_t read_response_cb); 29 | -------------------------------------------------------------------------------- /eperd/json-macros.h: -------------------------------------------------------------------------------- 1 | #define DQ(str) "\"" #str "\"" 2 | #define DQC(str) "\"" #str "\" : " 3 | #define LBUF lbuf 4 | #define ADDRESULT buf_add(LBUF, line, strlen(line)); 5 | #define AS(val) buf_add(LBUF, val, strlen (val)); 6 | #define JS(key, val) snprintf(line, DEFAULT_LINE_LENGTH, "\"" #key"\" : \"%s\" , ", val); ADDRESULT 7 | #define JS_NC(key, val) snprintf(line, DEFAULT_LINE_LENGTH,"\"" #key"\" : \"%s\" ", val); ADDRESULT 8 | #define JSDOT(key, val) snprintf(line, DEFAULT_LINE_LENGTH, "\"" #key"\" : \"%s.\" , ", val); ADDRESULT 9 | #define JS1(key, fmt, val) snprintf(line, DEFAULT_LINE_LENGTH, "\"" #key"\" : "#fmt" , ", val); ADDRESULT 10 | #define JD(key, val) snprintf(line, DEFAULT_LINE_LENGTH, "\"" #key"\" : %d , ", val); ADDRESULT 11 | #define JD_NC(key, val) snprintf(line, DEFAULT_LINE_LENGTH, "\"" #key"\" : %d ", val); ADDRESULT 12 | #define JU(key, val) snprintf(line, DEFAULT_LINE_LENGTH, "\"" #key"\" : %u , ", val); ADDRESULT 13 | #define JU_NC(key, val) snprintf(line, DEFAULT_LINE_LENGTH, "\"" #key"\" : %u", val); ADDRESULT 14 | #define JC snprintf(line, DEFAULT_LINE_LENGTH, ","); ADDRESULT 15 | -------------------------------------------------------------------------------- /eperd/readresolv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2014 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | void get_local_resolvers(char *nslist[MAXNS], int *resolv_max, char *infname); 6 | -------------------------------------------------------------------------------- /eperd/tls-hostcheck.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_HOSTCHECK_H 2 | #define HEADER_CURL_HOSTCHECK_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | #define CURL_HOST_NOMATCH 0 26 | #define CURL_HOST_MATCH 1 27 | int Curl_cert_hostcheck(const char *match_pattern, const char *hostname); 28 | 29 | #endif /* HEADER_CURL_HOSTCHECK_H */ 30 | 31 | -------------------------------------------------------------------------------- /include/.gitignore: -------------------------------------------------------------------------------- 1 | /config 2 | 3 | /applets.h 4 | /applet_tables.h 5 | /autoconf.h 6 | /bbconfigopts_bz2.h 7 | /bbconfigopts.h 8 | /NUM_APPLETS.h 9 | /usage_compressed.h 10 | /usage.h 11 | /common_bufsiz.h* 12 | -------------------------------------------------------------------------------- /include/applet_metadata.h: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | #ifndef APPLET_METADATA_H 6 | #define APPLET_METADATA_H 1 7 | 8 | /* Note: can be included by both host and target builds! */ 9 | 10 | /* order matters: used as index into "install_dir[]" in appletlib.c */ 11 | typedef enum bb_install_loc_t { 12 | BB_DIR_ROOT = 0, 13 | BB_DIR_BIN, 14 | BB_DIR_SBIN, 15 | #if ENABLE_INSTALL_NO_USR 16 | BB_DIR_USR_BIN = BB_DIR_BIN, 17 | BB_DIR_USR_SBIN = BB_DIR_SBIN, 18 | #else 19 | BB_DIR_USR_BIN, 20 | BB_DIR_USR_SBIN, 21 | #endif 22 | } bb_install_loc_t; 23 | 24 | typedef enum bb_suid_t { 25 | BB_SUID_DROP = 0, 26 | BB_SUID_MAYBE, 27 | BB_SUID_REQUIRE 28 | } bb_suid_t; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /include/applets.h.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This script allows to check whether every applet has a separate option 4 | # enabling it. Run it after applets.h is generated. 5 | 6 | # CONFIG_applet names 7 | grep ^IF_ applets.h | grep -v ^IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \ 8 | | sort | uniq \ 9 | >applets_APP1 10 | 11 | # command line applet names 12 | grep ^IF_ applets.h | sed -e's/ //g' -e's/.*(\([a-z[][^,]*\),.*/\1/' \ 13 | | grep -v '^bash$' \ 14 | | grep -v '^sh$' \ 15 | | tr a-z A-Z \ 16 | | sed 's/^SYSCTL$/BB_SYSCTL/' \ 17 | | sed 's/^\[\[$/TEST1/' \ 18 | | sed 's/^\[$/TEST2/' \ 19 | | sort | uniq \ 20 | >applets_APP2 21 | 22 | diff -u applets_APP1 applets_APP2 >applets_APP.diff 23 | #rm applets_APP1 applets_APP2 24 | -------------------------------------------------------------------------------- /include/ar.h: -------------------------------------------------------------------------------- 1 | /* 2 | * busybox ar archive data structures 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 | */ 5 | #ifndef AR_H 6 | #define AR_H 7 | 8 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 9 | 10 | struct ar_header { 11 | char name[16]; 12 | char date[12]; 13 | char uid[6]; 14 | char gid[6]; 15 | char mode[8]; 16 | char size[10]; 17 | char magic[2]; 18 | }; 19 | 20 | #define AR_HEADER_LEN sizeof(struct ar_header) 21 | #define AR_MAGIC "!" 22 | #define AR_MAGIC_LEN 7 23 | 24 | POP_SAVED_FUNCTION_VISIBILITY 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /include/atlas_path.h.in: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Atlas directory paths. 4 | * Licensed under GPLv2, see file LICENSE in this source tree. 5 | */ 6 | #ifndef _ATLAS_PATH_H_ 7 | #define _ATLAS_PATH_H_ 8 | 9 | #define ATLAS_LIBEXECDIR "@atlas_libexecdir@" 10 | #define ATLAS_DATADIR "@atlas_datadir@" 11 | #define ATLAS_SYSCONFDIR "@atlas_sysconfdir@" 12 | #define ATLAS_SPOOLDIR "@atlas_spooldir@" 13 | #define ATLAS_RUNDIR "@atlas_rundir@" 14 | #define ATLAS_MEASUREMENT "@atlas_measurementdir@" 15 | #define ATLAS_SCRIPTS "@atlas_scriptsdir@" 16 | #define ATLAS_TMP "@tmpdir@" 17 | 18 | #define ATLAS_CRONS "@atlas_spooldir@/crons" 19 | #define ATLAS_DATA "@atlas_spooldir@/data" 20 | #define ATLAS_PIDS "@atlas_rundir@/pids" 21 | #define ATLAS_STATUS "@atlas_rundir@/status" 22 | 23 | #endif /* _ATLAS_PATH_H_ */ 24 | -------------------------------------------------------------------------------- /include/cmdtable.h: -------------------------------------------------------------------------------- 1 | /* 2 | cmdtable.h 3 | 4 | Commands for perd and ooqd 5 | */ 6 | 7 | int condmv_main(int argc, char *argv[]); 8 | int httppost_main(int argc, char *argv[]); 9 | #if 0 10 | int httpget_main(int argc, char *argv[]); 11 | int nslookup_main(int argc, char *argv[]); 12 | int ping6_main(int argc, char *argv[]); 13 | int ping_main(int argc, char *argv[]); 14 | int sslgetcert_main(int argc, char *argv[]); 15 | int tdig_main(int argc, char *argv[]); 16 | int traceroute_main(int argc, char *argv[]); 17 | #endif 18 | int wifimsm_main(int argc, char *argv[]); 19 | 20 | static struct builtin 21 | { 22 | const char *cmd; 23 | int (*func)(int argc, char *argv[]); 24 | } builtin_cmds[]= 25 | { 26 | { "condmv", condmv_main }, 27 | { "httppost", httppost_main }, 28 | #if 0 29 | { "ping6", ping6_main }, 30 | { "ping", ping_main }, 31 | { "sslgetcert", sslgetcert_main }, 32 | { "traceroute", traceroute_main }, 33 | #endif 34 | #if ENABLE_OOQD 35 | { "wifimsm", wifimsm_main }, 36 | #endif 37 | { NULL, 0 } 38 | }; 39 | 40 | -------------------------------------------------------------------------------- /include/fix_u32.h: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * This header makes it easier to include kernel headers 4 | * which use u32 and such. 5 | * 6 | * Licensed under GPLv2, see file LICENSE in this source tree. 7 | */ 8 | #ifndef FIX_U32_H 9 | #define FIX_U32_H 1 10 | 11 | /* Try hard to pull in u32 types and such. 12 | * Otherwise, #include "fix_u32.h" + #include 13 | * may end up typedef'ing bb_hack_u32 inside foo.h, 14 | * and repeated typedefs aren't allowed in C/C++. 15 | */ 16 | #include 17 | #include 18 | 19 | /* In case above includes still failed to provide the types, 20 | * provide them ourself 21 | */ 22 | #undef __u64 23 | #undef u64 24 | #undef u32 25 | #undef u16 26 | #undef u8 27 | #undef __s64 28 | #undef s64 29 | #undef s32 30 | #undef s16 31 | #undef s8 32 | 33 | #define __u64 bb_hack___u64 34 | #define u64 bb_hack_u64 35 | #define u32 bb_hack_u32 36 | #define u16 bb_hack_u16 37 | #define u8 bb_hack_u8 38 | #define __s64 bb_hack___s64 39 | #define s64 bb_hack_s64 40 | #define s32 bb_hack_s32 41 | #define s16 bb_hack_s16 42 | #define s8 bb_hack_s8 43 | 44 | typedef uint64_t __u64; 45 | typedef uint64_t u64; 46 | typedef uint32_t u32; 47 | typedef uint16_t u16; 48 | typedef uint8_t u8; 49 | typedef int64_t __s64; 50 | typedef int64_t s64; 51 | typedef int32_t s32; 52 | typedef int16_t s16; 53 | typedef int8_t s8; 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /include/inet_common.h: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * stolen from net-tools-1.59 and stripped down for busybox by 4 | * Erik Andersen 5 | * 6 | * Heavily modified by Manuel Novoa III Mar 12, 2001 7 | * 8 | */ 9 | #ifndef INET_COMMON_H 10 | #define INET_COMMON_H 1 11 | 12 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 13 | 14 | /* hostfirst!=0 If we expect this to be a hostname, 15 | try hostname database first 16 | */ 17 | int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) FAST_FUNC; 18 | 19 | /* numeric: & 0x8000: "default" instead of "*", 20 | * & 0x4000: host instead of net, 21 | * & 0x0fff: don't resolve 22 | */ 23 | 24 | int INET6_resolve(const char *name, struct sockaddr_in6 *sin6) FAST_FUNC; 25 | 26 | /* These return malloced string */ 27 | char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) FAST_FUNC; 28 | char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric) FAST_FUNC; 29 | 30 | POP_SAVED_FUNCTION_VISIBILITY 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /include/usage.src.h: -------------------------------------------------------------------------------- 1 | /* vi: set sw=8 ts=8: */ 2 | /* 3 | * This file suffers from chronically incorrect tabification 4 | * of messages. Before editing this file: 5 | * 1. Switch you editor to 8-space tab mode. 6 | * 2. Do not use \t in messages, use real tab character. 7 | * 3. Start each source line with message as follows: 8 | * |<7 spaces>"text with tabs".... 9 | * or 10 | * |<5 spaces>"\ntext with tabs".... 11 | */ 12 | #ifndef BB_USAGE_H 13 | #define BB_USAGE_H 1 14 | 15 | #define NOUSAGE_STR "\b" 16 | 17 | INSERT 18 | 19 | #define busybox_notes_usage \ 20 | "Hello world!\n" 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /include/volume_id.h: -------------------------------------------------------------------------------- 1 | /* 2 | * volume_id - reads filesystem label and uuid 3 | * 4 | * Copyright (C) 2005 Kay Sievers 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | 21 | char *get_devname_from_label(const char *spec); 22 | char *get_devname_from_uuid(const char *spec); 23 | void display_uuid_cache(int scan_devices); 24 | 25 | /* Returns: 26 | * 0: no UUID= or LABEL= prefix found 27 | * 1: UUID= or LABEL= prefix found. In this case, 28 | * *fsname is replaced if device with such UUID or LABEL is found 29 | */ 30 | int resolve_mount_spec(char **fsname); 31 | int add_to_uuid_cache(const char *device); 32 | -------------------------------------------------------------------------------- /include/xregex.h: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Busybox xregcomp utility routine. This isn't in libbb.h because the 4 | * C library we're linking against may not support regex.h. 5 | * 6 | * Based in part on code from sash, Copyright (c) 1999 by David I. Bell 7 | * Permission has been granted to redistribute this code under GPL. 8 | * 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 | */ 11 | #ifndef BB_REGEX_H 12 | #define BB_REGEX_H 1 13 | 14 | #include 15 | 16 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 17 | 18 | char* regcomp_or_errmsg(regex_t *preg, const char *regex, int cflags) FAST_FUNC; 19 | void xregcomp(regex_t *preg, const char *regex, int cflags) FAST_FUNC; 20 | 21 | POP_SAVED_FUNCTION_VISIBILITY 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /libbb/atlas_bb64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | struct buf 7 | { 8 | size_t offset; 9 | size_t size; 10 | size_t maxsize; 11 | char *buf; 12 | int fd; 13 | }; 14 | 15 | void buf_init(struct buf *buf, int fd); 16 | int buf_add(struct buf *buf, const void *data, size_t len ); 17 | int buf_add_b64(struct buf *buf, void *data, size_t len, int mime_nl); 18 | void buf_cleanup(struct buf *buf); 19 | -------------------------------------------------------------------------------- /libbb/atlas_gettime_mono.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | #include "libbb.h" 7 | 8 | int gettime_mono(struct timespec *tsp) 9 | { 10 | static time_t reproducible_time= 0; 11 | 12 | if (atlas_tests()) 13 | { 14 | ++reproducible_time; 15 | tsp->tv_sec= reproducible_time; 16 | tsp->tv_nsec= 1000*reproducible_time; 17 | return 0; 18 | } 19 | 20 | return clock_gettime(CLOCK_MONOTONIC, tsp); 21 | } 22 | 23 | -------------------------------------------------------------------------------- /libbb/atlas_probe.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | #define REG_INIT_REPLY_REL "reg_init_reply.txt" 7 | 8 | #include "libbb.h" 9 | #include "atlas_path.h" 10 | #include 11 | 12 | int get_probe_id(void) 13 | { 14 | static int probe_id= -1; 15 | 16 | size_t len; 17 | char *check, *fn; 18 | const char *key; 19 | FILE *fp; 20 | char buf[80]; 21 | 22 | if (probe_id > 0) 23 | return probe_id; /* Assume probe ID never changes */ 24 | 25 | asprintf(&fn, "%s/%s", ATLAS_STATUS, REG_INIT_REPLY_REL); 26 | fp= fopen(fn, "r"); 27 | free(fn); fn= NULL; 28 | if (!fp) 29 | return -1; 30 | 31 | probe_id= -1; 32 | while (fgets(buf, sizeof(buf), fp) != NULL) 33 | { 34 | if (strchr(buf, '\n') == NULL) 35 | continue; 36 | key= "PROBE_ID "; 37 | len= strlen(key); 38 | 39 | if (strncmp(buf, key, len) != 0 || strlen(buf) <= len) 40 | continue; 41 | probe_id= strtol(buf+len, &check, 10); 42 | break; 43 | } 44 | fclose(fp); 45 | return probe_id; 46 | } 47 | -------------------------------------------------------------------------------- /libbb/atlas_probe.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | int get_probe_id(void); 7 | -------------------------------------------------------------------------------- /libbb/atlas_tests.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | #include "libbb.h" 7 | 8 | int atlas_tests(void) 9 | { 10 | static int do_tests= -1; 11 | 12 | if (!do_tests) 13 | return 0; 14 | 15 | if (do_tests == -1) 16 | do_tests= (getenv("ATLAS_TESTS") != NULL); 17 | return do_tests; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /libbb/atlas_time.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | #include "libbb.h" 7 | 8 | time_t atlas_time(void) 9 | { 10 | if (atlas_tests()) 11 | return 999999999; 12 | else 13 | return time(NULL); 14 | } 15 | 16 | -------------------------------------------------------------------------------- /libbb/atlas_timesync.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2014 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | #include "libbb.h" 7 | #include 8 | #include "atlas_path.h" 9 | 10 | int get_timesync(void) 11 | { 12 | char *fn; 13 | FILE *fh; 14 | int lastsync; 15 | 16 | if (atlas_tests()) 17 | return 123; 18 | 19 | asprintf(&fn, "%s/%s", ATLAS_SPOOLDIR, ATLAS_TIMESYNC_FILE_REL); 20 | fh= fopen(fn, "r"); 21 | free(fn); fn= NULL; 22 | if (!fh) 23 | return -1; 24 | fscanf(fh, "%d", &lastsync); 25 | fclose(fh); 26 | return time(NULL)-lastsync; 27 | } 28 | 29 | -------------------------------------------------------------------------------- /libbb/atlas_unsafe.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | #include "libbb.h" 7 | 8 | int atlas_unsafe(void) 9 | { 10 | static int allow_unsafe= -1; 11 | 12 | if (!allow_unsafe) 13 | return 0; 14 | 15 | if (allow_unsafe == -1) 16 | allow_unsafe= (getenv("ATLAS_UNSAFE") != NULL); 17 | return allow_unsafe; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /libbb/atlas_write_response.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | #include "libbb.h" 7 | 8 | void write_response(FILE *file, int type, size_t size, void *data) 9 | { 10 | fwrite(&type, sizeof(type), 1, file); 11 | fwrite(&size, sizeof(size), 1, file); 12 | fwrite(data, size, 1, file); 13 | } 14 | 15 | -------------------------------------------------------------------------------- /libbb/bb_bswap_64.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Utility routines. 3 | * 4 | * Copyright (C) 2010 Denys Vlasenko 5 | * 6 | * Licensed under GPLv2, see file LICENSE in this source tree. 7 | */ 8 | 9 | #include "libbb.h" 10 | 11 | #if !(ULONG_MAX > 0xffffffff) 12 | uint64_t FAST_FUNC bb_bswap_64(uint64_t x) 13 | { 14 | return bswap_64(x); 15 | } 16 | #endif 17 | -------------------------------------------------------------------------------- /libbb/bind_interface.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014 RIPE NCC 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 | */ 5 | 6 | #include "libbb.h" 7 | 8 | int bind_interface(int socket, int af, char *name) 9 | { 10 | struct sockaddr_storage sa; 11 | 12 | memset(&sa, '\0', sizeof(sa)); 13 | 14 | if (af == AF_INET) 15 | { 16 | sa.ss_family= AF_INET; 17 | if (inet_pton(af, name, 18 | &((struct sockaddr_in *)&sa)->sin_addr) == 1) 19 | { 20 | return bind(socket, (struct sockaddr *)&sa, 21 | sizeof(sa)); 22 | } 23 | } 24 | else 25 | { 26 | sa.ss_family= AF_INET6; 27 | if (inet_pton(af, name, 28 | &((struct sockaddr_in6 *)&sa)->sin6_addr) == 1) 29 | { 30 | return bind(socket, (struct sockaddr *)&sa, 31 | sizeof(sa)); 32 | } 33 | } 34 | if (setsockopt(socket, SOL_SOCKET, SO_BINDTODEVICE, name, 35 | strlen(name)+1) == -1) 36 | { 37 | return -1; 38 | } 39 | 40 | return 0; 41 | } 42 | 43 | -------------------------------------------------------------------------------- /libbb/concat_path_file.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Utility routines. 4 | * 5 | * Copyright (C) many different people. 6 | * If you wrote this, please acknowledge your work. 7 | * 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 9 | */ 10 | 11 | /* Concatenate path and filename to new allocated buffer. 12 | * Add '/' only as needed (no duplicate // are produced). 13 | * If path is NULL, it is assumed to be "/". 14 | * filename should not be NULL. 15 | */ 16 | 17 | #include "libbb.h" 18 | 19 | char* FAST_FUNC concat_path_file(const char *path, const char *filename) 20 | { 21 | char *lc; 22 | 23 | if (!path) 24 | path = ""; 25 | lc = last_char_is(path, '/'); 26 | while (*filename == '/') 27 | filename++; 28 | return xasprintf("%s%s%s", path, (lc==NULL ? "/" : ""), filename); 29 | } 30 | -------------------------------------------------------------------------------- /libbb/default_error_retval.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Copyright (C) 2003 Manuel Novoa III 4 | * 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 | */ 7 | 8 | /* Seems silly to copyright a global variable. ;-) Oh well. 9 | * 10 | * At least one applet (cmp) returns a value different from the typical 11 | * EXIT_FAILURE values (1) when an error occurs. So, make it configurable 12 | * by the applet. I suppose we could use a wrapper function to set it, but 13 | * that too seems silly. 14 | */ 15 | 16 | #include "libbb.h" 17 | 18 | uint8_t xfunc_error_retval = EXIT_FAILURE; 19 | -------------------------------------------------------------------------------- /libbb/full_write.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Utility routines. 4 | * 5 | * Copyright (C) 1999-2004 by Erik Andersen 6 | * 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 | */ 9 | 10 | #include "libbb.h" 11 | 12 | /* 13 | * Write all of the supplied buffer out to a file. 14 | * This does multiple writes as necessary. 15 | * Returns the amount written, or -1 on an error. 16 | */ 17 | ssize_t FAST_FUNC full_write(int fd, const void *buf, size_t len) 18 | { 19 | ssize_t cc; 20 | ssize_t total; 21 | 22 | total = 0; 23 | 24 | while (len) { 25 | cc = safe_write(fd, buf, len); 26 | 27 | if (cc < 0) { 28 | if (total) { 29 | /* we already wrote some! */ 30 | /* user can do another write to know the error code */ 31 | return total; 32 | } 33 | return cc; /* write() returns -1 on failure. */ 34 | } 35 | 36 | total += cc; 37 | buf = ((const char *)buf) + cc; 38 | len -= cc; 39 | } 40 | 41 | return total; 42 | } 43 | -------------------------------------------------------------------------------- /libbb/get_last_path_component.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * bb_get_last_path_component implementation for busybox 4 | * 5 | * Copyright (C) 2001 Manuel Novoa III 6 | * 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 | */ 9 | #include "libbb.h" 10 | 11 | const char* FAST_FUNC bb_basename(const char *name) 12 | { 13 | const char *cp = strrchr(name, '/'); 14 | if (cp) 15 | return cp + 1; 16 | return name; 17 | } 18 | 19 | /* 20 | * "/" -> "/" 21 | * "abc" -> "abc" 22 | * "abc/def" -> "def" 23 | * "abc/def/" -> "" 24 | */ 25 | char* FAST_FUNC bb_get_last_path_component_nostrip(const char *path) 26 | { 27 | char *slash = strrchr(path, '/'); 28 | 29 | if (!slash || (slash == path && !slash[1])) 30 | return (char*)path; 31 | 32 | return slash + 1; 33 | } 34 | 35 | /* 36 | * "/" -> "/" 37 | * "abc" -> "abc" 38 | * "abc/def" -> "def" 39 | * "abc/def/" -> "def" !! 40 | */ 41 | char* FAST_FUNC bb_get_last_path_component_strip(char *path) 42 | { 43 | char *slash = last_char_is(path, '/'); 44 | 45 | if (slash) 46 | while (*slash == '/' && slash != path) 47 | *slash-- = '\0'; 48 | 49 | return bb_get_last_path_component_nostrip(path); 50 | } 51 | -------------------------------------------------------------------------------- /libbb/last_char_is.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * busybox library eXtended function 4 | * 5 | * Copyright (C) 2001 Larry Doolittle, 6 | * 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 | */ 9 | 10 | #include "libbb.h" 11 | 12 | /* Find out if the last character of a string matches the one given. 13 | * Don't underrun the buffer if the string length is 0. 14 | */ 15 | char* FAST_FUNC last_char_is(const char *s, int c) 16 | { 17 | if (s && *s) { 18 | size_t sz = strlen(s) - 1; 19 | s += sz; 20 | if ( (unsigned char)*s == c) 21 | return (char*)s; 22 | } 23 | return NULL; 24 | } 25 | -------------------------------------------------------------------------------- /libbb/match_fstype.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Match fstypes for use in mount unmount 4 | * We accept notmpfs,nfs but not notmpfs,nonfs 5 | * This allows us to match fstypes that start with no like so 6 | * mount -at ,noddy 7 | * 8 | * Returns 1 for a match, otherwise 0 9 | * 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 11 | */ 12 | 13 | #include "libbb.h" 14 | 15 | #ifdef HAVE_MNTENT_H 16 | 17 | int FAST_FUNC match_fstype(const struct mntent *mt, const char *t_fstype) 18 | { 19 | int match = 1; 20 | 21 | if (!t_fstype) 22 | return match; 23 | 24 | if (t_fstype[0] == 'n' && t_fstype[1] == 'o') { 25 | match--; 26 | t_fstype += 2; 27 | } 28 | 29 | while (1) { 30 | char *after_mnt_type = is_prefixed_with(t_fstype, mt->mnt_type); 31 | if (after_mnt_type 32 | && (*after_mnt_type == '\0' || *after_mnt_type == ',') 33 | ) { 34 | return match; 35 | } 36 | t_fstype = strchr(t_fstype, ','); 37 | if (!t_fstype) 38 | break; 39 | t_fstype++; 40 | } 41 | 42 | return !match; 43 | } 44 | 45 | #endif /* HAVE_MNTENT_H */ 46 | -------------------------------------------------------------------------------- /libbb/perror_msg.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Utility routines. 4 | * 5 | * Copyright (C) 1999-2004 by Erik Andersen 6 | * 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 | */ 9 | #include "libbb.h" 10 | 11 | void FAST_FUNC bb_perror_msg(const char *s, ...) 12 | { 13 | va_list p; 14 | 15 | va_start(p, s); 16 | /* Guard against ": Success" */ 17 | bb_verror_msg(s, p, errno ? strerror(errno) : NULL); 18 | va_end(p); 19 | } 20 | 21 | void FAST_FUNC bb_perror_msg_and_die(const char *s, ...) 22 | { 23 | va_list p; 24 | 25 | va_start(p, s); 26 | /* Guard against ": Success" */ 27 | bb_verror_msg(s, p, errno ? strerror(errno) : NULL); 28 | va_end(p); 29 | xfunc_die(); 30 | } 31 | 32 | void FAST_FUNC bb_simple_perror_msg(const char *s) 33 | { 34 | bb_perror_msg("%s", s); 35 | } 36 | 37 | void FAST_FUNC bb_simple_perror_msg_and_die(const char *s) 38 | { 39 | bb_perror_msg_and_die("%s", s); 40 | } 41 | -------------------------------------------------------------------------------- /libbb/ptr_to_globals.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Copyright (C) 2008 by Denys Vlasenko 4 | * 5 | * Licensed under GPLv2, see file LICENSE in this source tree. 6 | */ 7 | 8 | #include 9 | 10 | struct globals; 11 | 12 | #ifndef GCC_COMBINE 13 | 14 | /* We cheat here. It is declared as const ptr in libbb.h, 15 | * but here we make it live in R/W memory */ 16 | struct globals *ptr_to_globals; 17 | 18 | #ifdef __GLIBC__ 19 | int *bb_errno; 20 | #endif 21 | 22 | 23 | #else 24 | 25 | 26 | /* gcc -combine will see through and complain */ 27 | /* Using alternative method which is more likely to break 28 | * on weird architectures, compilers, linkers and so on */ 29 | struct globals *const ptr_to_globals __attribute__ ((section (".data"))); 30 | 31 | #ifdef __GLIBC__ 32 | int *const bb_errno __attribute__ ((section (".data"))); 33 | #endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /libbb/route_set_flags.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "libbb.h" 5 | 6 | static const 7 | IF_NOT_FEATURE_IPV6(uint16_t) 8 | IF_FEATURE_IPV6(unsigned) 9 | flagvals[] = { /* Must agree with flagchars[]. */ 10 | RTF_UP, 11 | RTF_GATEWAY, 12 | RTF_HOST, 13 | RTF_REINSTATE, 14 | RTF_DYNAMIC, 15 | RTF_MODIFIED, 16 | #if ENABLE_FEATURE_IPV6 17 | RTF_DEFAULT, 18 | RTF_ADDRCONF, 19 | RTF_CACHE, 20 | RTF_REJECT, 21 | RTF_NONEXTHOP, /* this one doesn't fit into 16 bits */ 22 | #endif 23 | }; 24 | /* Must agree with flagvals[]. */ 25 | static const char flagchars[] ALIGN1 = 26 | "UGHRDM" 27 | #if ENABLE_FEATURE_IPV6 28 | "DAC!n" 29 | #endif 30 | ; 31 | 32 | void route_set_flags(char *flagstr, int flags) 33 | { 34 | int i; 35 | 36 | for (i = 0; (*flagstr = flagchars[i]) != 0; i++) { 37 | if (flags & flagvals[i]) { 38 | ++flagstr; 39 | } 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /libbb/safe_strncpy.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Utility routines. 4 | * 5 | * Copyright (C) 1999-2004 by Erik Andersen 6 | * 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 | */ 9 | 10 | #include "libbb.h" 11 | 12 | /* Like strncpy but make sure the resulting string is always 0 terminated. */ 13 | char* FAST_FUNC safe_strncpy(char *dst, const char *src, size_t size) 14 | { 15 | if (!size) return dst; 16 | dst[--size] = '\0'; 17 | return strncpy(dst, src, size); 18 | } 19 | 20 | /* Like strcpy but can copy overlapping strings. */ 21 | void FAST_FUNC overlapping_strcpy(char *dst, const char *src) 22 | { 23 | /* Cheap optimization for dst == src case - 24 | * better to have it here than in many callers. 25 | */ 26 | if (dst != src) { 27 | while ((*dst = *src) != '\0') { 28 | dst++; 29 | src++; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /libbb/safe_write.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Utility routines. 4 | * 5 | * Copyright (C) 1999-2004 by Erik Andersen 6 | * 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 | */ 9 | 10 | #include "libbb.h" 11 | 12 | ssize_t FAST_FUNC safe_write(int fd, const void *buf, size_t count) 13 | { 14 | ssize_t n; 15 | 16 | do { 17 | n = write(fd, buf, count); 18 | } while (n < 0 && errno == EINTR); 19 | 20 | return n; 21 | } 22 | -------------------------------------------------------------------------------- /libbb/skip_whitespace.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * skip_whitespace implementation for busybox 4 | * 5 | * Copyright (C) 2003 Manuel Novoa III 6 | * 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 | */ 9 | 10 | #include "libbb.h" 11 | 12 | char* FAST_FUNC skip_whitespace(const char *s) 13 | { 14 | /* In POSIX/C locale (the only locale we care about: do we REALLY want 15 | * to allow Unicode whitespace in, say, .conf files? nuts!) 16 | * isspace is only these chars: "\t\n\v\f\r" and space. 17 | * "\t\n\v\f\r" happen to have ASCII codes 9,10,11,12,13. 18 | * Use that. 19 | */ 20 | while (*s == ' ' || (unsigned char)(*s - 9) <= (13 - 9)) 21 | s++; 22 | 23 | return (char *) s; 24 | } 25 | 26 | char* FAST_FUNC skip_non_whitespace(const char *s) 27 | { 28 | while (*s != '\0' && *s != ' ' && (unsigned char)(*s - 9) > (13 - 9)) 29 | s++; 30 | 31 | return (char *) s; 32 | } 33 | 34 | char* FAST_FUNC skip_dev_pfx(const char *tty_name) 35 | { 36 | if (is_prefixed_with(tty_name, "/dev/")) 37 | tty_name += 5; 38 | return (char*)tty_name; 39 | } 40 | -------------------------------------------------------------------------------- /libbb/strlcat.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2002 Manuel Novoa III 3 | * Copyright (C) 2000-2005 Erik Andersen 4 | * 5 | * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. 6 | */ 7 | 8 | /* OpenBSD function: 9 | * Append at most n-1-strlen(dst) chars from src to dst and nul-terminate dst. 10 | * Returns strlen(src) + strlen({original} dst), so truncation occurred if the 11 | * return val is >= n. 12 | * Note: If dst doesn't contain a nul in the first n chars, strlen(dst) is 13 | * taken as n. */ 14 | 15 | #include "libbb.h" 16 | 17 | size_t strlcat(register char *__restrict dst, 18 | register const char *__restrict src, 19 | size_t n) 20 | { 21 | size_t len; 22 | char dummy[1]; 23 | 24 | len = 0; 25 | 26 | while (1) { 27 | if (len >= n) { 28 | dst = dummy; 29 | break; 30 | } 31 | if (!*dst) { 32 | break; 33 | } 34 | ++dst; 35 | ++len; 36 | } 37 | 38 | while ((*dst = *src) != 0) { 39 | if (++len < n) { 40 | ++dst; 41 | } 42 | ++src; 43 | } 44 | 45 | return len; 46 | } 47 | -------------------------------------------------------------------------------- /libbb/validate_atlas_id.c: -------------------------------------------------------------------------------- 1 | #include "libbb.h" 2 | 3 | int validate_atlas_id(const char *atlas_id) 4 | { 5 | if (strspn(atlas_id, "0123456789") == strlen(atlas_id)) 6 | return 1; 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /libbb/wfopen.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Utility routines. 4 | * 5 | * Copyright (C) 1999-2004 by Erik Andersen 6 | * 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 | */ 9 | 10 | #include "libbb.h" 11 | 12 | FILE* FAST_FUNC fopen_or_warn(const char *path, const char *mode) 13 | { 14 | FILE *fp = fopen(path, mode); 15 | if (!fp) { 16 | bb_simple_perror_msg(path); 17 | //errno = 0; /* why? */ 18 | } 19 | return fp; 20 | } 21 | 22 | FILE* FAST_FUNC fopen_for_read(const char *path) 23 | { 24 | return fopen(path, "r"); 25 | } 26 | 27 | FILE* FAST_FUNC xfopen_for_read(const char *path) 28 | { 29 | return xfopen(path, "r"); 30 | } 31 | 32 | FILE* FAST_FUNC fopen_for_write(const char *path) 33 | { 34 | return fopen(path, "w"); 35 | } 36 | 37 | FILE* FAST_FUNC xfopen_for_write(const char *path) 38 | { 39 | return xfopen(path, "w"); 40 | } 41 | 42 | static FILE* xfdopen_helper(unsigned fd_and_rw_bit) 43 | { 44 | FILE* fp = fdopen(fd_and_rw_bit >> 1, fd_and_rw_bit & 1 ? "w" : "r"); 45 | if (!fp) 46 | bb_error_msg_and_die(bb_msg_memory_exhausted); 47 | return fp; 48 | } 49 | FILE* FAST_FUNC xfdopen_for_read(int fd) 50 | { 51 | return xfdopen_helper(fd << 1); 52 | } 53 | FILE* FAST_FUNC xfdopen_for_write(int fd) 54 | { 55 | return xfdopen_helper((fd << 1) + 1); 56 | } 57 | -------------------------------------------------------------------------------- /libbb/xfunc_die.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=4 ts=4: */ 2 | /* 3 | * Utility routines. 4 | * 5 | * Copyright (C) 2008 by Denys Vlasenko 6 | * 7 | * Licensed under GPLv2, see file LICENSE in this source tree. 8 | */ 9 | 10 | /* Keeping it separate allows to NOT pull in stdio for VERY small applets. 11 | * Try building busybox with only "true" enabled... */ 12 | 13 | #include "libbb.h" 14 | 15 | void (*die_func)(void); 16 | 17 | void FAST_FUNC xfunc_die(void) 18 | { 19 | if (die_func) 20 | die_func(); 21 | exit(xfunc_error_retval); 22 | } 23 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to the libevent 2 | 3 | ## Coding style 4 | 5 | First and most generic rule: **just look around**. 6 | 7 | But, we have a script for checking patches/files/git-refs: 8 | ```shell 9 | # Chech HEAD git ref 10 | ./checkpatch.sh -r 11 | ./checkpatch.sh -r HEAD 12 | 13 | # Check patch 14 | git format-patch --stdout -1 | ./checkpatch.sh -p 15 | git show -1 | ./checkpatch.sh -p 16 | 17 | # Or via regular files 18 | git format-patch --stdout -2 19 | ./checkpatch.sh *.patch 20 | 21 | # Over a file 22 | ./checkpatch.sh -d event.c 23 | ./checkpatch.sh -d < event.c 24 | 25 | # And print the whole file not only summary 26 | ./checkpatch.sh -f event.c 27 | ./checkpatch.sh -f < event.c 28 | 29 | # See 30 | ./checkpatch.sh -h 31 | ``` 32 | 33 | ## Testing 34 | - Write new unit test in `test/regress_{MORE_SUITABLE_FOR_YOU}.c` 35 | - `make verify` 36 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/WIN32-Code/getopt.h: -------------------------------------------------------------------------------- 1 | #ifndef __GETOPT_H__ 2 | #define __GETOPT_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern int opterr; /* if error message should be printed */ 9 | extern int optind; /* index into parent argv vector */ 10 | extern int optopt; /* character checked for validity */ 11 | extern int optreset; /* reset getopt */ 12 | extern char *optarg; /* argument associated with option */ 13 | 14 | struct option 15 | { 16 | const char *name; 17 | int has_arg; 18 | int *flag; 19 | int val; 20 | }; 21 | 22 | #define no_argument 0 23 | #define required_argument 1 24 | #define optional_argument 2 25 | 26 | int getopt(int, char**, const char*); 27 | int getopt_long(int, char**, const char*, const struct option*, int*); 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | 33 | #endif /* __GETOPT_H__ */ 34 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/WIN32-Code/nmake/evconfig-private.h: -------------------------------------------------------------------------------- 1 | #if !defined(EVENT_EVCONFIG__PRIVATE_H_) && !defined(__MINGW32__) 2 | #define EVENT_EVCONFIG__PRIVATE_H_ 3 | 4 | /* Nothing to see here. Move along. */ 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | MAKE=make 4 | if command -v gmake >/dev/null 2>/dev/null; then 5 | MAKE=gmake 6 | fi 7 | $MAKE maintainer-clean >/dev/null 2>/dev/null 8 | 9 | if [ -x "`which autoreconf 2>/dev/null`" ] ; then 10 | exec autoreconf -ivf 11 | fi 12 | 13 | LIBTOOLIZE=libtoolize 14 | SYSNAME=`uname` 15 | if [ "x$SYSNAME" = "xDarwin" ] ; then 16 | LIBTOOLIZE=glibtoolize 17 | fi 18 | aclocal -I m4 && \ 19 | autoheader && \ 20 | $LIBTOOLIZE && \ 21 | autoconf && \ 22 | automake --add-missing --force-missing --copy 23 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/AddCompilerFlags.cmake: -------------------------------------------------------------------------------- 1 | include(CheckCCompilerFlag) 2 | 3 | macro(add_compiler_flags) 4 | foreach(flag ${ARGN}) 5 | string(REGEX REPLACE "[-.+/:= ]" "_" _flag_esc "${flag}") 6 | 7 | check_c_compiler_flag("${flag}" check_c_compiler_flag_${_flag_esc}) 8 | 9 | if (check_c_compiler_flag_${_flag_esc}) 10 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${flag}") 11 | endif() 12 | endforeach() 13 | endmacro() 14 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/COPYING-CMAKE-SCRIPTS: -------------------------------------------------------------------------------- 1 | Redistribution and use in source and binary forms, with or without 2 | modification, are permitted provided that the following conditions 3 | are met: 4 | 5 | 1. Redistributions of source code must retain the copyright 6 | notice, this list of conditions and the following disclaimer. 7 | 2. Redistributions in binary form must reproduce the copyright 8 | notice, this list of conditions and the following disclaimer in the 9 | documentation and/or other materials provided with the distribution. 10 | 3. The name of the author may not be used to endorse or promote products 11 | derived from this software without specific prior written permission. 12 | 13 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/CheckConstExists.cmake: -------------------------------------------------------------------------------- 1 | include(CheckCSourceCompiles) 2 | 3 | macro(check_const_exists CONST FILES VARIABLE) 4 | if (NOT DEFINED ${VARIABLE}) 5 | set(check_const_exists_source "") 6 | foreach(file ${FILES}) 7 | set(check_const_exists_source 8 | "${check_const_exists_source} 9 | #include <${file}>") 10 | endforeach() 11 | set(check_const_exists_source 12 | "${check_const_exists_source} 13 | int main() { (void)${CONST}; return 0; }") 14 | 15 | check_c_source_compiles("${check_const_exists_source}" ${VARIABLE}) 16 | 17 | if (${${VARIABLE}}) 18 | set(${VARIABLE} 1 CACHE INTERNAL "Have const ${CONST}") 19 | message(STATUS "Looking for ${CONST} - found") 20 | else() 21 | set(${VARIABLE} 0 CACHE INTERNAL "Have const ${CONST}") 22 | message(STATUS "Looking for ${CONST} - not found") 23 | endif() 24 | endif() 25 | endmacro(check_const_exists) 26 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/CheckFileOffsetBits.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define KB ((off_t)1024) 4 | #define MB ((off_t)1024 * KB) 5 | #define GB ((off_t)1024 * MB) 6 | #define TB ((off_t)1024 * GB) 7 | int t2[(((64 * GB -1) % 671088649) == 268434537) 8 | && (((TB - (64 * GB -1) + 255) % 1792151290) == 305159546)? 1: -1]; 9 | 10 | int main() 11 | { 12 | ; 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/CheckFunctionExistsEx.c: -------------------------------------------------------------------------------- 1 | #ifdef CHECK_FUNCTION_EXISTS 2 | 3 | #ifdef __cplusplus 4 | extern "C" 5 | #endif 6 | char 7 | CHECK_FUNCTION_EXISTS(void); 8 | #ifdef __CLASSIC_C__ 9 | int main() 10 | { 11 | int ac; 12 | char* av[]; 13 | #else 14 | int main(int ac, char* av[]) 15 | { 16 | #endif 17 | CHECK_FUNCTION_EXISTS(); 18 | if (ac > 1000) { 19 | return *av[0]; 20 | } 21 | return 0; 22 | } 23 | 24 | #else /* CHECK_FUNCTION_EXISTS */ 25 | 26 | #error "CHECK_FUNCTION_EXISTS has to specify the function" 27 | 28 | #endif /* CHECK_FUNCTION_EXISTS */ 29 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/CheckFunctionKeywords.cmake: -------------------------------------------------------------------------------- 1 | include(CheckCSourceCompiles) 2 | 3 | macro(check_function_keywords _wordlist) 4 | set(${_result} "") 5 | foreach(flag ${_wordlist}) 6 | string(REGEX REPLACE "[-+/ ()]" "_" flagname "${flag}") 7 | string(TOUPPER "${flagname}" flagname) 8 | set(have_flag "HAVE_${flagname}") 9 | check_c_source_compiles("${flag} void func(); void func() { } int main() { func(); return 0; }" ${have_flag}) 10 | if(${have_flag} AND NOT ${_result}) 11 | set(${_result} "${flag}") 12 | endif(${have_flag} AND NOT ${_result}) 13 | endforeach(flag) 14 | endmacro(check_function_keywords) 15 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/CheckPrototypeDefinition.c.in: -------------------------------------------------------------------------------- 1 | @CHECK_PROTOTYPE_DEFINITION_HEADER@ 2 | 3 | static void cmakeRequireSymbol(int dummy, ...) { 4 | (void) dummy; 5 | } 6 | 7 | static void checkSymbol(void) { 8 | #ifndef @CHECK_PROTOTYPE_DEFINITION_SYMBOL@ 9 | cmakeRequireSymbol(0, &@CHECK_PROTOTYPE_DEFINITION_SYMBOL@); 10 | #endif 11 | } 12 | 13 | @CHECK_PROTOTYPE_DEFINITION_PROTO@ { 14 | return @CHECK_PROTOTYPE_DEFINITION_RETURN@; 15 | } 16 | 17 | #ifdef __CLASSIC_C__ 18 | int main() { 19 | int ac; 20 | char*av[]; 21 | #else 22 | int main(int ac, char *av[]) { 23 | #endif 24 | checkSymbol(); 25 | if (ac > 1000) { 26 | return *av[0]; 27 | } 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/CheckWorkingKqueue.cmake: -------------------------------------------------------------------------------- 1 | include(CheckCSourceRuns) 2 | 3 | check_c_source_runs( 4 | " 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | int 13 | main(int argc, char **argv) 14 | { 15 | int kq; 16 | int n; 17 | int fd[2]; 18 | struct kevent ev; 19 | struct timespec ts; 20 | char buf[80000]; 21 | 22 | if (pipe(fd) == -1) 23 | exit(1); 24 | if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) 25 | exit(1); 26 | 27 | while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) 28 | ; 29 | 30 | if ((kq = kqueue()) == -1) 31 | exit(1); 32 | 33 | memset(&ev, 0, sizeof(ev)); 34 | ev.ident = fd[1]; 35 | ev.filter = EVFILT_WRITE; 36 | ev.flags = EV_ADD | EV_ENABLE; 37 | n = kevent(kq, &ev, 1, NULL, 0, NULL); 38 | if (n == -1) 39 | exit(1); 40 | 41 | read(fd[0], buf, sizeof(buf)); 42 | 43 | ts.tv_sec = 0; 44 | ts.tv_nsec = 0; 45 | n = kevent(kq, NULL, 0, &ev, 1, &ts); 46 | if (n == -1 || n == 0) 47 | exit(1); 48 | 49 | exit(0); 50 | } 51 | 52 | " EVENT__HAVE_WORKING_KQUEUE) 53 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/LibeventConfig.cmake.in: -------------------------------------------------------------------------------- 1 | # - Config file for the Libevent package 2 | # It defines the following variables 3 | # LIBEVENT_INCLUDE_DIRS - include directories 4 | # LIBEVENT_STATIC_LIBRARIES - libraries to link against (archive/static) 5 | # LIBEVENT_SHARED_LIBRARIES - libraries to link against (shared) 6 | 7 | # Get the path of the current file. 8 | get_filename_component(LIBEVENT_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) 9 | 10 | # Set the include directories. 11 | set(LIBEVENT_INCLUDE_DIRS "@EVENT_INSTALL_INCLUDE_DIR@") 12 | 13 | # Include the project Targets file, this contains definitions for IMPORTED targets. 14 | include(${LIBEVENT_CMAKE_DIR}/LibeventTargets.cmake) 15 | 16 | # IMPORTED targets from LibeventTargets.cmake 17 | set(LIBEVENT_STATIC_LIBRARIES "@LIBEVENT_STATIC_LIBRARIES@") 18 | set(LIBEVENT_SHARED_LIBRARIES "@LIBEVENT_SHARED_LIBRARIES@") 19 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/LibeventConfigBuildTree.cmake.in: -------------------------------------------------------------------------------- 1 | # - Config file for the Libevent package 2 | # It defines the following variables 3 | # LIBEVENT_INCLUDE_DIRS - include directories for FooBar 4 | # LIBEVENT_LIBRARIES - libraries to link against 5 | 6 | # Get the path of the current file. 7 | get_filename_component(LIBEVENT_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) 8 | 9 | # Set the include directories. 10 | set(LIBEVENT_INCLUDE_DIRS "@EVENT__INCLUDE_DIRS@") 11 | 12 | # Include the project Targets file, this contains definitions for IMPORTED targets. 13 | include(${LIBEVENT_CMAKE_DIR}/LibeventTargets.cmake) 14 | 15 | # IMPORTED targets from LibeventTargets.cmake 16 | set(LIBEVENT_LIBRARIES event event_core event_extra) 17 | 18 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/LibeventConfigVersion.cmake.in: -------------------------------------------------------------------------------- 1 | set(PACKAGE_VERSION "@EVENT_PACKAGE_VERSION@") 2 | 3 | # Check whether the requested PACKAGE_FIND_VERSION is compatible 4 | if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") 5 | set(PACKAGE_VERSION_COMPATIBLE FALSE) 6 | else() 7 | set(PACKAGE_VERSION_COMPATIBLE TRUE) 8 | if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") 9 | set(PACKAGE_VERSION_EXACT TRUE) 10 | endif() 11 | endif() 12 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/cmake/Uninstall.cmake.in: -------------------------------------------------------------------------------- 1 | # https://gitlab.kitware.com/cmake/community/wikis/FAQ#can-i-do-make-uninstall-with-cmake 2 | 3 | if(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") 4 | message(FATAL_ERROR "Cannot find install manifest: @CMAKE_BINARY_DIR@/install_manifest.txt") 5 | endif(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") 6 | 7 | file(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files) 8 | string(REGEX REPLACE "\n" ";" files "${files}") 9 | foreach(file ${files}) 10 | message(STATUS "Uninstalling $ENV{DESTDIR}${file}") 11 | if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") 12 | exec_program( 13 | "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" 14 | OUTPUT_VARIABLE rm_out 15 | RETURN_VALUE rm_retval 16 | ) 17 | if(NOT "${rm_retval}" STREQUAL 0) 18 | message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}") 19 | endif(NOT "${rm_retval}" STREQUAL 0) 20 | else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") 21 | message(STATUS "File $ENV{DESTDIR}${file} does not exist.") 22 | endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") 23 | endforeach(file) 24 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/configure.gnu: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${0%.gnu}" --disable-shared --enable-static --disable-libevent-install --disable-samples "$@" 3 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/evconfig-private.h.cmake: -------------------------------------------------------------------------------- 1 | 2 | #ifndef EVCONFIG_PRIVATE_H_INCLUDED_ 3 | #define EVCONFIG_PRIVATE_H_INCLUDED_ 4 | 5 | /* Enable extensions on AIX 3, Interix. */ 6 | #cmakedefine _ALL_SOURCE 7 | 8 | /* Enable GNU extensions on systems that have them. */ 9 | #cmakedefine _GNU_SOURCE 1 10 | 11 | /* Enable threading extensions on Solaris. */ 12 | #cmakedefine _POSIX_PTHREAD_SEMANTICS 1 13 | 14 | /* Enable extensions on HP NonStop. */ 15 | #cmakedefine _TANDEM_SOURCE 1 16 | 17 | /* Enable general extensions on Solaris. */ 18 | #cmakedefine __EXTENSIONS__ 19 | 20 | /* Number of bits in a file offset, on hosts where this is settable. */ 21 | #cmakedefine _FILE_OFFSET_BITS 1 22 | /* Define for large files, on AIX-style hosts. */ 23 | #cmakedefine _LARGE_FILES 1 24 | 25 | /* Define to 1 if on MINIX. */ 26 | #cmakedefine _MINIX 1 27 | 28 | /* Define to 2 if the system does not provide POSIX.1 features except with 29 | this defined. */ 30 | #cmakedefine _POSIX_1_SOURCE 1 31 | 32 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 33 | #cmakedefine _POSIX_SOURCE 1 34 | 35 | /* Enable POSIX.2 extensions on QNX for getopt */ 36 | #ifdef __QNX__ 37 | #cmakedefine __EXT_POSIX2 1 38 | #endif 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/libevent.pc.in: -------------------------------------------------------------------------------- 1 | #libevent pkg-config source file 2 | 3 | prefix=@prefix@ 4 | exec_prefix=@exec_prefix@ 5 | libdir=@libdir@ 6 | includedir=@includedir@ 7 | 8 | Name: libevent 9 | Description: libevent is an asynchronous notification event loop library 10 | Version: @VERSION@ 11 | Requires: 12 | Conflicts: 13 | Libs: -L${libdir} -levent 14 | Libs.private: @LIBS@ 15 | Cflags: -I${includedir} 16 | 17 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/libevent_core.pc.in: -------------------------------------------------------------------------------- 1 | #libevent pkg-config source file 2 | 3 | prefix=@prefix@ 4 | exec_prefix=@exec_prefix@ 5 | libdir=@libdir@ 6 | includedir=@includedir@ 7 | 8 | Name: libevent_core 9 | Description: libevent_core 10 | Version: @VERSION@ 11 | Requires: 12 | Conflicts: 13 | Libs: -L${libdir} -levent_core 14 | Libs.private: @LIBS@ 15 | Cflags: -I${includedir} 16 | 17 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/libevent_extra.pc.in: -------------------------------------------------------------------------------- 1 | #libevent pkg-config source file 2 | 3 | prefix=@prefix@ 4 | exec_prefix=@exec_prefix@ 5 | libdir=@libdir@ 6 | includedir=@includedir@ 7 | 8 | Name: libevent_extra 9 | Description: libevent_extra 10 | Version: @VERSION@ 11 | Requires: 12 | Conflicts: 13 | Libs: -L${libdir} -levent_extra 14 | Libs.private: @LIBS@ 15 | Cflags: -I${includedir} 16 | 17 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/libevent_openssl.pc.in: -------------------------------------------------------------------------------- 1 | #libevent pkg-config source file 2 | 3 | prefix=@prefix@ 4 | exec_prefix=@exec_prefix@ 5 | libdir=@libdir@ 6 | includedir=@includedir@ 7 | 8 | Name: libevent_openssl 9 | Description: libevent_openssl adds openssl-based TLS support to libevent 10 | Version: @VERSION@ 11 | Requires: libevent 12 | Conflicts: 13 | Libs: -L${libdir} -levent_openssl 14 | Libs.private: @LIBS@ @OPENSSL_LIBS@ 15 | Cflags: -I${includedir} @OPENSSL_INCS@ 16 | 17 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/libevent_pthreads.pc.in: -------------------------------------------------------------------------------- 1 | #libevent pkg-config source file 2 | 3 | prefix=@prefix@ 4 | exec_prefix=@exec_prefix@ 5 | libdir=@libdir@ 6 | includedir=@includedir@ 7 | 8 | Name: libevent_pthreads 9 | Description: libevent_pthreads adds pthreads-based threading support to libevent 10 | Version: @VERSION@ 11 | Requires: libevent 12 | Conflicts: 13 | Libs: -L${libdir} -levent_pthreads 14 | Libs.private: @LIBS@ @PTHREAD_LIBS@ 15 | Cflags: -I${includedir} @PTHREAD_CFLAGS@ 16 | 17 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/m4/ac_backport_259_ssizet.m4: -------------------------------------------------------------------------------- 1 | AN_IDENTIFIER([ssize_t], [AC_TYPE_SSIZE_T]) 2 | AC_DEFUN([AC_TYPE_SSIZE_T], [AC_CHECK_TYPE(ssize_t, int)]) 3 | 4 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/m4/ntp_pkg_config.m4: -------------------------------------------------------------------------------- 1 | dnl NTP_PKG_CONFIG -*- Autoconf -*- 2 | dnl 3 | dnl Look for pkg-config, which must be at least 4 | dnl $ntp_pkgconfig_min_version. 5 | dnl 6 | AC_DEFUN([NTP_PKG_CONFIG], [ 7 | 8 | dnl lower the minimum version if you find an earlier one works 9 | ntp_pkgconfig_min_version='0.15.0' 10 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 11 | AS_UNSET([ac_cv_path_PKG_CONFIG]) 12 | AS_UNSET([ac_cv_path_ac_pt_PKG_CONFIG]) 13 | 14 | case "$PKG_CONFIG" in 15 | /*) 16 | AC_MSG_CHECKING([if pkg-config is at least version $ntp_pkgconfig_min_version]) 17 | if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 18 | AC_MSG_RESULT([yes]) 19 | else 20 | AC_MSG_RESULT([no]) 21 | PKG_CONFIG="" 22 | fi 23 | ;; 24 | esac 25 | 26 | ]) dnl NTP_PKG_CONFIG 27 | 28 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/make-event-config.sed: -------------------------------------------------------------------------------- 1 | # Sed script to postprocess config.h into event-config.h. 2 | 3 | 1i\ 4 | /* event2/event-config.h\ 5 | *\ 6 | * This file was generated by autoconf when libevent was built, and post-\ 7 | * processed by Libevent so that its macros would have a uniform prefix.\ 8 | *\ 9 | * DO NOT EDIT THIS FILE.\ 10 | *\ 11 | * Do not rely on macros in this file existing in later versions.\ 12 | */\ 13 | \ 14 | #ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_\ 15 | #define EVENT2_EVENT_CONFIG_H_INCLUDED_\ 16 | 17 | $a\ 18 | \ 19 | #endif /* event2/event-config.h */ 20 | 21 | /#\( *\)undef STDC_HEADERS\>/b 22 | /#\( *\)define STDC_HEADERS\>/b 23 | 24 | # Only rewrite symbols starting with capitals 25 | s/#\( *\)define \([A-Z]\)/#\1define EVENT__\2/ 26 | s/#\( *\)undef \([A-Z]\)/#\1undef EVENT__\2/ 27 | s/#\( *\)if\(n*\)def \([A-Z]\)/#\1if\2def EVENT__\2/ 28 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/sample/hostcheck.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_HOSTCHECK_H 2 | #define HEADER_CURL_HOSTCHECK_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | #define CURL_HOST_NOMATCH 0 26 | #define CURL_HOST_MATCH 1 27 | int Curl_cert_hostcheck(const char *match_pattern, const char *hostname); 28 | 29 | #endif /* HEADER_CURL_HOSTCHECK_H */ 30 | 31 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/strlcpy-internal.h: -------------------------------------------------------------------------------- 1 | #ifndef STRLCPY_INTERNAL_H_INCLUDED_ 2 | #define STRLCPY_INTERNAL_H_INCLUDED_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "event2/event-config.h" 9 | #include "event2/visibility.h" 10 | #include "evconfig-private.h" 11 | 12 | #ifndef EVENT__HAVE_STRLCPY 13 | #include 14 | EVENT2_EXPORT_SYMBOL 15 | size_t event_strlcpy_(char *dst, const char *src, size_t siz); 16 | #define strlcpy event_strlcpy_ 17 | #endif 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/test/regress.rpc: -------------------------------------------------------------------------------- 1 | /* tests data packing and unpacking */ 2 | 3 | struct msg { 4 | string /* sender */ from_name = 1; /* be verbose */ 5 | string to_name = 2; 6 | optional struct[kill] attack = 3; 7 | array struct[run] run = 4; 8 | } 9 | 10 | struct kill { 11 | string weapon = 0x10121; 12 | string action = 2; 13 | array int how_often = 3; 14 | } 15 | 16 | struct run { 17 | string how = 1; 18 | optional bytes some_bytes = 2; 19 | 20 | bytes fixed_bytes[24] = 3; 21 | array string notes = 4; 22 | 23 | optional int64 large_number = 5; 24 | array int other_numbers = 6; 25 | } 26 | -------------------------------------------------------------------------------- /libevent-2.1.11-stable/test/tinytest_local.h: -------------------------------------------------------------------------------- 1 | 2 | #include "util-internal.h" 3 | #ifdef _WIN32 4 | #include 5 | #endif 6 | 7 | #include "event2/util.h" 8 | 9 | #ifdef snprintf 10 | #undef snprintf 11 | #endif 12 | #define snprintf evutil_snprintf 13 | -------------------------------------------------------------------------------- /libpwdgrp/Kbuild.src: -------------------------------------------------------------------------------- 1 | # Makefile for busybox 2 | # 3 | # Copyright (C) 1999-2005 by Erik Andersen 4 | # 5 | # Licensed under GPLv2, see file LICENSE in this source tree. 6 | 7 | lib-y := uidgid_get.o 8 | 9 | lib-$(CONFIG_USE_BB_PWD_GRP) += pwd_grp.o 10 | -------------------------------------------------------------------------------- /miscutils/Config.src: -------------------------------------------------------------------------------- 1 | # 2 | # For a description of the syntax of this configuration file, 3 | # see scripts/kbuild/config-language.txt. 4 | # 5 | 6 | menu "Miscellaneous Utilities" 7 | 8 | INSERT 9 | 10 | endmenu 11 | -------------------------------------------------------------------------------- /miscutils/Kbuild.src: -------------------------------------------------------------------------------- 1 | # Makefile for busybox 2 | # 3 | # Copyright (C) 1999-2005 by Erik Andersen 4 | # 5 | # Licensed under GPLv2, see file LICENSE in this source tree. 6 | 7 | lib-y:= 8 | 9 | INSERT 10 | -------------------------------------------------------------------------------- /miscutils/onlyuptime.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=2 ts=2: 2 | * 3 | * 2010-2013 Copyright (c) 2013 RIPE NCC 4 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 | */ 6 | //config:config ONLYUPTIME 7 | //config: bool "onlyuptime" 8 | //config: default n 9 | //config: help 10 | //config: onlyuptime reports the uptime in seconds 11 | 12 | //applet:IF_CONDMV(APPLET(onlyuptime, BB_DIR_ROOT, BB_SUID_DROP)) 13 | 14 | //kbuild:lib-$(CONFIG_ONLYUPTIME) += onlyuptime.o 15 | 16 | //usage:#define onlyuptime_trivial_usage 17 | //usage: "" 18 | //usage:#define onlyuptime_full_usage "\n\n" 19 | //usage: "" 20 | 21 | #include "libbb.h" 22 | 23 | #include 24 | 25 | /* This is a NOFORK applet. Be very careful! */ 26 | 27 | int onlyuptime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 28 | int onlyuptime_main(int argc UNUSED_PARAM, char **argv) 29 | { 30 | struct sysinfo info; 31 | 32 | sysinfo(&info); 33 | printf("%ld\n", (long)info.uptime); 34 | 35 | return 0; 36 | } 37 | -------------------------------------------------------------------------------- /miscutils/rchoose.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=2 ts=2: 2 | * 3 | * 2010-2013 Copyright (c) 2013 RIPE NCC 4 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 | */ 6 | //config:config RCHOOSE 7 | //config: bool "rchoose" 8 | //config: default n 9 | //config: help 10 | //config: return a random choice from command line arguments 11 | 12 | //applet:IF_CONDMV(APPLET(rchoose, BB_DIR_ROOT, BB_SUID_DROP)) 13 | 14 | //kbuild:lib-$(CONFIG_RCHOOSE) += rchoose.o 15 | 16 | //usage:#define rchoose_trivial_usage 17 | //usage: "" 18 | //usage:#define rchoose_full_usage "\n\n" 19 | //usage: "" 20 | 21 | #include "libbb.h" 22 | 23 | #include 24 | 25 | /* This is a NOFORK applet. Be very careful! */ 26 | 27 | int rchoose_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 28 | int rchoose_main(int argc UNUSED_PARAM, char **argv) 29 | { 30 | int r; 31 | 32 | srandom (time (0)); 33 | r = random(); 34 | argv++; 35 | r %= (argc - 1); 36 | printf ("%s\n", argv[r]); 37 | return fflush(stdout); 38 | } 39 | -------------------------------------------------------------------------------- /miscutils/rptuptime.c: -------------------------------------------------------------------------------- 1 | /* vi: set sw=2 ts=2: 2 | * 3 | * 2010-2013 Copyright (c) 2013 RIPE NCC 4 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 | */ 6 | //config:config RPTUPTIME 7 | //config: bool "rptuptime" 8 | //config: default n 9 | //config: help 10 | //config: rptuptime reports the uptime in a JSON structure 11 | 12 | //applet:IF_CONDMV(APPLET(rptuptime, BB_DIR_ROOT, BB_SUID_DROP)) 13 | 14 | //kbuild:lib-$(CONFIG_RPTUPTIME) += rptuptime.o 15 | 16 | //usage:#define rptuptime_trivial_usage 17 | //usage: "" 18 | //usage:#define rptuptime_full_usage "\n\n" 19 | //usage: "" 20 | 21 | #include "libbb.h" 22 | 23 | #include 24 | 25 | #define DBQ(str) "\"" #str "\"" 26 | 27 | /* This is a NOFORK applet. Be very careful! */ 28 | 29 | int rptuptime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 30 | int rptuptime_main(int argc UNUSED_PARAM, char **argv) 31 | { 32 | struct sysinfo info; 33 | 34 | printf("RESULT { " DBQ(id) ": " DBQ(7001) ", "); 35 | printf("%s, ", atlas_get_version_json_str()); 36 | printf(DBQ(time) ": %ld, ", (long)time(NULL)); 37 | printf(DBQ(lts) ": %d, ", get_timesync()); 38 | sysinfo(&info); 39 | printf(DBQ(uptime) ": %ld }\n", (long)info.uptime); 40 | 41 | return 0; 42 | } 43 | -------------------------------------------------------------------------------- /networking/Kbuild.src: -------------------------------------------------------------------------------- 1 | # Makefile for busybox 2 | # 3 | # Copyright (C) 1999-2005 by Erik Andersen 4 | # 5 | # Licensed under GPLv2, see file LICENSE in this source tree. 6 | 7 | lib-y:= 8 | 9 | INSERT 10 | -------------------------------------------------------------------------------- /networking/atlasinit.h: -------------------------------------------------------------------------------- 1 | /* RIPEAtlas 2 | * All the configurable variables - and some non configurables too 3 | * $Id: $ 4 | */ 5 | 6 | #ifndef _ATLASINIT_H 7 | #define _ATLASINIT_H 8 | 9 | #define ATLAS_BUF_SIZE 1024 10 | #define MAX_READ ATLAS_BUF_SIZE-2 /* should be enough to read controller keys */ 11 | 12 | /********************************************************************* 13 | * Set these constants to your liking 14 | */ 15 | 16 | extern const char atlas_log_file[]; 17 | extern const int atlas_log_level; 18 | 19 | extern const char atlas_contr_known_hosts[]; 20 | extern const char atlas_rereg_timestamp[]; 21 | 22 | extern const int max_lines; /* maximum lines we'll process */ 23 | extern const int min_rereg_time; /* 12h */ 24 | extern const int max_rereg_time; /* 28d */ 25 | extern const int default_rereg_time; /* 7d */ 26 | 27 | /*********************************************************************/ 28 | 29 | enum { ALL, DEBUG, INFO, WARN, ERROR } error_level; 30 | 31 | void atlas_log( int level, const char *msg, ... ); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /scripts/Kbuild.src: -------------------------------------------------------------------------------- 1 | ### 2 | # scripts contains sources for various helper programs used throughout 3 | # the kernel for the build process. 4 | # --------------------------------------------------------------------------- 5 | 6 | # Let clean descend into subdirs 7 | subdir- += basic kconfig 8 | -------------------------------------------------------------------------------- /scripts/basic/.gitignore: -------------------------------------------------------------------------------- 1 | hash 2 | fixdep 3 | docproc 4 | split-include 5 | -------------------------------------------------------------------------------- /scripts/basic/Makefile: -------------------------------------------------------------------------------- 1 | ### 2 | # Makefile.basic list the most basic programs used during the build process. 3 | # The programs listed herein is what is needed to do the basic stuff, 4 | # such as splitting .config and fix dependency file. 5 | # This initial step is needed to avoid files to be recompiled 6 | # when busybox configuration changes (which is what happens when 7 | # .config is included by main Makefile. 8 | # --------------------------------------------------------------------------- 9 | # fixdep: Used to generate dependency information during build process 10 | # split-include: Divide all config symbols up in a number of files in 11 | # include/config/... 12 | # docproc: Used in Documentation/docbook 13 | 14 | hostprogs-y := fixdep split-include docproc 15 | always := $(hostprogs-y) 16 | 17 | # fixdep is needed to compile other host programs 18 | $(addprefix $(obj)/,$(filter-out fixdep,$(always))): $(obj)/fixdep 19 | -------------------------------------------------------------------------------- /scripts/bb_release: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Create signed release tarballs and signature files from current svn. 4 | # Since you don't have my gpg key, this doesn't do you much good, 5 | # but if I get hit by a bus the next maintainer might find this useful. 6 | # Run this in an empty directory. The VERSION= line can get confused 7 | # otherwise. 8 | 9 | #svn co svn://busybox.net/trunk/busybox 10 | cd busybox || { echo "cd busybox failed"; exit 1; } 11 | make release || { echo "make release failed"; exit 1; } 12 | cd .. 13 | 14 | VERSION=`ls busybox-*.tar.gz | sed 's/busybox-\(.*\)\.tar\.gz/\1/'` 15 | 16 | zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2 17 | 18 | test -f busybox-$VERSION.tar.gz || { echo "no busybox-$VERSION.tar.gz"; exit 1; } 19 | test -f busybox-$VERSION.tar.bz2 || { echo "no busybox-$VERSION.tar.bz2"; exit 1; } 20 | 21 | signit() 22 | { 23 | echo "$1 released `date -r $1 -R` 24 | 25 | MD5: `md5sum $1` 26 | SHA1: `sha1sum $1` 27 | 28 | To verify this signature, you can obtain my public key 29 | from http://busybox.net/~vda/vda_pubkey.gpg 30 | " | gpg --clearsign > "$1.sign" 31 | } 32 | 33 | signit busybox-$VERSION.tar.gz 34 | signit busybox-$VERSION.tar.bz2 35 | -------------------------------------------------------------------------------- /scripts/checkhelp.awk: -------------------------------------------------------------------------------- 1 | #!/usr/bin/awk -f 2 | # AWK script to check for missing help entries for config options 3 | # 4 | # Copyright (C) 2006 Bernhard Reutner-Fischer 5 | # 6 | # This file is distributed under the terms and conditions of the 7 | # MIT/X public licenses. See http://opensource.org/licenses/mit-license.html 8 | # and notice http://www.gnu.org/licenses/license-list.html#X11License 9 | 10 | 11 | /^choice/ { is_choice = 1; } 12 | /^endchoice/ { is_choice = 0; } 13 | /^config/ { 14 | pos++; 15 | conf[pos] = $2; 16 | file[pos] = FILENAME; 17 | if (is_choice) { 18 | help[pos] = 1; # do not warn about 'choice' config entries. 19 | } else { 20 | help[pos] = 0; 21 | } 22 | } 23 | /^[ \t]*help[ \t]*$/ { 24 | help[pos] = 1; 25 | } 26 | /^[ \t]*bool[ \t]*$/ { 27 | help[pos] = 1; # ignore options which are not selectable 28 | } 29 | BEGIN { 30 | pos = -1; 31 | is_choice = 0; 32 | } 33 | END { 34 | for (i = 0; i <= pos; i++) { 35 | # printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]); 36 | if (help[i] == 0) { 37 | printf("%s: No helptext for '%s'\n", file[i], conf[i]); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /scripts/cleanup_printf2puts: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Processes current directory recursively: 4 | # printf("abc\n") -> puts("abc"). Beware of fprintf etc... 5 | 6 | # BTW, gcc 4.1.2 already does the same! Can't believe it... 7 | 8 | grep -lr 'printf\([^%%]*\\n"\)' . | grep '.[ch]$' | xargs -n1 \ 9 | sed -e 's/\([^A-Za-z0-9_]\)printf(\( *"[^%]*\)\\n")/\1puts(\2")/' -i 10 | -------------------------------------------------------------------------------- /scripts/find_bad_common_bufsiz: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script finds applets with multiple uses of bb_common_bufsiz1 4 | # (== possible bugs). 5 | # Currently (2007-06-04) reports 3 false positives: 6 | # ./coreutils/diff.c:7 7 | # ./loginutils/getty.c:2 8 | # ./util-linux/mount.c:5 9 | 10 | find -name '*.c' \ 11 | | while read name; do 12 | grep -Hc bb_common_bufsiz1 "$name" 13 | done | grep -v ':[01]$' 14 | -------------------------------------------------------------------------------- /scripts/find_stray_common_vars: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Common variables are elusive, they don't show up in size output! 4 | # This script will show all commons in *.o, sorted by size 5 | 6 | find ! -path './scripts/*' -a ! -name built-in.o -a -name '*.o' \ 7 | | while read name; do 8 | b=`basename "$name"` 9 | nm "$name" | sed "s/^/$b: /" 10 | done | grep -i ' c ' | sort -k2 11 | -------------------------------------------------------------------------------- /scripts/find_stray_empty_lines: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | grep -n -B1 -r $'^\t*}$' . | grep -A1 '.[ch]-[0-9]*-$' 4 | grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$' 5 | # or (less surefire ones): 6 | grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$' 7 | grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$' 8 | 9 | # find trailing empty lines 10 | find -type f | while read file; do 11 | test x"$file" = x"" && continue 12 | tail -n1 $file | while read lastline 13 | do 14 | #echo "|$file|$lastline" 15 | if test x"$lastline" = x""; then 16 | echo "$file" 17 | fi 18 | done 19 | done 20 | -------------------------------------------------------------------------------- /scripts/gcc-version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # gcc-version gcc-command 4 | # 5 | # Prints the gcc version of `gcc-command' in a canonical 4-digit form 6 | # such as `0295' for gcc-2.95, `0303' for gcc-3.3, etc. 7 | # 8 | 9 | compiler="$*" 10 | 11 | MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1) 12 | printf '%02d%02d\n' $MAJ_MIN 13 | -------------------------------------------------------------------------------- /scripts/kconfig/.gitignore: -------------------------------------------------------------------------------- 1 | # 2 | # Generated files 3 | # 4 | config* 5 | lex.*.c 6 | *.tab.c 7 | *.tab.h 8 | zconf.hash.c 9 | *.moc 10 | lkc_defs.h 11 | 12 | # 13 | # configuration programs 14 | # 15 | conf 16 | mconf 17 | qconf 18 | gconf 19 | kxgettext 20 | -------------------------------------------------------------------------------- /scripts/kconfig/POTFILES.in: -------------------------------------------------------------------------------- 1 | scripts/kconfig/mconf.c 2 | scripts/kconfig/conf.c 3 | scripts/kconfig/confdata.c 4 | scripts/kconfig/gconf.c 5 | scripts/kconfig/qconf.cc 6 | -------------------------------------------------------------------------------- /scripts/kconfig/check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Needed for systems without gettext 3 | $* -xc -o /dev/null - > /dev/null 2>&1 << EOF 4 | #include 5 | int main() 6 | { 7 | gettext(""); 8 | return 0; 9 | } 10 | EOF 11 | if [ ! "$?" -eq "0" ]; then 12 | echo -DKBUILD_NO_NLS; 13 | fi 14 | -------------------------------------------------------------------------------- /scripts/kconfig/kconfig_load.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "lkc.h" 6 | 7 | #define P(name,type,arg) type (*name ## _p) arg 8 | #include "lkc_proto.h" 9 | #undef P 10 | 11 | void kconfig_load(void) 12 | { 13 | void *handle; 14 | char *error; 15 | 16 | handle = dlopen("./libkconfig.so", RTLD_LAZY); 17 | if (!handle) { 18 | handle = dlopen("./scripts/kconfig/libkconfig.so", RTLD_LAZY); 19 | if (!handle) { 20 | fprintf(stderr, "%s\n", dlerror()); 21 | exit(1); 22 | } 23 | } 24 | 25 | #define P(name,type,arg) \ 26 | { \ 27 | name ## _p = dlsym(handle, #name); \ 28 | if ((error = dlerror())) { \ 29 | fprintf(stderr, "%s\n", error); \ 30 | exit(1); \ 31 | } \ 32 | } 33 | #include "lkc_proto.h" 34 | #undef P 35 | } 36 | -------------------------------------------------------------------------------- /scripts/kconfig/lxdialog/.gitignore: -------------------------------------------------------------------------------- 1 | # 2 | # Generated files 3 | # 4 | lxdialog 5 | -------------------------------------------------------------------------------- /scripts/kconfig/lxdialog/BIG.FAT.WARNING: -------------------------------------------------------------------------------- 1 | This is NOT the official version of dialog. This version has been 2 | significantly modified from the original. It was used by the Linux 3 | kernel configuration script, and subsequently adapted for busybox. 4 | Please do not bother Savio Lam with questions about this program. 5 | -------------------------------------------------------------------------------- /scripts/kconfig/lxdialog/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile to build lxdialog package 2 | # 3 | 4 | check-lxdialog := $(srctree)/$(src)/check-lxdialog.sh 5 | 6 | # Use reursively expanded variables so we do not call gcc unless 7 | # we really need to do so. (Do not call gcc as part of make mrproper) 8 | HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) 9 | HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) 10 | 11 | HOST_EXTRACFLAGS += -DLOCALE 12 | 13 | PHONY += dochecklxdialog 14 | $(obj)/dochecklxdialog: 15 | $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) 16 | 17 | hostprogs-y := lxdialog 18 | always := $(hostprogs-y) dochecklxdialog 19 | 20 | lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \ 21 | util.o lxdialog.o msgbox.o 22 | -------------------------------------------------------------------------------- /scripts/kconfig/zconf.gperf: -------------------------------------------------------------------------------- 1 | %language=ANSI-C 2 | %define hash-function-name kconf_id_hash 3 | %define lookup-function-name kconf_id_lookup 4 | %define string-pool-name kconf_id_strings 5 | %compare-strncmp 6 | %enum 7 | %pic 8 | %struct-type 9 | 10 | struct kconf_id; 11 | 12 | %% 13 | mainmenu, T_MAINMENU, TF_COMMAND 14 | menu, T_MENU, TF_COMMAND 15 | endmenu, T_ENDMENU, TF_COMMAND 16 | source, T_SOURCE, TF_COMMAND 17 | choice, T_CHOICE, TF_COMMAND 18 | endchoice, T_ENDCHOICE, TF_COMMAND 19 | comment, T_COMMENT, TF_COMMAND 20 | config, T_CONFIG, TF_COMMAND 21 | menuconfig, T_MENUCONFIG, TF_COMMAND 22 | help, T_HELP, TF_COMMAND 23 | if, T_IF, TF_COMMAND|TF_PARAM 24 | endif, T_ENDIF, TF_COMMAND 25 | depends, T_DEPENDS, TF_COMMAND 26 | requires, T_REQUIRES, TF_COMMAND 27 | optional, T_OPTIONAL, TF_COMMAND 28 | default, T_DEFAULT, TF_COMMAND, S_UNKNOWN 29 | prompt, T_PROMPT, TF_COMMAND 30 | tristate, T_TYPE, TF_COMMAND, S_TRISTATE 31 | def_tristate, T_DEFAULT, TF_COMMAND, S_TRISTATE 32 | bool, T_TYPE, TF_COMMAND, S_BOOLEAN 33 | boolean, T_TYPE, TF_COMMAND, S_BOOLEAN 34 | def_bool, T_DEFAULT, TF_COMMAND, S_BOOLEAN 35 | def_boolean, T_DEFAULT, TF_COMMAND, S_BOOLEAN 36 | int, T_TYPE, TF_COMMAND, S_INT 37 | hex, T_TYPE, TF_COMMAND, S_HEX 38 | string, T_TYPE, TF_COMMAND, S_STRING 39 | select, T_SELECT, TF_COMMAND 40 | enable, T_SELECT, TF_COMMAND 41 | range, T_RANGE, TF_COMMAND 42 | on, T_ON, TF_PARAM 43 | %% 44 | -------------------------------------------------------------------------------- /scripts/memusage: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | busybox=../busybox 4 | 5 | i=4000 6 | echo "Before we started $i copies of '$busybox sleep 10':" 7 | $busybox nmeter '%t %[pn] %m' | head -3 8 | 9 | while test $i != 0; do 10 | $busybox sleep 10 & 11 | i=$((i-1)) 12 | done 13 | sleep 1 14 | 15 | echo "After:" 16 | $busybox nmeter '%t %[pn] %m' | head -3 17 | -------------------------------------------------------------------------------- /scripts/mkdiff_obj: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | usage() { 4 | echo "Usage: ${0##*/} DIR1 DIR2" 5 | echo 6 | echo "Compares all object files recursivelty found in DIR1 and DIR2." 7 | echo "Prints diff of their disassembly." 8 | echo 9 | exit $1 10 | } 11 | 12 | filter() { 13 | # sed removes " address: " prefixes which mess up diff 14 | sed $'s/^\\(\t*\\)[ ]*[0-9a-f][0-9a-f]*:[ \t]*/\\1/' \ 15 | | sed 's/__GI_//g' 16 | } 17 | 18 | test -d "$1" || usage 1 19 | test -d "$2" || usage 1 20 | 21 | { 22 | ( 23 | cd "$1" || exit 1 24 | find -name '*.o' # -o -name '*.os' # -o -name '*.so' 25 | ) 26 | ( 27 | cd "$2" || exit 1 28 | find -name '*.o' # -o -name '*.os' # -o -name '*.so' 29 | ) 30 | } | sed 's:^\./::' | sort | uniq | \ 31 | ( 32 | while IFS='' read -r oname; do 33 | if ! test -f "$1/$oname"; then 34 | echo "Only $2/$oname" 35 | continue 36 | fi 37 | if ! test -f "$2/$oname"; then 38 | echo "Only $1/$oname" 39 | continue 40 | fi 41 | diff -q -- "$1/$oname" "$2/$oname" >/dev/null && continue 42 | (cd "$1" && { size "$oname"; objdump -dr "$oname" | filter; } >"$oname.disasm") 43 | (cd "$2" && { size "$oname"; objdump -dr "$oname" | filter; } >"$oname.disasm") 44 | diff -u -- "$1/$oname.disasm" "$2/$oname.disasm" 45 | done 46 | ) 47 | -------------------------------------------------------------------------------- /scripts/mkdiff_obj_bloat: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test -d "$1" || exit 1 4 | test -d "$2" || exit 1 5 | 6 | { 7 | ( 8 | cd "$1" || exit 1 9 | find -name '*.o' -o -name '*.os' # -o -name '*.so' 10 | ) 11 | ( 12 | cd "$2" || exit 1 13 | find -name '*.o' -o -name '*.os' # -o -name '*.so' 14 | ) 15 | } | sed 's:^\./::' | sort | uniq | \ 16 | tee LST | \ 17 | ( 18 | IFS='' 19 | while read -r oname; do 20 | if ! test -f "$1/$oname"; then 21 | echo "Only $2/$oname" 22 | continue 23 | fi 24 | if ! test -f "$2/$oname"; then 25 | echo "Only $1/$oname" 26 | continue 27 | fi 28 | $1/scripts/bloat-o-meter $1/$oname $2/$oname | grep 'otal: 0 byte' >/dev/null && continue 29 | $1/scripts/bloat-o-meter $1/$oname $2/$oname 30 | size $1/$oname $2/$oname 31 | echo 32 | done 33 | ) 34 | -------------------------------------------------------------------------------- /scripts/mkmakefile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Generates a small Makefile used in the root of the output 3 | # directory, to allow make to be started from there. 4 | # The Makefile also allow for more convinient build of external modules 5 | 6 | # Usage 7 | # $1 - Kernel src directory 8 | # $2 - Output directory 9 | # $3 - version 10 | # $4 - patchlevel 11 | 12 | 13 | test ! -r $2/Makefile -o -O $2/Makefile || exit 0 14 | echo " GEN $2/Makefile" 15 | 16 | cat << EOF > $2/Makefile 17 | # Automatically generated by $0: don't edit 18 | 19 | VERSION = $3 20 | PATCHLEVEL = $4 21 | 22 | KERNELSRC := $1 23 | KERNELOUTPUT := $2 24 | 25 | MAKEFLAGS += --no-print-directory 26 | 27 | .PHONY: all \$(MAKECMDGOALS) 28 | 29 | all: 30 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) 31 | 32 | Makefile:; 33 | 34 | \$(filter-out all Makefile,\$(MAKECMDGOALS)): 35 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@ 36 | 37 | %/: 38 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@ 39 | EOF 40 | -------------------------------------------------------------------------------- /scripts/objsizes: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | t_text=0 4 | t_data=0 5 | t_bss=0 6 | 7 | printf "%9s %11s %9s %9s %s\n" "text+data" "text+rodata" rwdata bss filename 8 | 9 | find -name '*.o' | grep -v '^\./scripts/' | grep -vF built-in.o \ 10 | | sed 's:^\./::' | xargs "${CROSS_COMPILE}size" | grep '^ *[0-9]' \ 11 | | { 12 | while read text data bss dec hex filename; do 13 | t_text=$((t_text+text)) 14 | t_data=$((t_data+data)) 15 | t_bss=$((t_bss+bss)) 16 | printf "%9d %11d %9d %9d %s\n" $((text+data)) $text $data $bss "$filename" 17 | done 18 | printf "%9d %11d %9d %9d %s\n" $((t_text+t_data)) $t_text $t_data $t_bss "TOTAL" 19 | } | env -uLANG -uLC_ALL sort -r 20 | -------------------------------------------------------------------------------- /scripts/randomtest.loop: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | run_testsuite=true 4 | 5 | test -d "$1" || { echo "'$1' is not a directory"; exit 1; } 6 | test -x "$1/scripts/randomtest" || { echo "No scripts/randomtest in '$1'"; exit 1; } 7 | 8 | export LIBC="uclibc" 9 | export CROSS_COMPILER_PREFIX="i686-" 10 | export MAKEOPTS="-j9" 11 | 12 | cnt=0 13 | fail=0 14 | while sleep 1; do 15 | echo "Passes: $cnt Failures: $fail" 16 | dir="test.$$" 17 | while test -e "$dir" -o -e "failed.$dir"; do 18 | dir="test.$$.$RANDOM" 19 | done 20 | echo "Running randconfig test in $dir..." 21 | if ! "$1/scripts/randomtest" "$1" "$dir" >/dev/null; then 22 | mv -- "$dir" "failed.$dir" 23 | echo "Failed build in: failed.$dir" 24 | exit 1 # you may comment this out... 25 | let fail++ 26 | continue 27 | fi 28 | if $run_testsuite; then 29 | ( 30 | cd -- "$dir/testsuite" || exit 1 31 | echo "Running testsuite in $dir..." 32 | SKIP_KNOWN_BUGS=1 SKIP_INTERNET_TESTS=1 ./runtest -v >runtest.log 2>&1 33 | ) 34 | if test $? != 0; then 35 | echo "Failed runtest in $dir" 36 | grep ^FAIL -- "$dir/testsuite/runtest.log" 37 | exit 1 # you may comment this out... 38 | let fail++ 39 | continue 40 | fi 41 | tail -n10 -- "$dir/testsuite/runtest.log" 42 | fi 43 | rm -rf -- "$dir" 44 | let cnt++ 45 | done 46 | -------------------------------------------------------------------------------- /scripts/sample_pmap: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | busybox=../busybox 4 | 5 | $busybox sleep 10 & 6 | pid=$! 7 | sleep 1 8 | 9 | echo "Memory map of '$busybox sleep 10':" 10 | size $busybox 11 | pmap $pid | env - grep "^[0-9a-f][0-9a-f]* " | sort -r -t " " -k2,999 12 | -------------------------------------------------------------------------------- /scripts/showasm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright 2006 Rob Landley 4 | # Licensed under GPLv2 or later, see file LICENSE in this source tree. 5 | 6 | # Dumb little utility function to print out the assembly dump of a single 7 | # function, or list the functions so dumpable in an executable. You'd think 8 | # there would be a way to get objdump to do this, but I can't find it. 9 | 10 | [ $# -lt 1 ] || [ $# -gt 2 ] && { echo "usage: showasm file function"; exit 1; } 11 | 12 | [ ! -f $1 ] && { echo "File $1 not found"; exit 1; } 13 | 14 | if [ $# -eq 1 ] 15 | then 16 | objdump -d $1 | sed -n -e 's/^[0-9a-fA-F]* <\(.*\)>:$/\1/p' 17 | exit 0 18 | fi 19 | 20 | objdump -d $1 | sed -n -e '/./{H;$!d}' -e "x;/^.[0-9a-fA-F]* <$2>:/p" 21 | -------------------------------------------------------------------------------- /scripts/test_make_O: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | b=`basename $PWD` 4 | test "${b#busybox}" != "$b" || { echo "Must be run in busybox tree"; exit 1; } 5 | 6 | rm -rf ../testdir_make_O.$$ 7 | mkdir ../testdir_make_O.$$ 8 | odir=`cd ../testdir_make_O.$$ && pwd` 9 | test -d "$odir" || exit 1 10 | 11 | make O="$odir" $MAKEOPTS "$@" defconfig busybox 2>&1 | tee test_make_O.log 12 | -------------------------------------------------------------------------------- /scripts/test_make_clean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | b=`basename $PWD` 4 | test "${b#busybox}" != "$b" || { echo "Must be run in busybox tree"; exit 1; } 5 | 6 | cd .. 7 | cp -pPR "$b" busybox.$$.test_tree 8 | cd busybox.$$.test_tree 9 | make defconfig 10 | make $MAKEOPTS 11 | make clean 12 | cd .. 13 | diff -urp "$b" busybox.$$.test_tree >busybox.$$.test_tree.diff 14 | cat busybox.$$.test_tree.diff 15 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-0.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-0.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-0.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.21.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":301, "ver":"1.1", "hsize":359, "bsize":0 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-1.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-1.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-1.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.21.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":301, "ver":"1.1", "hsize":387, "bsize":0 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-4.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-4.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-4.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.21.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":301, "ver":"1.1", "hsize":387, "bsize":0 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-6.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-6.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-6.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 6, "dst_addr":"2606:4700::6812:152c", "src_addr":"2001:67c:2e8:1::c100:10a", "rt":3000.003000, "res":301, "ver":"1.1", "hsize":387, "bsize":0 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-A42.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-A42.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-A42.out: -------------------------------------------------------------------------------- 1 | RESULT { "id":"42", "fw":9999, "mver": "0.0.0", "lts":123, "time":999999999, "ttr":1000.001000, "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.20.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":301, "ver":"1.1", "hsize":387, "bsize":0 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-b43.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-b43.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-b43.out: -------------------------------------------------------------------------------- 1 | RESULT { "id":"42", "fw":9999, "mver": "0.0.0", "lts":123, "time":999999999, "bundle":43, "ttr":1000.001000, "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.20.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":301, "ver":"1.1", "hsize":387, "bsize":0 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-body100.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-body100.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-body100.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.20.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":200, "ver":"1.1", "hsize":584, "bsize":93461 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-eetim.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-eetim.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-etim.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-etim.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-etim.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.20.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":200, "ver":"1.1", "hsize":584, "bsize":93461, "ttr":3000.003000, "ttc":1000.001000, "ttfb":2000.002000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-head100.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-head100.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-head100.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "header": [ "Date: Thu, 15 Jul 2021 12:34:38 GMT", "Content-Type: text/html;charset=utf-8", "Transfer-Encoding: chunked", "Co[...]" ], "method":"GET", "af": 4, "dst_addr":"104.18.21.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":200, "ver":"1.1", "hsize":584, "bsize":93461 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-host.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-host.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-host.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.21.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":403, "ver":"1.1", "hsize":152, "bsize":151 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-https.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-https.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-https.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.20.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":200, "ver":"1.1", "hsize":584, "bsize":93461 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-user.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evhttpget-data/evhttpget-user.net -------------------------------------------------------------------------------- /testsuite/evhttpget-data/evhttpget-user.out: -------------------------------------------------------------------------------- 1 | RESULT { "result":[ { "method":"GET", "af": 4, "dst_addr":"104.18.21.44", "src_addr":"193.0.1.10", "rt":3000.003000, "res":200, "ver":"1.1", "hsize":584, "bsize":93461 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evhttpget-gentests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test() 4 | { 5 | opt="$1" 6 | target="$2" 7 | name="$3" 8 | 9 | filebase=testsuite/evhttpget-data/"evhttpget-$name" 10 | output="$filebase".out 11 | packets="$filebase".net 12 | rm -f "$output" "$packets" 13 | ATLAS_TESTS=yes ATLAS_UNSAFE=yes ./busybox evhttpget $opt -O "$output" -W "$packets" "$target" 14 | } 15 | 16 | test "-6" "http://www.ripe.net/" "6" 17 | test "-4" "http://www.ripe.net/" "4" 18 | test "-4 -A42" "http://www.ripe.net/" "A42" 19 | test "-4 -b43 -A42" "http://www.ripe.net/" "b43" 20 | test "-4" "https://www.ripe.net/" "https" 21 | test "-4 -0" "http://www.ripe.net/" "0" 22 | test "-4 -1" "http://www.ripe.net/" "1" 23 | test "-4 --host foo" "https://www.ripe.net/" "host" 24 | test "-4 --store-body 100" "https://www.ripe.net/" "body100" 25 | test "-4 --store-headers 100" "https://www.ripe.net/" "head100" 26 | test "-4 --user-agent foo" "https://www.ripe.net/" "user" 27 | test "-4 --etim" "https://www.ripe.net/" "etim" 28 | test "-4 --eetim" "https://www.ripe.net/" "eetim" 29 | -------------------------------------------------------------------------------- /testsuite/evhttpget.tests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./testing.sh 4 | 5 | evhttpget_test() 6 | { 7 | opt="$1" 8 | target="$2" 9 | name="$3" 10 | 11 | filebase=evhttpget-data/"evhttpget-$name" 12 | output="$filebase".out 13 | packets="$filebase".net 14 | export ATLAS_TESTS=yes ATLAS_UNSAFE=yes 15 | r=$(cat "$output"; echo x); r=${r%?} 16 | testing "evhttpget-$name" "evhttpget $opt -R $packets $target" "$r" "" "" 17 | } 18 | 19 | evhttpget_test "-6" "http://www.ripe.net/" "6" 20 | evhttpget_test "-4" "http://www.ripe.net/" "4" 21 | evhttpget_test "-4 -A42" "http://www.ripe.net/" "A42" 22 | evhttpget_test "-4 -b43 -A42" "http://www.ripe.net/" "b43" 23 | evhttpget_test "-4" "https://www.ripe.net/" "https" 24 | evhttpget_test "-4 -0" "http://www.ripe.net/" "0" 25 | evhttpget_test "-4 -1" "http://www.ripe.net/" "1" 26 | evhttpget_test "-4 --host foo" "https://www.ripe.net/" "host" 27 | evhttpget_test "-4 --store-body 100" "https://www.ripe.net/" "body100" 28 | evhttpget_test "-4 --user-agent foo" "https://www.ripe.net/" "user" 29 | evhttpget_test "-4 --etim" "https://www.ripe.net/" "etim" 30 | evhttpget_test "-4 --eetim" "https://www.ripe.net/" "eetim" 31 | 32 | exit $FAILCOUNT 33 | 34 | -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-4.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evntp-data/evntp-4.net -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-4.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ntp.ripe.net", "ttr":1000.001000, "dst_addr":"193.0.0.229", "src_addr":"193.0.1.10", "proto":"UDP", "af": 4, "li": "no", "version": 4, "mode": "server", "stratum": 1, "poll": 8, "precision": 3.8147e-06, "root-delay": 0, "root-dispersion": 0.00105286, "ref-id": "GPS", "ref-ts": 3835786747.036665440, "result": [ { "origin-ts": 3835786750.402607918, "receive-ts": 3835786750.402893066, "transmit-ts": 3835786750.403163910, "final-ts": 3835786750.403707027, "rtt": 0.000828, "offset": 0.000129 }, { "origin-ts": 3835786750.403748989, "receive-ts": 3835786750.404015064, "transmit-ts": 3835786750.404279232, "final-ts": 3835786750.404739857, "rtt": 0.000727, "offset": 0.000097 }, { "origin-ts": 3835786750.404755116, "receive-ts": 3835786750.405014515, "transmit-ts": 3835786750.405247211, "final-ts": 3835786750.405641079, "rtt": 0.000653, "offset": 0.000067 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-6.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evntp-data/evntp-6.net -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-6.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ntp.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:14:ffff::229", "src_addr":"2001:67c:2e8:1::c100:10a", "proto":"UDP", "af": 6, "li": "no", "version": 4, "mode": "server", "stratum": 1, "poll": 8, "precision": 3.8147e-06, "root-delay": 0, "root-dispersion": 0.00105286, "ref-id": "GPS", "ref-ts": 3835786747.036665440, "result": [ { "origin-ts": 3835786750.383316994, "receive-ts": 3835786750.383649826, "transmit-ts": 3835786750.383927345, "final-ts": 3835786750.384487152, "rtt": 0.000893, "offset": 0.000113 }, { "origin-ts": 3835786750.384530067, "receive-ts": 3835786750.384774208, "transmit-ts": 3835786750.385006905, "final-ts": 3835786750.385408878, "rtt": 0.000646, "offset": 0.000079 }, { "origin-ts": 3835786750.385423183, "receive-ts": 3835786750.385762691, "transmit-ts": 3835786750.385993481, "final-ts": 3835786750.386390209, "rtt": 0.000736, "offset": 0.000029 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-A42.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evntp-data/evntp-A42.net -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-A42.out: -------------------------------------------------------------------------------- 1 | RESULT { "id":"42", "fw":9999, "mver": "0.0.0", "lts":123, "time":999999999, "dst_name":"ntp.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:14:ffff::229", "src_addr":"2001:67c:2e8:1::c100:10a", "proto":"UDP", "af": 6, "li": "no", "version": 4, "mode": "server", "stratum": 1, "poll": 8, "precision": 3.8147e-06, "root-delay": 0, "root-dispersion": 0.00105286, "ref-id": "GPS", "ref-ts": 3835786747.036665440, "result": [ { "origin-ts": 3835786750.433174133, "receive-ts": 3835786750.433547497, "transmit-ts": 3835786750.433788776, "final-ts": 3835786750.434351921, "rtt": 0.000937, "offset": 0.000095 }, { "origin-ts": 3835786750.434389114, "receive-ts": 3835786750.434651375, "transmit-ts": 3835786750.434877396, "final-ts": 3835786750.435263157, "rtt": 0.000648, "offset": 0.000062 }, { "origin-ts": 3835786750.435275078, "receive-ts": 3835786750.435553074, "transmit-ts": 3835786750.435786724, "final-ts": 3835786750.436199188, "rtt": 0.000690, "offset": 0.000067 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-B43.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evntp-data/evntp-B43.net -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-B43.out: -------------------------------------------------------------------------------- 1 | RESULT { "id":"42", "fw":9999, "mver": "0.0.0", "lts":123, "time":999999999, "bundle":43, "dst_name":"ntp.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:14:ffff::229", "src_addr":"2001:67c:2e8:1::c100:10a", "proto":"UDP", "af": 6, "li": "no", "version": 4, "mode": "server", "stratum": 1, "poll": 8, "precision": 3.8147e-06, "root-delay": 0, "root-dispersion": 0.00105286, "ref-id": "GPS", "ref-ts": 3835786747.036665440, "result": [ { "origin-ts": 3835786750.449802876, "receive-ts": 3835786750.450173378, "transmit-ts": 3835786750.450407505, "final-ts": 3835786750.451035976, "rtt": 0.000999, "offset": 0.000129 }, { "origin-ts": 3835786750.451079845, "receive-ts": 3835786750.451396942, "transmit-ts": 3835786750.451655865, "final-ts": 3835786750.452085018, "rtt": 0.000746, "offset": 0.000056 }, { "origin-ts": 3835786750.452097893, "receive-ts": 3835786750.452396870, "transmit-ts": 3835786750.452658176, "final-ts": 3835786750.453089237, "rtt": 0.000730, "offset": 0.000066 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-c1.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evntp-data/evntp-c1.net -------------------------------------------------------------------------------- /testsuite/evntp-data/evntp-c1.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ntp.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:14:ffff::229", "src_addr":"2001:67c:2e8:1::c100:10a", "proto":"UDP", "af": 6, "li": "no", "version": 4, "mode": "server", "stratum": 1, "poll": 8, "precision": 3.8147e-06, "root-delay": 0, "root-dispersion": 0.00105286, "ref-id": "GPS", "ref-ts": 3835786747.036665440, "result": [ { "origin-ts": 3835786750.419127941, "receive-ts": 3835786750.419546127, "transmit-ts": 3835786750.419845104, "final-ts": 3835786750.420283794, "rtt": 0.000857, "offset": 0.000010 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evntp-gentests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test() 4 | { 5 | opt="$1" 6 | target="$2" 7 | name="$3" 8 | 9 | filebase=testsuite/evntp-data/"evntp-$name" 10 | output="$filebase".out 11 | packets="$filebase".net 12 | rm -f "$output" "$packets" 13 | ATLAS_TESTS=yes ATLAS_UNSAFE=yes ./busybox evntp $opt -O "$output" -W "$packets" "$target" 14 | } 15 | 16 | test "-6" "ntp.ripe.net" "6" 17 | test "-4" "ntp.ripe.net" "4" 18 | test "-6 -c1" "ntp.ripe.net" "c1" 19 | test "-6 -A42" "ntp.ripe.net" "A42" 20 | test "-6 -A42 -B43" "ntp.ripe.net" "B43" 21 | -------------------------------------------------------------------------------- /testsuite/evntp.tests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./testing.sh 4 | 5 | evntp_test() 6 | { 7 | opt="$1" 8 | target="$2" 9 | name="$3" 10 | 11 | filebase=evntp-data/"evntp-$name" 12 | output="$filebase".out 13 | packets="$filebase".net 14 | export ATLAS_TESTS=yes ATLAS_UNSAFE=yes 15 | r=$(cat "$output"; echo x); r=${r%?} 16 | testing "evntp-$name" "evntp $opt -R $packets $target" "$r" "" "" 17 | } 18 | 19 | evntp_test "-6" "ntp.ripe.net" "6" 20 | evntp_test "-4" "ntp.ripe.net" "4" 21 | evntp_test "-6 -c1" "ntp.ripe.net" "c1" 22 | evntp_test "-6 -A42" "ntp.ripe.net" "A42" 23 | evntp_test "-6 -A42 -B43" "ntp.ripe.net" "B43" 24 | 25 | exit $FAILCOUNT 26 | 27 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-4.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-4.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-4.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":4, "dst_addr":"193.0.0.164", "src_addr":"130.37.15.44", "proto":"ICMP", "ttl":53, "size":32, "result": [ { "rtt":1000.001000 }, { "rtt":1000.001000 }, { "rtt":1000.001000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-6.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-6.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-6.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":6, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "ttl":59, "size":32, "result": [ { "rtt":1000.001000 }, { "rtt":1000.001000 }, { "rtt":1000.001000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-A42.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-A42.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-A42.out: -------------------------------------------------------------------------------- 1 | RESULT { "id":"42", "fw":9999, "mver": "0.0.0", "lts":123, "time":999999999, "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":6, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "ttl":59, "size":32, "result": [ { "rtt":1000.001000 }, { "rtt":1000.001000 }, { "rtt":1000.001000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-B43.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-B43.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-B43.out: -------------------------------------------------------------------------------- 1 | RESULT { "id":"42", "fw":9999, "mver": "0.0.0", "lts":123, "time":999999999, "bundle":43, "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":6, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "ttl":59, "size":32, "result": [ { "rtt":1000.001000 }, { "rtt":1000.001000 }, { "rtt":1000.001000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-c1.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-c1.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-c1.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":6, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "ttl":59, "size":32, "result": [ { "rtt":1000.001000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-s0.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-s0.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-s0.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":6, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "ttl":59, "size":32, "result": [ { "rtt":1000.001000 }, { "rtt":1000.001000 }, { "rtt":1000.001000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-s1024.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-s1024.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-s1024.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":6, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "ttl":59, "size":1024, "result": [ { "rtt":1000.001000 }, { "rtt":1000.001000 }, { "rtt":1000.001000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-s128.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-s128.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-s128.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":6, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "ttl":59, "size":128, "result": [ { "rtt":1000.001000 }, { "rtt":1000.001000 }, { "rtt":1000.001000 } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-data/evping-s2048.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evping-data/evping-s2048.net -------------------------------------------------------------------------------- /testsuite/evping-data/evping-s2048.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "af":6, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "size":2048, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evping-gentests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test() 4 | { 5 | opt="$1" 6 | target="$2" 7 | name="$3" 8 | 9 | filebase=testsuite/evping-data/"evping-$name" 10 | output="$filebase".out 11 | packets="$filebase".net 12 | rm -f "$output" "$packets" 13 | ATLAS_TESTS=yes ATLAS_UNSAFE=yes ./busybox evping $opt -O "$output" -W "$packets" "$target" 14 | } 15 | 16 | test "-6" "ping.ripe.net" "6" 17 | test "-4" "ping.ripe.net" "4" 18 | test "-6 -c1" "ping.ripe.net" "c1" 19 | test "-6 -s0" "ping.ripe.net" "s0" 20 | test "-6 -s128" "ping.ripe.net" "s128" 21 | test "-6 -s1024" "ping.ripe.net" "s1024" 22 | test "-6 -s2048" "ping.ripe.net" "s2048" 23 | test "-6 -A42" "ping.ripe.net" "A42" 24 | test "-6 -A42 -B43" "ping.ripe.net" "B43" 25 | -------------------------------------------------------------------------------- /testsuite/evping.tests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./testing.sh 4 | 5 | evping_test() 6 | { 7 | opt="$1" 8 | target="$2" 9 | name="$3" 10 | 11 | filebase=evping-data/"evping-$name" 12 | output="$filebase".out 13 | packets="$filebase".net 14 | export ATLAS_TESTS=yes ATLAS_UNSAFE=yes 15 | r=$(cat "$output"; echo x); r=${r%?} 16 | testing "evping-$name" "evping $opt -R $packets $target" "$r" "" "" 17 | } 18 | 19 | evping_test "-6" "ping.ripe.net" "6" 20 | evping_test "-4" "ping.ripe.net" "4" 21 | evping_test "-6 -c1" "ping.ripe.net" "c1" 22 | evping_test "-6 -s0" "ping.ripe.net" "s0" 23 | evping_test "-6 -s128" "ping.ripe.net" "s128" 24 | evping_test "-6 -s1024" "ping.ripe.net" "s1024" 25 | evping_test "-6 -s2048" "ping.ripe.net" "s2048" 26 | evping_test "-6 -A42" "ping.ripe.net" "A42" 27 | evping_test "-6 -A42 -B43" "ping.ripe.net" "B43" 28 | 29 | exit $FAILCOUNT 30 | 31 | -------------------------------------------------------------------------------- /testsuite/evsslgetcert-data/evsslgetcert-4.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evsslgetcert-data/evsslgetcert-4.net -------------------------------------------------------------------------------- /testsuite/evsslgetcert-data/evsslgetcert-6.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evsslgetcert-data/evsslgetcert-6.net -------------------------------------------------------------------------------- /testsuite/evsslgetcert-data/evsslgetcert-A42.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evsslgetcert-data/evsslgetcert-A42.net -------------------------------------------------------------------------------- /testsuite/evsslgetcert-data/evsslgetcert-B43.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evsslgetcert-data/evsslgetcert-B43.net -------------------------------------------------------------------------------- /testsuite/evsslgetcert-data/evsslgetcert-TLS1.0.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evsslgetcert-data/evsslgetcert-TLS1.0.net -------------------------------------------------------------------------------- /testsuite/evsslgetcert-data/evsslgetcert-TLS1.0.out: -------------------------------------------------------------------------------- 1 | RESULT { "time":999999999, "dst_name":"www.ripe.net", "dst_port":"443", "ttr":1000.001000, "method":"TLS", "ver":"1.0", "dst_addr":"2606:4700::6812:142c", "af": 6, "src_addr":"2001:67c:2e8:1::c100:10a", "ttc": 1000.001000, "rt": 2000.002000, "server_cipher": "0x0000", "alert": { "level": 2, "description": 70 } } 2 | -------------------------------------------------------------------------------- /testsuite/evsslgetcert-data/evsslgetcert-h.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evsslgetcert-data/evsslgetcert-h.net -------------------------------------------------------------------------------- /testsuite/evsslgetcert-data/evsslgetcert-p853.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evsslgetcert-data/evsslgetcert-p853.net -------------------------------------------------------------------------------- /testsuite/evsslgetcert-gentests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test() 4 | { 5 | opt="$1" 6 | target="$2" 7 | name="$3" 8 | 9 | filebase=testsuite/evsslgetcert-data/"evsslgetcert-$name" 10 | output="$filebase".out 11 | packets="$filebase".net 12 | rm -f "$output" "$packets" 13 | ATLAS_TESTS=yes ATLAS_UNSAFE=yes ./busybox evsslgetcert $opt -O "$output" -W "$packets" "$target" 14 | } 15 | 16 | test "-6" "atlas.ripe.net" "6" 17 | test "-4" "atlas.ripe.net" "4" 18 | test "-6 -A42" "atlas.ripe.net" "A42" 19 | test "-6 -B43 -A42" "atlas.ripe.net" "B43" 20 | test "-6 -h foo.example.com" "atlas.ripe.net" "h" 21 | test "-6 -V TLS1.0 -h www.ripe.net" "www.ripe.net" "TLS1.0" 22 | test "-4 -p 853" "8.8.8.8" "p853" 23 | -------------------------------------------------------------------------------- /testsuite/evsslgetcert.tests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./testing.sh 4 | 5 | catx() 6 | { 7 | cat "$1" | sed 's/\\/\\\\/g' 8 | echo x 9 | } 10 | 11 | evsslgetcert_test() 12 | { 13 | opt="$1" 14 | target="$2" 15 | name="$3" 16 | 17 | filebase=evsslgetcert-data/"evsslgetcert-$name" 18 | output="$filebase".out 19 | packets="$filebase".net 20 | export ATLAS_TESTS=yes ATLAS_UNSAFE=yes 21 | r=$( catx "$output" ); r=${r%?} 22 | testing "evsslgetcert-$name" "evsslgetcert $opt -R $packets $target" "$r" "" "" 23 | } 24 | 25 | evsslgetcert_test "-6" "atlas.ripe.net" "6" 26 | evsslgetcert_test "-4" "atlas.ripe.net" "4" 27 | evsslgetcert_test "-6 -A42" "atlas.ripe.net" "A42" 28 | evsslgetcert_test "-6 -B43 -A42" "atlas.ripe.net" "B43" 29 | evsslgetcert_test "-6 -h foo.example.com" "atlas.ripe.net" "h" 30 | evsslgetcert_test "-6 -V TLS1.0 -h www.ripe.net" "www.ripe.net" "TLS1.0" 31 | evsslgetcert_test "-4 -p 853" "8.8.8.8" "p853" 32 | 33 | exit $FAILCOUNT 34 | 35 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-4.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-4.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-4.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "193.0.9.7" , "dst_port" : "53" , "af" : 4 , "src_addr" : "193.0.1.10" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-6.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-6.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-6.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-A123.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-A123.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-A123.out: -------------------------------------------------------------------------------- 1 | RESULT { "id" : "123" , "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-B456.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-B456.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-B456.out: -------------------------------------------------------------------------------- 1 | RESULT { "id" : "123" , "bundle" : 456 , "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-R.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-R.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-R.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "dst_addr" : "8.8.8.8" , "dst_port" : "53" , "af" : 4 , "src_addr" : "193.0.1.10" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 104 , "abuf" : "MDmBgAABAAMAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAAgAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAVwCoAAQABAAABKwAEaBIULMAqAAEAAQAAASsABGgSFSw=","ID" : 12345 , "ANCOUNT" : 3 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-a.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-a.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-a.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-aaaa.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-aaaa.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-aaaa.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAHAABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ad.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ad.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ad.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 75 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAhA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZQNuZXQA","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-afsdb.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-afsdb.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-afsdb.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAEgABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-any.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-any.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-any.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 327 , "abuf" : "MDmEAAABAAQAAAAAA3d3dwRyaXBlA25ldAAA/wABwAwALgABAAAAPABcAAUNAwAAADxhAArEYO2ArA3+BHJpcGUDbmV0AOZdE/l5lCWw+0lvf9r7IFA6PbR4xWpnkmMv/zSru4zHb+ZLX7mGwrkiaRxSRImeHPOQlJAR+Cd6arerEMLDZwTADAAFAAEAAAA8ACEDd3d3BHJpcGUDbmV0A2NkbgpjbG91ZGZsYXJlA25ldADADAAvAAEAAA4QACAEXzQ0MwRfdGNwA3d3dwRyaXBlA25ldAAABgQAAAAAA8AMAC4AAQAADhAAXAAvDQMAAA4QYQAKxGDtgKwN/gRyaXBlA25ldACMkpOhhMD8ZHjRBAGKgKvvC+NL5fhBW5DEBTtN2IhCgeKANj8oZcy4Vv2yV9rkXGj/FPwruRn8na3l4fEbrmm1","ID" : 12345 , "ANCOUNT" : 4 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-apl.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-apl.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-apl.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAKgABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-axfr.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-axfr.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-axfr.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 30 , "abuf" : "MDmABAABAAAAAAAAA3d3dwRyaXBlA25ldAAA/AAB","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-caa.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-caa.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-caa.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 232 , "abuf" : "MDmEAAABAAYAAAAABHJpcGUDbmV0AAEBAAHADAEBAAEAAVGAABQABWlzc3VlYW1hem9uYXdzLmNvbcAMAQEAAQABUYAAEwAFaXNzdWVkaWdpY2VydC5jb23ADAEBAAEAAVGAABcACWlzc3Vld2lsZGRpZ2ljZXJ0LmNvbcAMAQEAAQABUYAAGAAJaXNzdWV3aWxkYW1hem9uYXdzLmNvbcAMAQEAAQABUYAAFgAFaXNzdWVsZXRzZW5jcnlwdC5vcmfADAEBAAEAAVGAABoACWlzc3Vld2lsZGxldHNlbmNyeXB0Lm9yZw==","ID" : 12345 , "ANCOUNT" : 6 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-cd.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-cd.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-cd.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "dst_addr" : "8.8.8.8" , "dst_port" : "53" , "af" : 4 , "src_addr" : "193.0.1.10" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 104 , "abuf" : "MDmBkAABAAMAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAOwAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAVwCoAAQABAAABKwAEaBIULMAqAAEAAQAAASsABGgSFSw=","ID" : 12345 , "ANCOUNT" : 3 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-cert.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-cert.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-cert.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAlAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-client-subnet.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-client-subnet.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-client-subnet.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 94 , "abuf" : "MDmEAAABAAEAAAABA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAhA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZQNuZXQAAAApBNAAAAAAAAgACAAEAAIAAA==","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 1 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-cname.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-cname.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-cname.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 55 , "abuf" : "MDmEAAABAAEAAAAABWF0bGFzBHJpcGUDbmV0AAAFAAHADAAFAAEAAVGAAAsIYXRsYXMtdWnAEg==","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-cookies.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-cookies.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-cookies.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 83 , "abuf" : "MDmEAAABAAEAAAABA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAVAAApBNAAAAAAAAA=","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 1 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-dlv.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-dlv.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-dlv.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AIABAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-dname.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-dname.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-dname.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAnAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-dnskey.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-dnskey.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-dnskey.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 186 , "abuf" : "MDmEAAABAAIAAAAABHJpcGUDbmV0AAAwAAHADAAwAAEAAA4QAEQBAQMNF+ELkV0Q/5lFixw0t69Ce9fMMp/h3R6KoeW5lpKRQF9U7BUw6BW4z+K0daaLqpgMr9jQBlszB+nIJSI+FIERPcAMADAAAQAADhAARAEAAw2S0MGf2vlZiIPLWtl+NloR+7H/Cx7CDjq301sAlDfasCFQBEbHGOvnDBEIFvuQyv8NSsp2rd/giDqileXdFFmG","ID" : 12345 , "ANCOUNT" : 2 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-do.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-do.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-do.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 187 , "abuf" : "MDmEAAABAAIAAAABA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAVwAwALgABAAAAPABcAAUNAwAAADxhAArEYO2ArA3+BHJpcGUDbmV0AOZdE/l5lCWw+0lvf9r7IFA6PbR4xWpnkmMv/zSru4zHb+ZLX7mGwrkiaRxSRImeHPOQlJAR+Cd6arerEMLDZwQAACkE0AAAgAAAAA==","ID" : 12345 , "ANCOUNT" : 2 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 1 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ds.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ds.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ds.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAArAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ends-flags-2.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ends-flags-2.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ends-flags-2.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 86 , "abuf" : "MDmEAAABAAEAAAABA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAhA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZQNuZXQAAAApBNAAAAAAAAA=","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 1 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ends-option-64.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ends-option-64.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ends-option-64.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 83 , "abuf" : "MDmEAAABAAEAAAABA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAVAAApBNAAAAAAAAA=","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 1 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ends-version-42.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ends-version-42.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ends-version-42.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 41 , "abuf" : "MDmAAAABAAAAAAABA3d3dwRyaXBlA25ldAAAAQABAAApBNABAAAAAAA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 1 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ends0-1024.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ends0-1024.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ends0-1024.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 83 , "abuf" : "MDmEAAABAAEAAAABA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAVAAApBNAAAAAAAAA=","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 1 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-hostname.bind.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-hostname.bind.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-hostname.bind.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 71 , "abuf" : "MDmAAAABAAEAAAAACGhvc3RuYW1lBGJpbmQAABAAA8AMABAAAwAAAAAAHBtuczIubmwtYW1zLmF1dGhkbnMucmlwZS5uZXQ=","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0,"answers" : [ {"TYPE" : "TXT" , "NAME" : "hostname.bind" , "RDATA" : [ "ns2.nl-ams.authdns.ripe.net" ] } ] } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-https.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-https.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-https.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "sslvers" : "test 0.0.0" , "dst_addr" : "2606:4700::6810:f9f9" , "dst_port" : "443" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "TCP" ,"result" : { "rt" : 2000.002,"qt" : 1000.001,"size" : 104 , "abuf" : "MDmBgAABAAMAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAVwCoAAQABAAABLAAEaBIULMAqAAEAAQAAASwABGgSFSw=","ID" : 12345 , "ANCOUNT" : 3 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-id.server.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-id.server.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-id.server.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 67 , "abuf" : "MDmEAAABAAEAAAAAAmlkBnNlcnZlcgAAEAADwAwAEAADAAAAAAAcG25zMS5ubC1hbXMuYXV0aGRucy5yaXBlLm5ldA==","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0,"answers" : [ {"TYPE" : "TXT" , "NAME" : "id.server" , "RDATA" : [ "ns1.nl-ams.authdns.ripe.net" ] } ] } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ipseckey.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ipseckey.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ipseckey.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAtAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ipv6-dest-option-128.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ipv6-dest-option-128.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ipv6-dest-option-128.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-loc.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-loc.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-loc.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAdAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-mx.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-mx.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-mx.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 76 , "abuf" : "MDmEAAABAAIAAAAABHJpcGUDbmV0AAAPAAHADAAPAAEAAAEsAA0A+ghtb2xhbW9sYcAMwAwADwABAAABLAANAMgIbWFoaW1haGnADA==","ID" : 12345 , "ANCOUNT" : 2 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-naptr.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-naptr.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-naptr.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAjAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-noabuf.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-noabuf.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-noabuf.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 ,"ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ns.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ns.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ns.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 218 , "abuf" : "MDmEAAABAAUAAAACBHJpcGUDbmV0AAACAAHADAACAAEAAVGAABAFcmlybnMEYXJpbgNuZXQAwAwAAgABAAFRgAAPA25zNAVhcG5pYwNuZXQAwAwAAgABAAFRgAAYBW1hbnVzB2F1dGhkbnMEcmlwZQNuZXQAwAwAAgABAAFRgAAQA25zMwZsYWNuaWMDbmV0AMAMAAIAAQABUYAAEQNuczMHYWZyaW5pYwNuZXQAwF0AHAABAAFRgAAQIAEGfADgAAAAAAAAAAAAB8BdAAEAAQABUYAABMEACQc=","ID" : 12345 , "ANCOUNT" : 5 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 2 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-nsec.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-nsec.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-nsec.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 94 , "abuf" : "MDmEAAABAAEAAAAABHJpcGUDbmV0AAAvAAHADAAvAAEAAA4QADghXzAwNDg5YTM1OGFlM2U3MGQ1NjVhZTZlZjdkZGFhMzlkBHJpcGUDbmV0AAAHYgGACAADgAEBQA==","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-nsec3.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-nsec3.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-nsec3.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 88 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAyAAHADAAGAAEAAA4QADIFbWFudXMHYXV0aGRucwRyaXBlA25ldAADZG5zwAxg9rqJAAAOEAAAAlgADS8AAAAOEA==","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-nsec3param.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-nsec3param.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-nsec3param.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 88 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAzAAHADAAGAAEAAA4QADIFbWFudXMHYXV0aGRucwRyaXBlA25ldAADZG5zwAxg9rqJAAAOEAAAAlgADS8AAAAOEA==","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-nsid.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-nsid.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-nsid.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 117 , "abuf" : "MDmEAAABAAEAAAABA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAhA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZQNuZXQAAAApBNAAAAAAAB8AAwAbbnMxLm5sLWFtcy5hdXRoZG5zLnJpcGUubmV0","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 1 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-p_probe_id.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-p_probe_id.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-p_probe_id.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 96 , "abuf" : "MDmEAwABAAAAAQAAATAJOTk5OTk5OTk5A3d3dwRyaXBlA25ldAAAAQABwBwABgABAAAOEAAqBW1hbnVzB2F1dGhkbnPAHANkbnPAHGD2uokAAA4QAAACWAANLwAAAA4Q","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ptr.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ptr.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ptr.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAMAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-qbuf.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-qbuf.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-qbuf.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"qbuf" : "MDkAAAABAAAAAAAAA3d3dwRyaXBlA25ldAAAAQAB" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-resolv.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-resolv.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-retry-3.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-retry-3.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-retry-3.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 75 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAhA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZQNuZXQA","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-rp.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-rp.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-rp.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAARAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-rrsig.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-rrsig.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-rrsig.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 442 , "abuf" : "MDmGAAABAAQAAAAABHJpcGUDbmV0AAAuAAHADAAuAAEAAAEsAFwAAQ0CAAABLGEACsRg7YCsDf4EcmlwZQNuZXQAiueSXILhhiNkYkT3EV6fA1TOFZDnX1Ely3r8gc5ebzfnnTWsPSDM3/I/t4wiv9d+Xtejw3nrcFzdANoiep03HsA4AC4AAQABUYAAXAACDQIAAVGAYQAKxGDtgKwN/gRyaXBlA25ldAB89rlCHHSrC63B48F1sG/PjPu3yZFV3gs2n1/78td+sR1LoRKkYe5VpBVQiDpG5gEV6v3RX36PCvGTKB26drgYwKAALgABAAAOEABcAAYNAgAADhBhCS+JYPalcQ3+BHJpcGUDbmV0AG9219phbeTNLpkckAkEULm7EOXHzZIEnY7YvrCsdh9XI4qRIlbJtMgyN+atEfCAltoh6QcAu3uWFVjwgWh4X6TBCAAuAAEAAAEsAFwADw0CAAABLGEACsRg7YCsDf4EcmlwZQNuZXQA10zicsqfcyd3Y95Q5YrDJj+f5gJb+kNRFaFby+FupZr8Tfv4f0LpEFZVhEdpQOfGc2gj5ZHQ18qHMw0urEqN+w==","ID" : 12345 , "ANCOUNT" : 4 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-sig.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-sig.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-sig.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 88 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAYAAHADAAGAAEAAA4QADIFbWFudXMHYXV0aGRucwRyaXBlA25ldAADZG5zwAxg9rqJAAAOEAAAAlgADS8AAAAOEA==","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-soa.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-soa.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-soa.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAEAAAAABHJpcGUDbmV0AAAGAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0,"answers" : [ { "TYPE" : "SOA" , "NAME" : "ripe.net." , "TTL" : 3600 , "MNAME" : "manus.authdns.ripe.net." , "RNAME" : "dns.ripe.net." , "SERIAL" : 1626782345 } ] } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-spf.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-spf.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-spf.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 88 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AABjAAHADAAGAAEAAA4QADIFbWFudXMHYXV0aGRucwRyaXBlA25ldAADZG5zwAxg9rqJAAAOEAAAAlgADS8AAAAOEA==","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-srv.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-srv.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-srv.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAhAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-sshfp.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-sshfp.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-sshfp.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 88 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAAsAAHADAAGAAEAAA4QADIFbWFudXMHYXV0aGRucwRyaXBlA25ldAADZG5zwAxg9rqJAAAOEAAAAlgADS8AAAAOEA==","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-t.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-t.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-t.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "dst_name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "TCP" , "error" : { "timeout" : 5000} } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ta.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ta.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ta.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AIAAAAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-tls.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-tls.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-tls.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "sslvers" : "test 0.0.0" , "dst_addr" : "8.8.8.8" , "dst_port" : "853" , "af" : 4 , "src_addr" : "193.0.1.10" , "proto" : "TCP" ,"result" : { "rt" : 2000.002,"qt" : 1000.001,"size" : 104 , "abuf" : "MDmBgAABAAMAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAALwAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAVwCoAAQABAAABKwAEaBIVLMAqAAEAAQAAASsABGgSFCw=","ID" : 12345 , "ANCOUNT" : 3 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-tlsa.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-tlsa.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-tlsa.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 80 , "abuf" : "MDmEAAABAAAAAQAABHJpcGUDbmV0AAA0AAHADAAGAAEAAA4QACoFbWFudXMHYXV0aGRuc8AMA2Ruc8AMYPa6iQAADhAAAAJYAA0vAAAADhA=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 1 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ttl.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-ttl.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-ttl.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "ttl" : 61 , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 72 , "abuf" : "MDmEAAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwABQABAAAAPAAeA3d3dwRyaXBlA25ldANjZG4KY2xvdWRmbGFyZcAV","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-txt.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-txt.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-txt.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 26 , "abuf" : "MDmGAAABAAAAAAAABHJpcGUDbmV0AAAQAAE=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-type-class-query.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-type-class-query.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-type-class-query.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "193.0.9.7" , "dst_port" : "53" , "af" : 4 , "src_addr" : "193.0.1.10" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 12 , "abuf" : "MDmABQAAAAAAAAAA","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 0 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-version.bind.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-version.bind.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-version.bind.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 46 , "abuf" : "MDmAAAABAAEAAAAAB3ZlcnNpb24EYmluZAAAEAADwAwAEAADAAAAAAAEA05TRA==","ID" : 12345 , "ANCOUNT" : 1 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0,"answers" : [ {"TYPE" : "TXT" , "NAME" : "version.bind" , "RDATA" : [ "NSD" ] } ] } } 2 | -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-version.server.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtdig-data/evtdig-version.server.net -------------------------------------------------------------------------------- /testsuite/evtdig-data/evtdig-version.server.out: -------------------------------------------------------------------------------- 1 | RESULT { "fw":9999, "mver": "0.0.0", "time" : 999999999 , "lts" : 123 , "name" : "manus.authdns.ripe.net" , "dst_addr" : "2001:67c:e0::7" , "dst_port" : "53" , "af" : 6 , "src_addr" : "2001:67c:2e8:1::c100:10a" , "proto" : "UDP" ,"result" : { "rt" : 1000.001,"size" : 32 , "abuf" : "MDmABQABAAAAAAAAB3ZlcnNpb24Gc2VydmVyAAAQAAM=","ID" : 12345 , "ANCOUNT" : 0 , "QDCOUNT" : 1 , "NSCOUNT" : 0 , "ARCOUNT" : 0 } } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-4.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-4.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-4T.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-4T.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-4U.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-4U.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-6.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-6.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-6.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "af": 6, "size":40, "paris_id":1, "result": [ { "hop":1, "result": [ { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 } ] }, { "hop":2, "result": [ { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 } ] }, { "hop":3, "result": [ { "x":"*" }, { "x":"*" }, { "from":"2001:470:0:7d::1", "ttl":62, "rtt":1000.001, "size":88 } ] }, { "hop":4, "result": [ { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 }, { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 }, { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 } ] }, { "hop":5, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":6, "result": [ { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":40 }, { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":40 }, { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":40 } ] } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-6T.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-6T.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-6U.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-6U.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-6U.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"UDP", "af": 6, "size":40, "paris_id":1, "result": [ { "hop":1, "result": [ { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 } ] }, { "hop":2, "result": [ { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 } ] }, { "hop":3, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":4, "result": [ { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 }, { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 }, { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 } ] }, { "hop":5, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":6, "result": [ { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":88 }, { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":88 }, { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":88 } ] } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-A42.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-A42.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-B43.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-B43.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-D512.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-D512.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-D512.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "af": 6, "size":40, "paris_id":1, "result": [ { "hop":1, "result": [ { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":608, "dstoptsize":512 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":608, "dstoptsize":512 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":608, "dstoptsize":512 } ] }, { "hop":2, "result": [ { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":608, "dstoptsize":512 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":608, "dstoptsize":512 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":608, "dstoptsize":512 } ] }, { "hop":3, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":4, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":5, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":6, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":7, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":255, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-F.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-F.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-H512.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-H512.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-H512.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "af": 6, "size":40, "paris_id":1, "result": [ { "hop":1, "result": [ { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":608, "hbhoptsize":512 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":608, "hbhoptsize":512 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":608, "hbhoptsize":512 } ] }, { "hop":2, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":3, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":4, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":5, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":6, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":255, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-S0.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-S0.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-S1024.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-S1024.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-S1024.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "af": 6, "size":1024, "paris_id":1, "result": [ { "hop":1, "result": [ { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":1072 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":1072 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":1072 } ] }, { "hop":2, "result": [ { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":1072 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":1072 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":1072 } ] }, { "hop":3, "result": [ { "x":"*" }, { "x":"*" }, { "from":"2001:470:0:7d::1", "ttl":62, "rtt":1000.001, "size":1072 } ] }, { "hop":4, "result": [ { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":1072 }, { "x":"*" }, { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":1072 } ] }, { "hop":5, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":6, "result": [ { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":1024 }, { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":1024 }, { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":1024 } ] } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-S2048.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-S2048.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-a32.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-a32.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-b2.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-b2.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-c4.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-c4.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-f3.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-f3.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-f3.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "af": 6, "size":40, "paris_id":1, "result": [ { "hop":3, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":4, "result": [ { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 }, { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 }, { "from":"2001:7f8:1::a500:3333:2", "ttl":61, "rtt":1000.001, "size":88 } ] }, { "hop":5, "result": [ { "x":"*" }, { "x":"*" }, { "x":"*" } ] }, { "hop":6, "result": [ { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":40 }, { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":40 }, { "from":"2001:67c:2e8:3::c100:a4", "ttl":59, "rtt":1000.001, "size":40 } ] } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-g2.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-g2.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-m2.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-m2.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-m2.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"ping.ripe.net", "ttr":1000.001000, "dst_addr":"2001:67c:2e8:3::c100:a4", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"ICMP", "af": 6, "size":40, "paris_id":1, "result": [ { "hop":1, "result": [ { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":88 } ] }, { "hop":2, "result": [ { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":88 } ] } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-p443.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-p443.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-p443.out: -------------------------------------------------------------------------------- 1 | RESULT { "dst_name":"www.ripe.net", "ttr":1000.001000, "dst_addr":"2606:4700::6812:152c", "src_addr":"2001:470:d16a:10:a00:27ff:fead:1276", "proto":"TCP", "af": 6, "size":40, "paris_id":1, "result": [ { "hop":1, "result": [ { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":100 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":100 }, { "from":"2001:470:d16a:10:2a0:c9ff:fe9f:16bd", "ttl":80, "rtt":1000.001, "size":100 } ] }, { "hop":2, "result": [ { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":100 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":100 }, { "from":"2001:470:1f14:84d::1", "ttl":63, "rtt":1000.001, "size":100 } ] }, { "hop":3, "result": [ { "x":"*" }, { "x":"*" }, { "from":"2001:470:0:7d::1", "ttl":62, "rtt":1000.001, "size":100 } ] }, { "hop":4, "result": [ { "x":"*" }, { "from":"2001:7f8:1::a501:3335:1", "ttl":60, "rtt":1000.001, "size":100 }, { "x":"*" } ] }, { "hop":5, "result": [ { "from":"2606:4700::6812:152c", "ttl":59, "size":4, "flags":"SA", "hdropts": [ { "mss":1360 } ], "rtt":1000.001 }, { "from":"2606:4700::6812:152c", "ttl":59, "size":4, "flags":"SA", "hdropts": [ { "mss":1360 } ], "rtt":1000.001 }, { "from":"2606:4700::6812:152c", "ttl":59, "size":4, "flags":"SA", "hdropts": [ { "mss":1360 } ], "rtt":1000.001 } ] } ] } 2 | -------------------------------------------------------------------------------- /testsuite/evtraceroute-data/evtraceroute-t128.net: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-probe-measurements/d72872cc6bb9ed5da47dcf1dc726fd8a36c6058f/testsuite/evtraceroute-data/evtraceroute-t128.net -------------------------------------------------------------------------------- /testsuite/evtraceroute-gentests: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test() 4 | { 5 | opt="$1" 6 | target="$2" 7 | name="$3" 8 | 9 | echo "Test '$name'" 10 | 11 | filebase=testsuite/evtraceroute-data/"evtraceroute-$name" 12 | output="$filebase".out 13 | packets="$filebase".net 14 | rm -f "$output" "$packets" 15 | ATLAS_TESTS=yes ATLAS_UNSAFE=yes ./busybox evtraceroute $opt -O "$output" -W "$packets" "$target" 16 | } 17 | 18 | test "-6 -I" ping.ripe.net "6" 19 | test "-4 -I" ping.ripe.net "4" 20 | test "-6 -U" ping.ripe.net "6U" 21 | test "-4 -U" ping.ripe.net "4U" 22 | test "-6 -T" ping.ripe.net "6T" 23 | test "-4 -T" ping.ripe.net "4T" 24 | test "-6 -A 42 -I" ping.ripe.net "A42" 25 | test "-6 -A 42 -B 43 -I" ping.ripe.net "B43" 26 | test "-6 -a 32 -I" ping.ripe.net "a32" 27 | test "-6 -a 32 -b 2 -I" ping.ripe.net "b2" 28 | test "-6 -c 4 -I" ping.ripe.net "c4" 29 | test "-6 -f 3 -I" ping.ripe.net "f3" 30 | test "-6 -m 2 -I" ping.ripe.net "m2" 31 | test "-6 -g 2 -I" g.root-servers.net "g2" 32 | test "-6 -p 443 -T" www.ripe.net "p443" 33 | test "-6 -S 0 -I" ping.ripe.net "S0" 34 | test "-6 -S 1024 -I" ping.ripe.net "S1024" 35 | test "-6 -S 2048 -I" ping.ripe.net "S2048" 36 | test "-6 -F -S 1352 -I" ping.ripe.net "F" 37 | test "-6 -H 512 -I" ping.ripe.net "H512" 38 | test "-6 -D 512 -I" ping.ripe.net "D512" 39 | test "-6 -t 128 -I" ping.ripe.net "t128" 40 | --------------------------------------------------------------------------------