#Netlink

GripNewsGripNews
2026-03-06

🌕 Linux 硬體熱插拔事件:深入底層的技術細節
➤ 從核心廣播到使用者空間監聽的底層剖析
arcanenibble.github.io/hardwar
當開發者需要偵測 Linux 系統中的 USB 熱插拔事件時,通常會首選 `libusb`。然而,若受限於特定應用場景無法使用該函式庫,開發者便需深入探討核心與使用者空間(userspace)之間的通訊機制。本文揭示了 `udev` 如何透過 `Netlink` 協議接收來自核心的硬體事件,並處理後續的廣播機制。作者通過剖析 `libudev` 的封包格式與 `Netlink` 運作原理,示範瞭如何直接在使用者空間監聽並解析這些底層訊息,從而繞過對高階函式庫的依賴。
+ 這篇文章真是及時雨!我之前一直以為監聽熱插拔必須依賴 libudev,沒想到透過 Netlink 處理 udev 廣播封包是完全可行的。
+ 雖然這確實提供了深入理解系統底層的機會

2025-11-21

NetLink users can now browse another site with the Saturn's PlanetWeb browser: SegaXtreme! Not only that, they can download homebrew, too! Get the details in my story:

segasaturnshiro.com/2025/11/21

#sega #saturn #segasaturn #retrogaming #retrogames #videogames #netlink #segaxtreme

GripNewsGripNews
2025-11-17

🌘 再會了,謝謝提供的魚:如何逃離 Linux 網路堆疊
➤ Cloudflare 如何透過客製化服務與 Netlink 介面,克服 Linux 網路堆疊的限制,實現 Soft-Unicast 的高效運作。
blog.cloudflare.com/so-long-an
Cloudflare 在開發新功能時,常需突破 Linux 網路堆疊的極限。文章詳述了他們如何克服 Soft-Unicast(一種共享 IP 位址的方法)在 Linux 網路環境中的限制。傳統的 iptables 或 Netfilter 規則在處理大量 IP 位址與連接埠時面臨挑戰,尤其是在 Socket 綁定與封包重寫之間存在衝突。為瞭解決這個問題,Cloudflare 開發了名為「SLATFATF」(
-Unicast

2025-11-17

Как ускорить управление сетевой подсистемой Linux: пишем Netlink-обертку на C++

Привет, Хабр! Меня зовут Егор Карамышев, в YADRO я разрабатываю ПО для коммутаторов семейства KORNFELD. В статье расскажу о реализованной нами С++ обертке для управления сетевой подсистемой Linux на основе протокола Netlink и библиотеки libnl3. В некоторых случаях она позволила на порядок ускорить работу функций конфигурирования. Разберемся, почему мы решили отказаться от подхода с системными вызовами, а также посмотрим на результаты временных тестов.

habr.com/ru/companies/yadro/ar

#linux #c++ #netlink #libnl3 #бенчмарки

Diego Córdoba 🇦🇷d1cor@mstdn.io
2025-10-13

Cositas que se pueden hacer con #nftables 😃

Podés crear una app, por ejemplo, en #Python, y ejecutar las instrucciones de nftables directamente invocando al API de #netlink 🤯

No es necesario llamar a comandos de la shell, podés usar instrucciones nativas dentro de tu código! 🔥

Una ventaja más para aprender nftables y migrar tus configuraciones al nuevo framework! 😉

#gnu #linux #learning #juncotic #educacion #softwarelibre #opensource #freesoftware #sysadmin #devops #firewall #netfilter

2025-10-11

Our next NetLink League online Saturn tournament is a cross-continental affair in Worldwide Soccer ‘98! Signups are open now — are you up for a little footie?

segasaturnshiro.com/2025/10/10

#sega #saturn #segasaturn #football #soccer #online #tournament #netlink #retrogaming #retrogames #videogames

2025-08-08

Wanna chat on Discord from your Saturn? Those with a DreamPi and a NetLink or XBand modem can enjoy even more functionality now that SHIRO! has added Discross to our Discord server! Guest writer Shadowmask has the details:

segasaturnshiro.com/2025/08/08

#sega #saturn #segasaturn #retrogaming #retrogames #videogames #discord #netlink #xband #onlinegaming

2025-07-18

The days of exchanging IP addresses to play Saturn games online over the NetLink Tunnel are over — SegaRPGFan just updated his software to use a new matchmaking server! Get the details in DoubleDime's story:

segasaturnshiro.com/2025/07/18

#sega #saturn #segasaturn #retrogaming #retrogames #videogames #onlinegaming #homebrew #netlink

2025-02-05

Как отслеживать состояние сетевых интерфейсов на Linux

Всем привет! Меня зовут Тимур, в компании

habr.com/ru/companies/yadro/ar

#c++ #netlink #linux

Thomas Liskeliske@ibh.social
2025-01-29

I wonder how DSA network interfaces can be distinguished reliable. The port interfaces can be easily identified by the phys_port_name IFLA, but what is about the master interfaces?

I've access to a SoC which has a `dsa` and `eth0` interface (besides 4 port ifaces). Both have the same driver, the same businfo and the same mac address. How can they be distinguished at all, even if they have been renamed or moved into a netns?

Any ideas?

#linuxnetworking #ifstate #DSA #netlink #iproute2

Screenshot of `ip -c -d link show dev …` and `ethtool -i …` for the interfaces dsa and eth0. The output, except for the configured MTU, is the same.Output of the new `ifstate identify` command which can be used to create a config YaML template with interface distinguishers for physical interfaces. This is one of the major changes scheduled for ifstate 2.0.

@jadedtwin AF pkt - it runs the show #promisc #noarp #netlink

Thomas Liskeliske@ibh.social
2024-11-08

#TIL routes on Linux can have two different netlink attributes (NLA) for the next-hop: RTA_GATEWAY and RTA_VIA. The latter is set when a NLRI from another address family is used, only.

(And luckily nobody uses net-tools anymore: the old route command just ignores the RTA_VIA NLA and the route looks like a connected one 🤷)

#linuxnetworking #routing #netlink

Screenshot of a terminal showing the output of `ip ro` and `route` commands. There are two IPv4 routes, the first one with an IPv4 next-hop is correctly printed with both commands. The second route has an IPv6 next-hop and so uses the RTA_VIA NLA. The route command shows a unset next-hop for the second route.Screenshot of a python shell showing the NLA of both routes from the first image. While the RTA_GATEWAY attribute is just an IP address the RTA_VIA attribute is a dictionary with a `family` and `addr` field.
Neil E. Hodgestk@f.kawa-kun.com
2024-09-24
Has anyone here ever played around with using #Netlink for IPC between userspace processes? #Linux
Doughnut Lollipop 【記録係】:blobfoxgooglymlem: :cascadia: tk@bbs.kawa-kun.com
2024-09-24
Has anyone here ever played around with using #Netlink for IPC between userspace processes? #Linux
2024-02-01

#Netlink arriving at #FreeBSD is very interesting. Now if they would implement switchdev to have #switch ASICs work as normal NICs, then FreeBSD would be a contender for #Marvell and #Mellanox #ASIC switches.

https://www.freebsd.org/status/report-2022-10-2022-12/netlink/

2024-01-12

The NetLink League’s latest online Sega Saturn tournament came down to the wire for an exciting finish in Virtual On — find out how it all went down (thanks to Cecil H4rvey for writing this story!):

segasaturnshiro.com/2024/01/12

#sega #saturn #segasaturn #retrogaming #onlinegaming #tournament #netlink #virtualon

2023-10-14

Hacking Sonic 3D Blast, the Saturn MiSter core goes official and more in this week's Saturn news roundup:

segasaturnshiro.com/2023/10/13

#sega #saturn #segasaturn #sonic #sonicthehedgehog #retrogaming #misterFPGA #mister #netlink

Digital Malayali :ve:digitalmalayali@techhub.social
2023-09-12

Netlink റൂട്ടർ/മോഡത്തിന്റെ വാറന്റി പരിശോധിക്കാം!

youtube.com/shorts/mCX_qFtXRHw

#netlink #router #modem #ont #warranty #malayalamshorts #tutormalayalam #youtube #malayalam #shorts #youtubeshorts #മലയാളം #ടിപ്

Thomas Liskeliske@ibh.social
2023-08-20

While implementing the netns handling in ifstate I got aware that pyroute2 did not have a netlink RTM_NEWNSID request implementation.

I got github.com/svinota/pyroute2/pu merged into pyroute2 to add RTM_NEWNSID support.

Later I have noticed that my implementation does not work within netns (pyroute2 related, some details in issue github.com/svinota/pyroute2/is ).

After this tangled journey ifstate netns dev branch now has its first netns superpowers 😎

#ifstate #linux #linuxnetworking #netlink #pyroute2

Graphviz dot diagram showing a plotnetcfg graph: one service netns with a physical interfaces and two tenant netns with vlan interfaces linked to the physical interface inside the service netnsPart of ifstate config file showing the new namespaces property.
0mp at FreeBSDmpts
2023-02-20

@pete_wright @lattera As a result, from what I understand, we'll have an easier time detecting and reacting to events like an interface going down, a disk getting attached, etc. is not all about networking.

3/3

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst