{"id":16687067,"url":"https://github.com/paralin/batctl","last_synced_at":"2025-10-24T05:42:04.798Z","repository":{"id":152080380,"uuid":"57865358","full_name":"paralin/batctl","owner":"paralin","description":"Batman-adv cli, mirrored","archived":false,"fork":false,"pushed_at":"2016-05-02T04:12:26.000Z","size":504,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-05T22:36:22.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paralin.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-02T04:11:28.000Z","updated_at":"2018-04-06T11:25:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0132e98-de4d-45ca-bab3-05de2130681b","html_url":"https://github.com/paralin/batctl","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/paralin/batctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fbatctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fbatctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fbatctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fbatctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paralin","download_url":"https://codeload.github.com/paralin/batctl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fbatctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280747402,"owners_count":26383946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T15:07:41.249Z","updated_at":"2025-10-24T05:42:04.751Z","avatar_url":"https://github.com/paralin.png","language":"C","readme":"##############################################################################\n# batctl - B.A.T.M.A.N. advanced control and management tool                 #\n##############################################################################\n\n\n\nIntroduction\n============\n\nWhy do I need batctl ? B.A.T.M.A.N. advanced operates on layer 2 and thus all\nhosts participating in the virtual switch are completely transparent for all\nprotocols above layer 2. Therefore the common diagnosis tools do not work as\nexpected. To overcome these problems batctl was created. At the moment batctl\ncontains ping, traceroute, tcpdump and interfaces to the kernel module\nsettings.\n\n\nHow does it work ?\n==================\n\nbatctl uses the debugfs/batman_adv/bat0/socket device provided by the B.A.T.M.A.N.\nadvanced kernel module to inject custom icmp packets into the data flow. That's why\nping and traceroute work almost like their IP based counterparts. Tcpdump was\ndesigned because B.A.T.M.A.N. advanced encapsulates all traffic within batman\npackets, so that the normal tcpdump would not recognize the packets.\n\n\nThe bat-hosts file\n==================\n\nThis file is simliar to the /etc/hosts file. You can write one MAC address and\none host name per line. batctl will analyze the file to find the matching MAC\naddress to your provided host name. Host names are much easier to remember than\nMAC addresses.  ;)\n\n\nbatctl statistics\n=================\n\nThe batman-adv kernel module maintains a number of traffic counters which are exported\nto user space. With batctl these counters can be easily retrieved. The output may vary\ndepending on which features have been compiled into the kernel module. For example, if\nthe distributed arp table (short: dat) wasn't selected as an option at compile time\nits counters won't be shown.\nEach module subsystem has its own counters which are indicated by their prefixes:\n * mgmt - mesh protocol counters\n * tt - translation table counters\n * dat - distributed arp table counters\nAll counters without a prefix concern payload (pure user data) traffic.\n\nUsage: batctl statistics\n\nExample:\n\n$ batctl statistics\n        tx: 14\n        tx_bytes: 1316\n        tx_errors: 0\n        rx: 14\n        rx_bytes: 1316\n        forward: 0\n        forward_bytes: 0\n        mgmt_tx: 18\n        mgmt_tx_bytes: 762\n        mgmt_rx: 17\n        mgmt_rx_bytes: 1020\n        tt_request_tx: 0\n        tt_request_rx: 0\n        tt_response_tx: 0\n        tt_response_rx: 0\n        tt_roam_adv_tx: 0\n        tt_roam_adv_rx: 0\n        dat_request_tx: 0\n        dat_request_rx: 0\n        dat_reply_tx: 1\n        dat_reply_rx: 0\n\nbatctl translate\n================\n\nTranslates a destination (hostname, IPv4, IPv6, MAC, bat_host-name) to the\noriginator mac address responsible for it.\n\nUsage: batctl translate mac|bat-host|host-name|IP-address\n\nExample:\n\n$ batctl translate www.google.de\n02:ca:fe:af:fe:01\n$ batctl translate 02:ca:fe:af:fe:01\n02:ca:fe:af:fe:01\n$ batctl translate 192.168.1.2\n02:ca:fe:af:fe:05\n$ batctl translate fe:fe:00:00:09:01\n02:ca:fe:af:fe:05\n$ batctl translate 2001::1\n02:ca:fe:af:fe:05\n\nbatctl ping\n============\n\nSends a Layer 2 batman-adv ping to check round trip time and connectivity\n\nUsage: batctl ping [parameters] mac|bat-host|host-name|IP-address\nparameters:\n         -c ping packet count\n         -h print this help\n         -i interval in seconds\n         -t timeout in seconds\n         -T don't try to translate mac to originator address\n         -R record route\n\nExample:\n\n$ batctl ping fe:fe:00:00:09:01\nPING fe:fe:00:00:09:01 (fe:fe:00:00:09:01) 19(47) bytes of data\n19 bytes from fe:fe:00:00:09:01 icmp_seq=1 ttl=43 time=8.74 ms\n19 bytes from fe:fe:00:00:09:01 icmp_seq=2 ttl=43 time=7.48 ms\n19 bytes from fe:fe:00:00:09:01 icmp_seq=3 ttl=43 time=8.23 ms\n^C--- fe:fe:00:00:09:01 ping statistics ---\n3 packets transmitted, 3 received, 0% packet loss\nrtt min/avg/max/mdev = 7.476/8.151/8.743/1.267 ms\n\nbatctl traceroute\n==================\n\nTraceroute sends 3 packets to each hop, awaits the answers and prints out the\nresponse times.\n\nUsage: batctl traceroute [parameters] mac|bat-host|host-name|IP-address\n\nExample:\n\n$ batctl traceroute fe:fe:00:00:09:01\ntraceroute to fe:fe:00:00:09:01 (fe:fe:00:00:09:01), 50 hops max, 19 byte packets\n 1: fe:fe:00:00:02:01 4.932 ms  2.338 ms  1.333 ms\n 2: fe:fe:00:00:03:01 6.860 ms  1.579 ms  1.260 ms\n 3: fe:fe:00:00:04:01 2.342 ms  1.547 ms  1.655 ms\n 4: fe:fe:00:00:05:01 2.906 ms  2.211 ms  2.253 ms\n 5: fe:fe:00:00:06:01 3.577 ms  2.687 ms  3.088 ms\n 6: fe:fe:00:00:07:01 4.217 ms  5.741 ms  3.551 ms\n 7: fe:fe:00:00:08:01 5.017 ms  5.547 ms  4.294 ms\n 8: fe:fe:00:00:09:01 5.730 ms  4.970 ms  6.437 ms\n\n\n\nbatctl tcpdump\n===============\n\ntcpdump layer 2 and/or layer 3 traffic on the given interface\n\nUsage: batctl tcpdump [parameters] interface [interface]\nparameters:\n         -c compat filter - only display packets matching own compat version (14)\n         -h print this help\n         -n don't convert addresses to bat-host names\n         -p dump specific packet type\n         -x dump all packet types except specified\npacket types:\n                  1 - batman ogm packets\n                  2 - batman icmp packets\n                  4 - batman unicast packets\n                  8 - batman broadcast packets\n                 16 - batman unicast tvlv packets\n                 32 - batman fragmented packets\n                 64 - batman tt / roaming packets\n                128 - non batman packets\n                129 - batman ogm \u0026 non batman packets\n\ntcpdump supports standard interfaces as well as raw wifi interfaces running in monitor mode.\n\nExample output for tcpdump:\n\n$ batctl tcpdump mesh0\n01:51:42.401188 BAT kansas: OGM via neigh kansas, seqno 6718, tq 255, ttl 50, v 9, flags [..I], length 28\n01:51:42.489735 BAT kansas: OGM via neigh wyoming, seqno 6718, tq 245, ttl 49, v 9, flags [.D.], length 28\n01:51:42.510330 BAT wyoming: OGM via neigh wyoming, seqno 6721, tq 255, ttl 50, v 9, flags [..I], length 28\n01:51:42.601092 BAT wyoming: OGM via neigh kansas, seqno 6721, tq 245, ttl 49, v 9, flags [.D.], length 28\n01:51:43.361076 BAT kansas \u003e wyoming: ICMP echo request, id 0, seq 1, ttl 1, v 9, length 19\n01:51:43.365347 BAT wyoming \u003e kansas: ICMP echo reply, id 0, seq 1, ttl 50, v 9, length 19\n01:51:43.372224 BAT kansas \u003e wyoming: ICMP echo request, id 0, seq 2, ttl 1, v 9, length 19\n01:51:43.376506 BAT wyoming \u003e kansas: ICMP echo reply, id 0, seq 2, ttl 50, v 9, length 19\n01:51:43.381250 BAT kansas: OGM via neigh kansas, seqno 6719, tq 255, ttl 50, v 9, flags [..I], length 28\n01:51:43.386281 BAT kansas \u003e wyoming: ICMP echo request, id 0, seq 3, ttl 1, v 9, length 19\n01:51:43.387910 BAT wyoming \u003e kansas: ICMP echo reply, id 0, seq 3, ttl 50, v 9, length 19\n01:51:43.479503 BAT kansas: OGM via neigh wyoming, seqno 6719, tq 245, ttl 49, v 9, flags [.D.], length 28\n01:51:43.509899 BAT wyoming: OGM via neigh wyoming, seqno 6722, tq 255, ttl 50, v 9, flags [..I], length 28\n01:51:43.600999 BAT wyoming: OGM via neigh kansas, seqno 6722, tq 245, ttl 49, v 9, flags [.D.], length 28\n01:51:44.381064 BAT kansas: OGM via neigh kansas, seqno 6720, tq 255, ttl 50, v 9, flags [..I], length 28\n\nbatctl bisect_iv\n================\n\nAnalyzes the B.A.T.M.A.N. IV logfiles to build a small internal database of all sent sequence\nnumbers and routing table changes. This database can be used to search for routing loops\n(default action), to trace OGMs of  a  host  (use  \"-t\"  to specify  the  mac address or\nbat-host name) throughout the network or to display routing tables of the nodes (use \"-r\" to\nspecify the mac address or bat-host name). You can name a specific sequence number or a range\nusing the \"-s\"  option  to limit the output's range. Furthermore you can filter the output by\nspecifying an originator (use \"-o\" to specify the mac address or bat-host name) to only see\ndata connected to  this  originator.  If  \"-n\"  was given batctl will not replace the mac\naddresses with bat-host names in the output.\n\nUsage: batctl bisect_iv [parameters] \u003cfile1\u003e \u003cfile2\u003e .. \u003cfileN\u003e\nparameters:\n         -h print this help\n         -l run a loop detection of given mac address or bat-host (default)\n         -n don't convert addresses to bat-host names\n         -r print routing tables of given mac address or bat-host\n         -s seqno range to limit the output\n         -t trace seqnos of given mac address or bat-host\n\nExamples:\n\n$ batctl bisect_iv log/* -l uml3\nAnalyzing routing tables of originator: uml3 [all sequence numbers]\n\nChecking host: uml3\nPath towards uml7 (seqno 9 via neigh uml5): -\u003e uml5 -\u003e uml6\nPath towards uml7 (seqno 10 via neigh uml4): -\u003e uml4 -\u003e uml5 -\u003e uml6\nPath towards uml6 (seqno 4 via neigh uml4): -\u003e uml4\nPath towards uml8 (seqno 12 via neigh uml4): -\u003e uml4 -\u003e uml5 -\u003e uml6 -\u003e uml7\nPath towards uml8 (seqno 203 via neigh uml4): -\u003e uml4 -\u003e uml6 -\u003e uml7\nPath towards uml8 (seqno 391 via neigh uml2): -\u003e uml2 -\u003e uml3 -\u003e uml2 aborted due to loop!\nPath towards uml8 (seqno 396 via neigh uml4): -\u003e uml4 -\u003e uml6 -\u003e uml7\nPath towards uml9 (seqno 10 via neigh uml5): -\u003e uml5 -\u003e uml6 -\u003e uml7 -\u003e uml9.\nPath towards uml9 (seqno 10 via neigh uml4): -\u003e uml4 -\u003e uml5 -\u003e uml6 -\u003e uml7 -\u003e uml9.\nPath towards uml9 (seqno 11 via neigh uml4): -\u003e uml4 -\u003e uml6 -\u003e uml7 -\u003e uml8 -\u003e uml9.\nPath towards uml9 (seqno 12 via neigh uml4): -\u003e uml4 -\u003e uml5 -\u003e uml6 -\u003e uml7 -\u003e uml8 -\u003e uml9.\nPath towards uml9 (seqno 21 via neigh uml5): -\u003e uml5 -\u003e uml6 -\u003e uml7 -\u003e uml8 -\u003e uml9.\nPath towards uml9 (seqno 22 via neigh uml4): -\u003e uml4 -\u003e uml5 -\u003e uml6 -\u003e uml7 -\u003e uml8 -\u003e uml9.\n\n$ ./batctl bisect_iv -t uml3 log/*\nSequence number flow of originator: uml3 [all sequence numbers]\n[...]\n+=\u003e uml3 (seqno 19)\n|- uml2 [tq: 255, ttl: 50, neigh: uml3, prev_sender: uml3]\n|   |- uml3 [tq: 154, ttl: 49, neigh: uml2, prev_sender: uml3]\n|   \\- uml1 [tq: 154, ttl: 49, neigh: uml2, prev_sender: uml3]\n|       |- uml3 [tq: 51, ttl: 48, neigh: uml1, prev_sender: uml2]\n|       \\- uml2 [tq: 51, ttl: 48, neigh: uml1, prev_sender: uml2]\n|- uml5 [tq: 255, ttl: 50, neigh: uml3, prev_sender: uml3]\n|   |- uml6 [tq: 33, ttl: 48, neigh: uml5, prev_sender: uml3]\n|   |   |- uml5 [tq: 11, ttl: 47, neigh: uml6, prev_sender: uml5]\n|   |   |- uml7 [tq: 11, ttl: 47, neigh: uml6, prev_sender: uml5]\n|   |   |   |- uml8 [tq: 3, ttl: 46, neigh: uml7, prev_sender: uml6]\n|   |   |   |   |- uml6 [tq: 0, ttl: 45, neigh: uml8, prev_sender: uml7]\n|   |   |   |   |- uml9 [tq: 0, ttl: 45, neigh: uml8, prev_sender: uml7]\n|   |   |   |   \\- uml7 [tq: 0, ttl: 45, neigh: uml8, prev_sender: uml7]\n|   |   |   |- uml6 [tq: 3, ttl: 46, neigh: uml7, prev_sender: uml6]\n|   |   |   |- uml9 [tq: 3, ttl: 46, neigh: uml7, prev_sender: uml6]\n|   |   |   \\- uml5 [tq: 3, ttl: 46, neigh: uml7, prev_sender: uml6]\n|   |   \\- uml4 [tq: 11, ttl: 47, neigh: uml6, prev_sender: uml5]\n|   |- uml7 [tq: 33, ttl: 48, neigh: uml5, prev_sender: uml3]\n|   \\- uml4 [tq: 33, ttl: 48, neigh: uml5, prev_sender: uml3]\n\\- uml4 [tq: 255, ttl: 50, neigh: uml3, prev_sender: uml3]\n    |- uml3 [tq: 106, ttl: 49, neigh: uml4, prev_sender: uml3]\n    |- uml6 [tq: 106, ttl: 49, neigh: uml4, prev_sender: uml3]\n    |- uml2 [tq: 106, ttl: 49, neigh: uml4, prev_sender: uml3]\n    \\- uml5 [tq: 106, ttl: 49, neigh: uml4, prev_sender: uml3]\n+=\u003e uml3 (seqno 20)\n|- uml2 [tq: 255, ttl: 50, neigh: uml3, prev_sender: uml3]\n|   |- uml3 [tq: 160, ttl: 49, neigh: uml2, prev_sender: uml3]\n|   |- uml1 [tq: 160, ttl: 49, neigh: uml2, prev_sender: uml3]\n|   \\- uml4 [tq: 160, ttl: 49, neigh: uml2, prev_sender: uml3]\n|- uml5 [tq: 255, ttl: 50, neigh: uml3, prev_sender: uml3]\n|   |- uml3 [tq: 43, ttl: 48, neigh: uml5, prev_sender: uml3]\n|   |- uml6 [tq: 43, ttl: 48, neigh: uml5, prev_sender: uml3]\n|   |   |- uml8 [tq: 16, ttl: 47, neigh: uml6, prev_sender: uml5]\n|   |   |- uml5 [tq: 16, ttl: 47, neigh: uml6, prev_sender: uml5]\n|   |   |- uml7 [tq: 16, ttl: 47, neigh: uml6, prev_sender: uml5]\n|   |   |   |- uml8 [tq: 5, ttl: 46, neigh: uml7, prev_sender: uml6]\n|   |   |   |   |- uml6 [tq: 0, ttl: 45, neigh: uml8, prev_sender: uml7]\n|   |   |   |   |- uml9 [tq: 0, ttl: 45, neigh: uml8, prev_sender: uml7]\n|   |   |   |   \\- uml7 [tq: 0, ttl: 45, neigh: uml8, prev_sender: uml7]\n|   |   |   \\- uml6 [tq: 5, ttl: 46, neigh: uml7, prev_sender: uml6]\n|   |   \\- uml4 [tq: 16, ttl: 47, neigh: uml6, prev_sender: uml5]\n|   \\- uml4 [tq: 43, ttl: 48, neigh: uml5, prev_sender: uml3]\n|- uml1 [tq: 255, ttl: 50, neigh: uml3, prev_sender: uml3]\n|   \\- uml2 [tq: 49, ttl: 48, neigh: uml1, prev_sender: uml3]\n\\- uml4 [tq: 255, ttl: 50, neigh: uml3, prev_sender: uml3]\n    |- uml3 [tq: 114, ttl: 49, neigh: uml4, prev_sender: uml3]\n    |- uml6 [tq: 114, ttl: 49, neigh: uml4, prev_sender: uml3]\n    |- uml2 [tq: 114, ttl: 49, neigh: uml4, prev_sender: uml3]\n    \\- uml5 [tq: 114, ttl: 49, neigh: uml4, prev_sender: uml3]\n[...]\n\nbatctl originators\n==================\n\nCheck the Originators table\n\nUsage: batctl originators|o\n\nExample:\n\n$ batctl originators\n[B.A.T.M.A.N. adv 2011.4.0, MainIF/MAC: eth0/fe:fe:00:00:01:01 (bat0)]\n  Originator      last-seen (#/255)           Nexthop [outgoingIF]:   Potential nexthops ...\nfe:fe:00:00:08:01    0.820s   (194) fe:fe:00:00:02:01 [      eth0]: fe:fe:00:00:03:01 ( 65) fe:fe:00:00:02:01 (194)\nfe:fe:00:00:03:01    0.980s   (245) fe:fe:00:00:02:01 [      eth0]: fe:fe:00:00:03:01 ( 81) fe:fe:00:00:02:01 (245)\nfe:fe:00:00:05:01    0.140s   (221) fe:fe:00:00:02:01 [      eth0]: fe:fe:00:00:03:01 ( 76) fe:fe:00:00:02:01 (221)\nfe:fe:00:00:04:01    0.010s   (235) fe:fe:00:00:02:01 [      eth0]: fe:fe:00:00:02:01 (235) fe:fe:00:00:03:01 ( 81)\nfe:fe:00:00:09:01    0.830s   (187) fe:fe:00:00:02:01 [      eth0]: fe:fe:00:00:03:01 ( 63) fe:fe:00:00:02:01 (187)\nfe:fe:00:00:06:01    0.830s   (213) fe:fe:00:00:02:01 [      eth0]: fe:fe:00:00:03:01 ( 71) fe:fe:00:00:02:01 (213)\nfe:fe:00:00:02:01    0.240s   (255) fe:fe:00:00:02:01 [      eth0]: fe:fe:00:00:03:01 ( 81) fe:fe:00:00:02:01 (255)\nfe:fe:00:00:07:01    0.670s   (200) fe:fe:00:00:02:01 [      eth0]: fe:fe:00:00:03:01 ( 68) fe:fe:00:00:02:01 (200)\n\nSince 2014.1.0, each batman interface has an individual originator table as well which is only used for routing.\nThese table explain to which neighbor a packet is forwarded when the packet is received on the specified interface.\n\nExample:\n\n$ batctl originators -i eth0\n[B.A.T.M.A.N. adv master-b82b9b2, IF/MAC: eth0/fe:f0:00:00:02:01 (bat0 BATMAN_IV)]\n  Originator      last-seen (#/255)           Nexthop [outgoingIF]:   Potential nexthops ...\nfe:f1:00:00:03:01    0.170s   (255) fe:f1:00:00:03:01 [      eth1]: fe:f1:00:00:03:01 (255)\nfe:f1:00:00:01:01    0.510s   (253) fe:f1:00:00:01:01 [      eth1]: fe:f1:00:00:01:01 (253)\nfe:f0:00:00:05:01    0.660s   (222) fe:f1:00:00:03:01 [      eth1]: fe:f0:00:00:03:01 (198) fe:f1:00:00:03:01 (222)\nfe:f0:00:00:03:01    0.560s   (252) fe:f1:00:00:03:01 [      eth1]: fe:f1:00:00:03:01 (252) fe:f0:00:00:03:01 (240)\nfe:f0:00:00:04:01    0.250s   (240) fe:f1:00:00:03:01 [      eth1]: fe:f1:00:00:03:01 (240) fe:f0:00:00:03:01 (211)\nfe:f0:00:00:01:01    0.850s   (255) fe:f1:00:00:01:01 [      eth1]: fe:f1:00:00:01:01 (255) fe:f0:00:00:01:01 (238)\n$ batctl originators -i eth1\n[B.A.T.M.A.N. adv master-b82b9b2, IF/MAC: eth1/fe:f1:00:00:02:01 (bat0 BATMAN_IV)]\n  Originator      last-seen (#/255)           Nexthop [outgoingIF]:   Potential nexthops ...\nfe:f1:00:00:03:01    0.880s   (240) fe:f1:00:00:03:01 [      eth1]: fe:f1:00:00:03:01 (240)\nfe:f1:00:00:01:01    0.250s   (239) fe:f1:00:00:01:01 [      eth1]: fe:f1:00:00:01:01 (239)\nfe:f0:00:00:05:01    0.340s   (211) fe:f1:00:00:03:01 [      eth1]: fe:f0:00:00:03:01 (210) fe:f1:00:00:03:01 (211)\nfe:f0:00:00:03:01    0.260s   (253) fe:f0:00:00:03:01 [      eth0]: fe:f1:00:00:03:01 (240) fe:f0:00:00:03:01 (253)\nfe:f0:00:00:04:01    0.010s   (225) fe:f0:00:00:03:01 [      eth0]: fe:f1:00:00:03:01 (224) fe:f0:00:00:03:01 (225)\nfe:f0:00:00:01:01    0.510s   (255) fe:f0:00:00:01:01 [      eth0]: fe:f1:00:00:01:01 (240) fe:f0:00:00:01:01 (255)\n\n\nbatctl interface\n================\n\ndisplay or modify the interface settings\n\nUsage: batctl interface|if [add|del iface(s)]\n\nExample:\n\n$  batctl interface\neth0: active\n\nbatctl interval\n===============\n\ndisplay or modify the originator interval in ms\n\nUsage: batctl orig_interval|it [interval]\n\nExample:\n\n$ batctl interval\n1000\n\nbatctl log\n==========\n\nread the log produced by the kernel module\n\nUsage: batctl log|l\n\nExample:\n\n$ batctl log\n[       400] Received BATMAN packet via NB: fe:fe:00:00:02:01 IF: eth0 [fe:fe:00:00:01:01] (from OG: fe:fe:00:00:01:01 via prev OG: fe:fe:00:00:01:01 seqno 670, tq 245, TTL 49, V 8, IDF 1)\n[       400] Drop packet: originator packet from myself (via neighbour)\n[       400] Received BATMAN packet via NB: fe:fe:00:00:02:01 IF: eth0 [fe:fe:00:00:01:01] (from OG: fe:fe:00:00:02:01 via prev OG: fe:fe:00:00:02:01 seqno 545, tq 255, TTL 50, V 8, IDF 0)\n[       400] updating last_seqno: old 544, new 545\n[       400] bidirectional: orig = fe:fe:00:00:02:01 neigh = fe:fe:00:00:02:01 =\u003e own_bcast = 64, real recv = 64, local tq: 255, asym_penalty: 255, total tq: 255\n[       400] update_originator(): Searching and updating originator entry of received packet\n[       400] Updating existing last-hop neighbour of originator\n[...]\n\nbatctl loglevel\n===============\n\ndisplay or modify the log level\n\nUsage: batctl loglevel|ll [level]\n\nExample:\n$  batctl loglevel\n[x] all debug output disabled (none)\n[ ] messages related to routing / flooding / broadcasting (batman)\n[ ] messages related to route added / changed / deleted (routes)\n[ ] messages related to translation table operations (tt)\n[ ] messages related to bridge loop avoidance (bla)\n[ ] messages related to arp snooping and distributed arp table (dat)\n[ ] messages related to network coding (nc)\n\nbatctl nc_nodes\n===============\n\ndisplay the neighbor nodes considered for network coded packets\n\nUsage: batctl nc_nodes|nn\n\nExample:\n\nNode:      fe:fe:00:0a:01:01\n Ingoing:  fe:fe:00:0a:01:01 fe:fe:00:0a:02:01\n Outgoing: fe:fe:00:0a:01:01 fe:fe:00:0a:02:01\n\nWhere:\n- Node is the neighbor\n- Ingoing is the neighbors this neighbor can hear packets from\n- Outgoing is the neighbors that can hear packets from this neighbor\n\nbatctl network_coding\n=====================\n\ndisplay or modify the network coding setting\n\nUsage: batctl network_coding|nc [0|1]\n\nNote that network coding requires a working promiscuous mode on all interfaces.\n\nbatctl multicast_mode\n=====================\n\ndisplay or modify the multicast mode setting\n\nUsage: batctl multicast_mode|mm [0|1]\n\nbatctl aggregation\n==================\n\ndisplay or modify the packet aggregation setting\n\nUsage: batctl aggregation|ag [0|1]\n\nbatctl isolation_mark\n=====================\n\ndisplay or modify the isolation mark.\nThis value is used by Extended Isolation feature.\n\nUsage: batctl isolation_mark|mark $value[/0x$mask]\n\nExample 1: batctl mark 0x00000001/0xffffffff\nExample 2: batctl mark 0x00040000/0xffff0000\nExample 3: batctl mark 16\nExample 4: batctl mark 0x0f\n\nbatctl translocal\n=================\n\ndisplay the local translation table\n\nUsage: batctl translocal|tl\n\nExample:\n\n$ batctl translocal\nLocally retrieved addresses (from bat0) announced via TT (TTVN: 1):\n * fe:fe:00:00:01:01 [RPNXW]\n\nIn particular, RPNXW are flags which have the following meanings:\n\n- R/Roaming: this client moved to another node but it is still kept for\n\t\tconsistency reasons until the next OGM is sent.\n- P/noPurge: this client represents the local soft interface and will never\n\t\tbe deleted.\n- N/New: this client has recently been added but is not advertised in the\n\t\tmesh until the next OGM is sent (for consistency reasons).\n- X/delete: this client has to be removed for some reason, but it is still\n\t\tkept for consistency reasons until the next OGM is sent.\n- W/Wireless: this client is connected to the node through a wireless\n\t\tdevice.\n\nIf any of the flags is not enabled, a '.' will substitute its symbol.\n\nbatctl transglobal\n==================\n\ndisplay the global translation table\n\nUsage: batctl transglobal|tg\n\nExample:\n\nGlobally announced TT entries received via the mesh bat0\n   Client\t     (TTVN)     Originator        (Curr TTVN) Flags\n * fe:fe:00:00:01:01  ( 12) via fe:fe:00:00:01:02       ( 50) [RXW]\n\nwhere:\n- TTVN: is the translation-table-version-number which introduced this\n\t\tclient\n- Curr TTVN: is the translation-table-version-number currently advertised by\n\t\tthe originator serving this client (different clients\n\t\tadvertised by the same originator have the same Curr TTVN)\n- Flags that mean:\n\t- R/Roaming: this client moved to another node but it is still kept\n\t\t\tfor consistency reasons until the next OGM is sent.\n\t- X/delete: this client has to be removed for some reason, but it is\n\t\t\tstill kept for consistency reasons until the next\n\t\t\tOGM is sent.\n\t- W/Wireless: this client is connected to the node through a\n\t\t\twireless device.\n\nIf any of the flags is not enabled, a '.' will substitute its symbol.\n\nbatctl dat_cache\n=================\n\ndisplay the local D.A.T. cache\n\nUsage batctl dat_cache|dc\n\nExample:\n\nDistributed ARP Table (bat0):\n          IPv4             MAC           last-seen\n *     172.100.0.1 b6:9b:d0:ea:b1:13      0:00\n\nwhere:\n- IPv4 is the IP address of a client in the mesh network\n- MAC is the MAC address associated to that IP\n- last-seen is the amount of time since last refresh of this entry\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalin%2Fbatctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparalin%2Fbatctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalin%2Fbatctl/lists"}