All Questions
Tagged with socket linux-kernel
11
questions
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 ...
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 ...
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....
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 ...
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 ...
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....
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?
...
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 ...
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, ...
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?
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 ...