上一页 1 2 3 4 5 6 7 ··· 53 下一页
摘要: 参考文档: https://www.nuomiphp.com/serverfault/zh/60480e758726d95932321906.html # dhcp 配置 option rfc3442-classless-static-routes code 121 = array of integ 阅读全文
posted @ 2022-11-29 19:09 salami_china 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://studygolang.com/articles/12972 func main() { wg := sync.WaitGroup{} wg.Add(100) for i := 0; i < 100; i++ { go func(i int) { fmt.Println(i 阅读全文
posted @ 2022-11-29 09:32 salami_china 阅读(35) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "runtime" ) func main() { fmt.Println(runtime.GOOS) fmt.Println(runtime.GOARCH) } 结果: #go run go-cpu.go linux amd64 阅读全文
posted @ 2022-10-31 10:56 salami_china 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-25 17:17 salami_china 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1. struct iphdr *ip_header = (struct iphdr *)skb_network_header(skb); struct tcphdr *tcp_header = (struct tcphdr *)skb_transport_header(skb); 2. struc 阅读全文
posted @ 2022-09-20 13:35 salami_china 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 源码下载:https://github.com/github/glb-director.git 2018年8月8日,GitHub 发布了开源负载均衡组件 GitHub Load Balancer Director (GLB) Director,GLB 是 GitHub 针对裸机数据中心的可扩展负载均 阅读全文
posted @ 2022-09-18 10:14 salami_china 阅读(87) 评论(0) 推荐(0) 编辑
摘要: git clone --depth 1 https://github.com/libbpf/libbpf cd src sudo make install [root@junqiang src]# make install INSTALL bpf.h libbpf.h btf.h libbpf_co 阅读全文
posted @ 2022-09-16 23:38 salami_china 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: 问题:R1 !read_ok 10: (79) r8 = *(u64 *)(r6 +96) 11: (79) r3 = *(u64 *)(r6 +112) 12: (b7) r9 = 0 13: (73) *(u8 *)(r1 +0) = r9 R1 !read_ok 解决:赋值的变量需要进行初始化 阅读全文
posted @ 2022-09-06 20:32 salami_china 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 参考文档:https://www.cnblogs.com/rainbond/p/16130136.html 一:cilium 安装: cilium install --helm-set prometheus.enabled=true,operator.prometheus.enabled=true, 阅读全文
posted @ 2022-09-05 15:40 salami_china 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://mozillazg.com/2022/07/ebpf-libbpf-what-is-load_byte-load_half-load_word.html 前言 大家在阅读一些网络相关的 ebpf 程序源码时可能会发现部分程序会使用 load_byte, load_half  阅读全文
posted @ 2022-09-01 11:06 salami_china 阅读(278) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 53 下一页