The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Why does i3status need to listen for udp connections?

asked 2014-12-10 14:49:44 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

I have used sockstat to check my opened ports and services which were using them and I have noticed i3status is listening for udp connections. Could the reason for doing that be explained?

edit retag flag offensive close merge delete

Comments

I does not do so on my machine, at least `sockstat` does not show anything. Could you please add the relevant output of `sockstat`? Also, a bit of information about your system could help: which distribution, version of *i3* and where from did you get it?

Adaephon gravatar imageAdaephon ( 2014-12-10 19:04:26 +0000 )edit

% sockstat -4 USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS user thunderbir 983 35 tcp4 192.168.0.34:21445 xxx.xxx.xx.xx:993 user thunderbir 983 40 tcp4 192.168.0.34:21453 xxx.xxx.xx.xx:993 user firefox 979 65 tcp4 192.168.0.34:

jefecomp gravatar imagejefecomp ( 2014-12-10 19:22:10 +0000 )edit

try sockstat -4 -l

Michael gravatar imageMichael ( 2014-12-13 21:31:33 +0000 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2014-12-10 19:33:34 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

i3status does not open a listening socket:

sudo netstat -np | grep i3status | wc -l
0

However, it indeed creates a UDP socket:

$ sudo lsof -n -p $(pidof i3status) | grep sock
i3status 26396 michael    3u  sock    0,7       0t0   268864 protocol: UDP

The places in the code where sockets are created are

http://code.stapelberg.de/git/i3statu...ipv6addr.c?id=3818dabcebea7f98e3dfdfbe5be42374bb60cf88#n24

and

http://code.stapelberg.de/git/i3statu... (which is used in http://code.stapelberg.de/git/i3statu...ethinfo.c?id=3818dabcebea7f98e3dfdfbe5be42374bb60cf88#n35)

But as I said, those are not listening sockets, so it shouldn’t pose a security problem.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-12-10 14:49:44 +0000

Seen: 167 times

Last updated: Dec 11 '14