ILD

rtnl lock
2019-8-20
内核的接口很多都显式的要求在rtnl lock的保护下,它是一个mutex锁,用来保护netdevice等相关的数据,在内核,用户配置间的一致性。定义在:net/core/rtnetlink.cvoid rtnl_lock(void){ mutex_lock(&rtnl_mutex);}EXP

Nftables - Packet flow and Netfilter hooks in detail
2021-12-13
作者说:I for myself always like to know how things work and to dig a little deeper than just gaining the very minimum knowledge required to solve the iss

bridge netfilter
2021-12-20
基于内核4.4.60版本分析。配置和Makenet/KconfigBRIDGE_NETFILTER依赖于NET [=y] && BRIDGE [=y] && NETFILTER [=n] && INET [=y] && NETFILTER_ADVANCEDnet/bridge/netfilter/K

bridge packet rx flow on 4.4 kernel
2022-6-17
本文分析了桥上包RX处理流程。注意本文是openwrt版本ipq5018 soc的内核,openwrt和高通都可能修改了一些逻辑。1 rx处理函数注册在桥添加接口的函数(net/bridge/br_if.c)中: int br_add_if(struct net_bridge

Copyright © insidelinuxdev.net 2017-2021. Some Rights Reserved.