Skip to contentSkip to conversation

udev: Add module for checking interface renaming actions

RFC In review Marcel Holtmann 2 participants 3 messages Jan 26, 2024 – Jan 30, 2024 Kbuild

lore
Share & tools
lore
#0 lore raw

RFC 1/1 udev: Add module for checking interface renaming actions

---
 Makefile.am |   1 +
 src/udev.c  | 285 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 286 insertions(+)
 create mode 100644 src/udev.c
Makefile.am +1 -0
index 5ed6ab37164b..0a875dcef1a7 100644
@@ -265,6 +265,7 @@ src_iwd_SOURCES = src/main.c linux/nl80211.h src/iwd.h src/missing.h \
 					src/dpp-util.h src/dpp-util.c \
 					src/json.h src/json.c \
 					src/dpp.c \
+					src/udev.c \
 					$(eap_sources) \
 					$(builtin_sources)
 
src/udev.c new file +285 -0

285 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw

Hi Marcel,

Quoted 6 lines · Marcel Holtmann
---
  Makefile.am |   1 +
  src/udev.c  | 285 ++++++++++++++++++++++++++++++++++++++++++++++++++++
  2 files changed, 286 insertions(+)

create mode 100644 src/udev.c

Just curious what this is for. Are we trying to avoid needing to install the link file to disable udev renaming? And instead allow renaming but pick up the changes internally?

Thanks,

James

#2 lore raw

Hi James,

Quoted 7 lines
Quoted 6 lines
---
 Makefile.am |   1 +
 src/udev.c  | 285 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 286 insertions(+)
 create mode 100644 src/udev.c

Just curious what this is for. Are we trying to avoid needing to install the link file to disable udev renaming? And instead allow renaming but pick up the changes internally?

this is meant as sample what it takes to wait for udev renaming. When you receive that event above, then you know for sure that udev is done with renaming and we can IFF_UP the hardware.

I do need to check this on big endian and if we have to adjust the hash value for “net”.

Regards

Marcel