会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
坐看云起时
乘风好去,长空万里,直下看山河!!! 研究过httpserver、nginx、内核tcpip协议栈源码,内存管理 、摄像头-iic-spi等驱动!! 目前搞搞准入 看看内核 看看身份逻辑 看看管控 写写go
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
70
下一页
2025年5月8日
容器网络转发一次故障笔记
摘要: 今天处理问题时,发现docker 容器内访问外网不通,tcpdump 抓包发现,只抓到veth 接口上的包,但是报文需要再宿主机物理网卡上转发到外网,此时这部分报文没看到, 目前容器使用桥接模式(Bridge Network) 容器 eth0 (veth0) ↓ veth_xmit() [veth.
阅读全文
posted @ 2025-05-08 00:00 codestacklinuxer
阅读(37)
评论(0)
推荐(0)
2025年3月25日
peap中的tls
摘要: 初始化 回调函数作用对象触发阶段用途常见场景 SSL_set_verify / SSL_CTX_set_verify SSL/SSL_CTX 证书验证阶段 设置是否验证对端证书及验证模式(如 SSL_VERIFY_PEER) 强制验证客户端/服务器证书 SSL_CTX_set_cert_verify
阅读全文
posted @ 2025-03-25 14:58 codestacklinuxer
阅读(106)
评论(0)
推荐(0)
2025年3月21日
eaptls灾备 以及 tls 回调 证书制作
摘要: eaptls 中忽略server 端对client端证书校验 SSL_set_verify(conn->ssl, SSL_VERIFY_PEER, tls_verify_cb); 设置是否需要校验对端证书。 对于wpa 客户端是否要忽略校验服务端证书结果; 使用peap-mschap验证 1、如果配
阅读全文
posted @ 2025-03-21 19:41 codestacklinuxer
阅读(28)
评论(0)
推荐(0)
2025年2月18日
go http handle wirte
摘要: 目前写了这样一份代码 func Handler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(http.StatusOK) fmt.Fprint
阅读全文
posted @ 2025-02-18 17:39 codestacklinuxer
阅读(30)
评论(0)
推荐(0)
2025年2月11日
perf skb drop reason
摘要: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/net/ipv4/tcp_input.c?id=124c4c32e9f3b4d89f5be3342897adc8db5c27b8
阅读全文
posted @ 2025-02-11 22:05 codestacklinuxer
阅读(23)
评论(0)
推荐(0)
2024年12月26日
shutdown-rd 分析
摘要: 以前的印象中,shutdown rd后,就不能从fd里面读到数据,今天测试时和预计的不一样! 可以看到shutdown后 rd后,还是可以read 数据。分析tcp_rcvmsg可以看到确实能读到数据 // 定义一个接收TCP消息的函数 static int tcp_recvmsg_locked(s
阅读全文
posted @ 2024-12-26 20:17 codestacklinuxer
阅读(49)
评论(0)
推荐(0)
2024年12月21日
ecn cwnd
摘要: 1、收到ecn后调用tcp_fastretrans_alert >tcp_try_to_open >tcp_enter_cwr /* Enter CWR state. Disable cwnd undo since congestion is proven with ECN */ void tcp_
阅读全文
posted @ 2024-12-21 00:58 codestacklinuxer
阅读(22)
评论(0)
推荐(0)
tcp_notsent_lowat +epoll
摘要: tcp_notsent_lowat控制发送缓存队列中的未发送数据量。低于此值可发送 也就是对外是epoll_out 内核函数tcp_poll,通过函数sk_stream_is_writeable的结果判定,可通知用户层发送数据的时机。当发送缓存队列的数据流小于notsent_lowat值的时候,由P
阅读全文
posted @ 2024-12-21 00:24 codestacklinuxer
阅读(60)
评论(0)
推荐(0)
2024年12月19日
slow start after idle test
摘要: 收到ACK时,tcp_slow_start_after_idle ==1;报文都已经被ack,也就是inflight==0 则 检查是否应该tcp_cwnd_restart static int tcp_ack_update_window(struct sock *sk, const struct
阅读全文
posted @ 2024-12-19 14:51 codestacklinuxer
阅读(25)
评论(0)
推荐(0)
2024年12月18日
slow-start-ack-per-xpkt test
摘要: // Test of slow start when not application-limited, so that // the cwnd continues to grow. // In this variant, the receiver sends one ACK per 4 packet
阅读全文
posted @ 2024-12-18 02:02 codestacklinuxer
阅读(31)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
70
下一页