Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-19-2007, 03:25 PM   #1
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
Question what udev rule to create /dev/inet/tcp?

Would anyone who has experience with udev
enlighten me how to create the /dev/inet/tcp

I have an application listening on a UDP port,
and I'd like to query it from a bash script.
I could just test and create the thing, but
I thought there must be a slick udev rule
which I could set up.

Anyone got some info for me?


Last edited by bbeers; 02-19-2007 at 03:38 PM. Reason: typo
Old 02-21-2007, 08:11 AM   #2
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
On slackware?

It looks like you need /dev/tcp or /dev/udp
Man bash and search for socket.

 echo "Yay" > /dev/tcp/
On some distro, this doesn't work though.
Anyway, its a very limited access and not really used anymore..

Can't you use netcat or socat ?
Or perl.

Bash and network are not good friends afaik.
Old 02-21-2007, 04:55 PM   #3
Registered: Nov 2003
Distribution: slackware 14
Posts: 542

Rep: Reputation: 33
Udev just manages dev nodes after a kernel/driver "event". Unfortunately nodes are not managed using nodes name but in terms of dev major minor numbers.
So you can create nodes manually, if not managed from drivers/udev by mknod command, but you must tell what type of device you are creating (block, character or pipe). Those Mm numbers should comply the LANANA list in order they are correctly used
Once you know what are the type and the numbers you need for the node just type
mknod -[c,b,p] /dev/bla/bla/ major minor
and you are done (hopefuly)
As I'm very curious (never heard of such device nodes), I looked at lanana device list and found this:

30 char iBCS-2 compatibility devices
0 = /dev/socksys Socket access
1 = /dev/spx SVR3 local X interface
32 = /dev/inet/ip Network access
33 = /dev/inet/icmp
34 = /dev/inet/ggp
35 = /dev/inet/ipip
36 = /dev/inet/tcp
37 = /dev/inet/egp
38 = /dev/inet/pup
39 = /dev/inet/udp
40 = /dev/inet/idp
41 = /dev/inet/rawip

Additionally, iBCS-2 requires the following links:

/dev/ip -> /dev/inet/ip
/dev/icmp -> /dev/inet/icmp
/dev/ggp -> /dev/inet/ggp
/dev/ipip -> /dev/inet/ipip
/dev/tcp -> /dev/inet/tcp
/dev/egp -> /dev/inet/egp
/dev/pup -> /dev/inet/pup
/dev/udp -> /dev/inet/udp
/dev/idp -> /dev/inet/idp
/dev/rawip -> /dev/inet/rawip
/dev/inet/arp -> /dev/inet/udp
/dev/inet/rip -> /dev/inet/udp
/dev/nfsd -> /dev/socksys
/dev/X0R -> /dev/null (? apparently not required ?)

Hope this helps

Last edited by urka58; 02-21-2007 at 04:56 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
udev sometimes does not create dev/hda3 vdemuth Slackware 5 01-23-2006 01:46 PM
how does one configure udev to create /dev/pktcdvd/pktcdvd*? behmjoe Linux - Newbie 3 04-04-2005 12:49 PM
udev takes long time to create /dev/usbhd symlink Yalla-One Slackware 4 04-04-2005 03:27 AM
udev doesn't create /dev/pktcdvd/0 logout_login Linux - Software 1 04-03-2005 11:29 PM
udev likes to delete /dev/sda* but not create them :( edman007 Linux - Software 2 01-18-2005 05:02 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration