socket raw Eth.
- BIBIGUL
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
08 Feb 2026 09:21 #342638
by BIBIGUL
socket raw Eth. was created by BIBIGUL
Hello. Who has worked with ETH raw socket on Linux cnc? I'm writing an application running on raw socket, after compiling I run - sudo setcap cap_net_raw+ep NAME.so - Since raw socket requires root, I need to run setcap. Does this break Linux cnc?
Please Log in or Create an account to join the conversation.
- BIBIGUL
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
08 Feb 2026 13:06 - 08 Feb 2026 13:10 #342651
by BIBIGUL
Replied by BIBIGUL on topic socket raw Eth.
Hello everyone. Who has ever worked with socket raw on linux cnc? raw socket requires a set cap, does it break Linux Cnc? I wrote a test driver, on raw socket, receiving data via mmap. As a controller, I use STM32F7 (4 PWM encoders). Maybe I'm doing something wrong, I don't understand the specifics of Mesa, but the first tests show some kind of prohibitive bandwidth, the jitter is lower than on mesa.
Last edit: 08 Feb 2026 13:10 by BIBIGUL.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17697
- Thank you received: 5174
09 Feb 2026 02:09 #342686
by PCW
Replied by PCW on topic socket raw Eth.
We did some tests last year comparing IP network access vs raw packets
with Mesa HostMot2 and the statistical improvement of peak latency was
minimal so decided it was not worth the effort.
There no issue with root access and LinuxCNC as direct hardware access
requires this and the blocking of normal network traffic on the real time
Ethernet channel also requires root priviledges.
with Mesa HostMot2 and the statistical improvement of peak latency was
minimal so decided it was not worth the effort.
There no issue with root access and LinuxCNC as direct hardware access
requires this and the blocking of normal network traffic on the real time
Ethernet channel also requires root priviledges.
The following user(s) said Thank You: NWE
Please Log in or Create an account to join the conversation.
- BIBIGUL
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
14 Feb 2026 11:51 #342933
by BIBIGUL
Replied by BIBIGUL on topic socket raw Eth.
A question about compilation. Wrote such a makefile - "MODULE_NAME := ABMIO44 MODINC := /usr/share/linuxcnc/Makefile.modinc SRC_DIR := SrcINC_DIR := Inc SRC_FILES := $(wildcard $(SRC_DIR)/*.c)OBJ_FILES := $(notdir $(SRC_FILES:.c=.o)) $(MODULE_NAME)-objs := $(OBJ_FILES)obj-m += $(MODULE_NAME).o export BUILD_VERBOSE := 1 include $(MODINC) EXTRA_CFLAGS += -I$(shell pwd)/$(SRC_DIR)EXTRA_CFLAGS += -I$(shell pwd)/$(INC_DIR) EXTRA_CFLAGS += -O2 EXTRA_CFLAGS += -march=x86-64 EXTRA_CFLAGS += -mtune=generic EXTRA_CFLAGS += -fno-fast-math EXTRA_CFLAGS += -fno-unsafe-math-optimizations %.o: $(SRC_DIR)/%.c$(CC) $(EXTRA_CFLAGS) -c $< -o $@ all:make -S modules clean:rm -f *.ko *.so *.o *.tmp *.ver *.order"the flags that I use do not violate the rtapi rules? Will this affect the operation of Linux cnc? Is it redundant and unnecessary?
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4653
- Thank you received: 2078
14 Feb 2026 14:55 #342938
by Aciera
Replied by Aciera on topic socket raw Eth.
@BIBIGUL
No double posting please.
No double posting please.
Please Log in or Create an account to join the conversation.
- BIBIGUL
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
15 Feb 2026 09:16 #342990
by BIBIGUL
Replied by BIBIGUL on topic socket raw Eth.
@Aciera
Why did they delete My Post and New Topic? Did I uncover a Masonic secret about compiling components for linux cnc??????
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4653
- Thank you received: 2078
15 Feb 2026 10:08 #342993
by Aciera
Replied by Aciera on topic socket raw Eth.
I did not remove the new topic, must have been some overlapping moderator work there.
Restored the post here.
Restored the post here.
Please Log in or Create an account to join the conversation.
- BIBIGUL
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
15 Feb 2026 11:06 #342996
by BIBIGUL
Replied by BIBIGUL on topic socket raw Eth.
If I have violated something, then the moderators must somehow notify about the violation. Maybe I'm asking something wrong, revealing some secrets? I don't blame you for deleting the topic......... Okay, we drove.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4653
- Thank you received: 2078
15 Feb 2026 13:30 #343001
by Aciera
Replied by Aciera on topic socket raw Eth.
The issue was that you have posted the same question in two different topics. That is called 'Double posting' and is against forum rules and why I removed the post here.
Unfortunately somebody else seems to have worked on removing the other topic at the same time.
Unfortunately somebody else seems to have worked on removing the other topic at the same time.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21280
- Thank you received: 7265
15 Feb 2026 14:44 #343004
by tommylight
Replied by tommylight on topic socket raw Eth.
That was me, i did check and it was the same post, and at the time the post here was not deleted.
Sorry for the inconvenience.
Sorry for the inconvenience.
Please Log in or Create an account to join the conversation.
Time to create page: 0.093 seconds