how to limit SharedMemory feature to localhost only #2721
-
Hello, I'm using FastDDS on an ARM64 based embedded system. So I wonder if there is a way to limit sharedmem to localhost only.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @keith4ever , I'm not sure completely sure I understand what you mean, but I'll make a guess. I take you want to limit DDS communication to the host, and that you do not want data to be exchanged between different machines because you have somehow duplicated nodes that are not meant to communicate with one another, is that correct? Being the shared memory transport (SHM) an intra-machine IPC mechanism, it usage is always limited to the local host. However, Fast DDS Domain Participants have, by default, two different transports enabled: SHM and UDPv4. This is the reason why you're seeing data going into your LAN. To achieve machine communication isolation, you have several options:
Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hello EduPonz, Thank you very much for your kind and detailed answer.
|
Beta Was this translation helpful? Give feedback.
Hi @keith4ever ,
I'm not sure completely sure I understand what you mean, but I'll make a guess. I take you want to limit DDS communication to the host, and that you do not want data to be exchanged between different machines because you have somehow duplicated nodes that are not meant to communicate with one another, is that correct?
Being the shared memory transport (SHM) an intra-machine IPC mechanism, it usage is always limited to the local host. However, Fast DDS Domain Participants have, by default, two different transports enabled: SHM and UDPv4. This is the reason why you're seeing data going into your LAN. To achieve machine communication isolation, you have several options: