IRNET(4)
π IRNET(4) β irnet, the IrNET protocol device π
okay bestie, sit down, hydrate, and let's talk about irnet β it's a page from the Linux-IrDA man pages and honestly? she's carrying the whole networking-over-infrared situation on her back. no cap. β¨
π¦ NAME π¦
irnet β the IrNET protocol device. that's it, that's the name, she's lowkey iconic for it π
πΈ DESCRIPTION πΈ
File /dev/irnet is used to access and configure the IrNET protocol part of the Linux-IrDA stack. so like, that's her whole job. that's the assignment and she ate.
IrNET is a protocol allowing to create TCP/IP connections between two IrDA peers in an efficient fashion, and generally to enable standard networking over IrDA. think of her as a thin layer, passing PPP packets to IrTTP and vice versa. she uses PPP in synchronous mode, because IrTTP offers a reliable sequenced packet service (as opposed to a byte stream). fr fr, you could see IrNET as carrying TCP/IP in a IrDA socket, using PPP to provide the glue. π«Ά
The main difference with traditional PPP over IrCOMM is that it avoids the framing and serial emulation which are a performance bottleneck. (not the bottleneck era, we don't do that here π) It also allows multipoint communications in a sensible fashion. And finally, it can automatically handle incoming connections through irnetd. main character energy tbh.
The main difference with IrLAN is that we use PPP for the link management, which is more standard, interoperable and flexible than the IrLAN protocol. For example, PPP adds authentication, encryption, compression, header compression and automated routing setup. And, as IrNET lets PPP do the hard work, the implementation is much simpler than IrLAN. delegation queen. π
IrNET connections are initiated and managed with pppd(8). File /dev/irnet also offers a control channel. Reads from /dev/irnet will return various IrNET events. Write to /dev/irnet allows you to configure the IrNET connection. so like β one file, two jobs, multitasking icon β
π CONFIGURATION π
If your system does not have /dev/irnet created already, no worries bestie, it can be created with the following commands:
mknod -m 644 /dev/irnet c 10 187
chown root:root /dev/irnet
You will also need to have IrNET support in your kernel or as module and the Linux-IrDA stack installed and configured (see irattach(8)). don't skip this step, i'm begging π
File /dev/irnet is supposed to only be used with the PPP line discipline or for accessing the control channel, other use are unsupported. so like, colour outside those lines and you're on your own, no refunds, no notes.
IrNET supports multiple concurrent connections (limited by the IrDA stack), all those connections are multiplexed on a single /dev/irnet device (as opposed to IrCOMM which has one device per connection). one file, many connections, she's a community builder. π
β¨ PARAMETERS β¨
Writing commands to /dev/irnet allows you to configure the IrNET connection being made. This needs to be done through pppd(8) (see below for examples). Commands are separated by comas.
name <peer>β Connect to the IrDA device which IrDA nickname is<peer>. The IrDA nickname is a string up to 31 characters. πdaddr <peer>β Connect to the IrDA device which IrDA address is<peer>. The IrDA address is a 32 bits hexadecimal number. π’raddr <port>β Restrict connections to the local IrDA interface which IrDA address is<port>. The IrDA address is a 32 bits hexadecimal number. π§
π DISPLAY π
Reading from /dev/irnet will show various IrNET events. This is usually done with the command cat /dev/irnet. peak low-effort, peak payoff, we love her π«Ά
- Found β Dump of the current IrNET discovery log. ποΈ
- Discovered β New IrNET device discovered. β¨
- Expired β Previously discovered IrNET device no longer present. π
- Connected to β This computer successfully established an IrNET connection to a peer. π€
- Connection from β A peer successfully established an IrNET connection to this computer. π₯
- Request from β A peer attempted to connect to this computer, but no IrNET connection was waiting for it. π
- No-answer from β This computer attempted to connect to a peer, but no IrNET connection was waiting for it. π΅
- Blocked link with β The IrDA link of the IrNET connection is currently blocked. π«
- Disconnection from β A peer successfully terminated an IrNET connection with this computer. π
- Disconnected to β This computer successfully terminated an IrNET connection with a peer. πͺ
File /proc/net/irda/irnet will also show the current state of the various IrNET connections. she's got receipts for everything π
π₯ EXAMPLE π₯
Start a IrNET server accepting any incoming connection:
pppd /dev/irnet 9600 local noauth nolock passive
Start a IrNET client connecting to any IrDA peer:
pppd /dev/irnet 9600 local noauth nolock
Start a IrNET client connecting to the IrDA peer called MyIrDANode:
pppd /dev/irnet 9600 local noauth nolock connect "echo name MyIrDANode"
Start a IrNET server accepting incoming connection from peer with IrDA address 0x12345678 only on IrDA port 0x87654321:
pppd /dev/irnet 9600 local noauth nolock passive connect "echo daddr 0x12345678 , saddr 0x87654321"
copy these exactly bestie, character for character, i am not playing around π
π AUTHOR π
Jean Tourrilhes - jt@hpl.hp.com β legend behaviour, we stan π«Ά
π§ FILES π§
/dev/irnet/proc/net/irda/irnet
π SEE ALSO π
irda(7), irnetd(8), pppd(8), irattach(8), irdadump(8).
and that's the whole vibe check, bestie β¨ this page is from irda-utils, dated 2 May 2003, and it's living in section IRNET(4) of the manual. she's vintage, she's efficient, she's carrying TCP/IP over infrared and she's doing it flawlessly. go configure something, you got this πππ¦
π¦ 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