IRDADUMP(8)
πΈ IRDADUMP(8) β ok bestie, grab a snack π
so this is irdadump, section 8 of the manual (the big-kid sysadmin section, iykyk). it's the little tool that lets you watch IrDA traffic go by like it's a reality show. let's get into it π
β¨ NAME β¨
irdadump β monitors the IrDA traffic on one or more links.
like. it watches. it dumps. it's in the name, bestie.
β¨ SYNOPSIS β¨
irdadump [ -b ] [ -c n ] [ -d ] [ -x ] [ -s n ] [ -t ] [ -l ] [ -v ] [
-i device ]
β¨ OPTIONS β¨
okay so here's the whole flag menu, no skips, no cuts π
-bβ dump bytes in columns-c nβ set snapcols for byte printing with the-boption-dβ prints the time difference between the current and the previous frame-xβ dump frame (bytes and ascii)-s nβ set snaplen for the-band-xoption-tβ force TTP decoding of unknown connections-lβ set line buffering on output file-vβ verbose-i deviceβ interface
β¨ DESCRIPTION β¨
irdadump is a tool for monitoring the IrDA traffic on one or more links. Just write make to compile the program. When you run the program, you should be able to see the IrDA traffic (if any). (the "if any" is doing a lot of heavy lifting there, ngl π)
One advantage of implementing IrDA device drivers as network device drivers is that you should be able to attach sniffers to the device (or actually the packet type). That way, it is possible to use a really handy utility called irdadump (instead of tcpdump). This will make debugging MUCH easier. Linux-2.2 implements the BPF (Berkeley Packet Filter), so its possible to filter out exactly the frames you want to see. You may use hostname to separate different machines names. Or grep to filter the output, too. β¨
π¨ REAL TALK ALERT: irdadump must be run as root or installed setuid root, as it requires root privileges. it is literally not optional, bestie. permissions are the vibe check here π
β¨ EXAMPLES β¨
The output should look something like this:
/ # ./irdadump
20:11:45.412199 xid:cmd 0x0015c23b > 0xffffffff S=6 s=0
20:11:45.492137 xid:cmd 0x0015c23b > 0xffffffff S=6 s=1
20:11:45.572137 xid:cmd 0x0015c23b > 0xffffffff S=6 s=2
20:11:45.652208 xid:cmd 0x0015c23b > 0xffffffff S=6 s=3
20:11:45.732137 xid:cmd 0x0015c23b > 0xffffffff S=6 s=4
20:11:45.812137 xid:cmd 0x0015c23b > 0xffffffff S=6 s=5
20:11:45.892175 xid:cmd 0x0015c23b > 0xffffffff S=6 s=255 Linux
20:11:45.902362 xid:rsp 0xf7be8388 < 0x0015c23b S=6 s=5 ACTiSYS IR100M
20:11:48.412197 xid:cmd 0x0015c23b > 0xffffffff S=6 s=0
20:11:48.492656 xid:cmd 0x0015c23b > 0xffffffff S=6 s=1
20:11:48.572177 xid:cmd 0x0015c23b > 0xffffffff S=6 s=2
20:11:48.652169 xid:cmd 0x0015c23b > 0xffffffff S=6 s=3
20:11:48.732177 xid:cmd 0x0015c23b > 0xffffffff S=6 s=4
20:11:48.812153 xid:cmd 0x0015c23b > 0xffffffff S=6 s=5
20:11:48.822371 xid:rsp 0xf7be8388 < 0x0015c23b S=6 s=4 ACTiSYS IR100M
15 packets received by filter
Turning on the "-d" option will make irdadump print the time difference between the current and the previous frame:
/ # ./irdadump -d
20:11:18.412475 (0982.06 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=0
20:11:18.492345 (0079.87 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=1
20:11:18.572376 (0080.03 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=2
20:11:18.652979 (0080.60 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=3
20:11:18.732354 (0079.38 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=4
20:11:18.755093 (0022.74 ms) xid:rsp 0xf7be8388 < 0x0015c23b S=6 s=3 ACTiSYS IR100M
20:11:18.812350 (0057.26 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=5
20:11:18.892518 (0080.17 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=255 Linux
20:11:21.412486 (2519.97 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=0
20:11:21.492395 (0079.91 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=1
20:11:21.572368 (0079.97 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=2
20:11:21.652405 (0080.04 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=3
20:11:21.732458 (0080.05 ms) xid:cmd 0x0015c23b > 0xffffffff S=6 s=4
and yeah β irdadump must be run as root or installed setuid root, as it requires root privileges. (saying it twice because it matters, not because i'm padding, i promise π«Ά)
irdadump -d -x -s 256 will check the contents of the frames. This should tell us if the frames have malformed content, or if the irda stack is doing something wrong. forensic girlie behavior, and we respect it π
β¨ DIAGNOSTICS β¨
N.N.
like... that's it. that's the diagnostics. iconic of them honestly π
β¨ BUGS β¨
N.N.
no known bugs listed, which is highkey suspicious but okay bestie, we move π
β¨ SEE ALSO β¨
go read your sisters, they're all serving:
Linux/IrDA Project http://irda.sourceforge.net -- Linux/IrDA-Tutorial http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/index.html -- Infrared-HOWTO http://tuxmobil.org/howtos.html
β¨ AUTHOR β¨
This manual page is written by Werner Heuser <wehe@tuxmobil.org>. It is based on the READMEs from irda-utils by the Linux/IrDA Project and the Linux/IrDA-Tutorial. shoutout to Werner, absolute legend behavior π«Άβ¨
β¨ COPYRIGHT β¨
Copyright (c) 2001 Werner Heuser
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
and that's the whole page, bestie!! π this one's dated 03 July 2006 and lives in IRDADUMP(8) β old money manual energy, fr fr. go run it as root, watch those xid:cmd packets fly, and stan responsibly πβ¨π¦
π¦ where this page comes from
- fedora 43: irda-utils 0.9.18-52.fc43 Β· GPL-2.0-or-later
- fedora 44: irda-utils 0.9.18-53.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms