All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

Netlink socket send hangs when using SCHED_FIFO and Gtk3 filechoosers

I am seeing a problem where if I create a thread which utilizes 100% of a CPU core while being in SCHED_FIFO, and then I open any application that instantiates a Gtk3 file chooser, then any ...
user avatar
  • 41
0 votes
0 answers
122 views

Custom linux driver for custom Layer 3 protocol

We're designing a custom communication using a custom physical layer which will be used in a cubesat and I'm looking on how to create the custom layer 3 driver for linux (like ipv4 but not, the ...
user avatar
  • 1
0 votes
1 answer
69 views

Kernel: Intercept listen call with module

I am writing an application that will detect any application calling listen(2) to open a socket for incoming connections and look up with a table of rules. It is much like ApplicationFirewall in macOS....
user avatar
  • 11
1 vote
2 answers
305 views

How does the TCP/IP protocol differentiate between clients?

If we create a listening socket it will return us a descriptor (let say root descriptor) and we are binding this descriptor to a address. Whenever a new client connection is available the root ...
user avatar
1 vote
0 answers
260 views

Linux kernel does not handle orphaned sockets, why not?

This was originally posted to serverfault but was voted as off topic by the community. Let me just preface this question by mentioning I understand the why/how/where/when of the Linux kernel socket ...
user avatar
10 votes
1 answer
3k views

What is a generic socket and how does it relate to a network device?

I'm trying to understand how network drivers work under Linux. This Q&A showed that the network device in Linux isn't represented by a device file. It states that network drivers work with sockets....
user avatar
1 vote
1 answer
282 views

inflight sockets in linux

I was checking code of sendmsg system call for AF_UNIX socket, there I find one function: wait_for_unix_gc ( a garbage collector of inflight sockets). Can anyone brief what these inflight sockets are? ...
user avatar
  • 111
3 votes
0 answers
1k views

Netlink access inside a network namespace

I'm trying set up an IPsec gateway (strongSwan) on a Raspberry Pi 2. The Pi was already providing a number of services on the LAN using a private IP address. My initial attempt to turn it into an ...
user avatar
1 vote
1 answer
90 views

What setsockopts() 'name' values are used by the running Linux kernel?

I am introducing some new socket commands with nf_register_sockopt(&my_new_socket_options). How can I find, what setsockopt commands are already used (registered?) by the currently running kernel, ...
user avatar
8 votes
2 answers
21k views

How to 'strace' a unix domain socket?

Kind of hard to explain but I noticed when straceing the PID that has the socket open I cannot see any of the communication. How can I sit in the middle of a socket file to watch communication?
user avatar
45 votes
5 answers
37k views

Are FIFO, pipe & Unix domain socket the same thing in Linux kernel?

I heard that FIFOs are named pipes. And they have exactly the same semantics. On the other hand, I think Unix domain socket is quite similar to pipe (although I've never made use of it). So I wonder ...
user avatar
  • 603