上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 70 下一页
摘要: 近期都在处理网关产品的radius mschapv2认证过程,有些东西还是记录一下吧! freeradius的架构还是相当有意思; * 每个method 都有对应的authorize 、authenticate、post_auth 等相关函数。 * 每个module 都有一个method,没有mod 阅读全文
posted @ 2023-04-17 20:58 codestacklinuxer 阅读(1031) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-04-09 13:42 codestacklinuxer 阅读(107) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-04-09 00:58 codestacklinuxer 阅读(158) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-04-08 23:26 codestacklinuxer 阅读(228) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-04-08 22:26 codestacklinuxer 阅读(611) 评论(0) 推荐(0)
摘要: 这是内核协议栈里面的一个发送窗口赋值代码 tp->snd_wnd = ntohs(th->window) << tp->rx_opt.snd_wscale; snd_wscale : 4, /* Window scaling received from sender */ rcv_wscale : 阅读全文
posted @ 2023-04-08 17:08 codestacklinuxer 阅读(144) 评论(0) 推荐(0)
摘要: 目前freeradius 使用线程池多线程的方案处理,radius认证报文,自己内部维持一个状态机。网络模型为监听1812的认证端口,以及1813的计费端口。 目前发现收包IO线程和业务线程在udp socket 收发上存在锁竞争,毕竟业务线程调用send 发送报文, 多线程互斥, 主线程负责rec 阅读全文
posted @ 2023-04-03 23:54 codestacklinuxer 阅读(147) 评论(0) 推荐(0)
摘要: 调试线程池过程中遇到了一个return和pthread_exit 的问题; google 一下发现右如下概念 首先,return 语句和 pthread_exit() 函数的含义不同,return 的含义是返回,它不仅可以用于线程执行的函数,普通函数也可以使用;pthread_exit() 函数的含 阅读全文
posted @ 2023-03-29 17:56 codestacklinuxer 阅读(63) 评论(0) 推荐(0)
摘要: 来自:go init函数 1、golang里的main函数是程序的入口函数,olang还有另外一个特殊的函数init函数,先于main函数执行 init函数的主要作用: 初始化不能采用初始化表达式初始化的变量。 程序运行前的注册。 实现sync.Once功能。 其他 init函数的主要特点: ini 阅读全文
posted @ 2023-03-24 22:10 codestacklinuxer 阅读(64) 评论(0) 推荐(0)
摘要: 一、参数说明 格式: curl -H 请求头 -d 请求体 -X POST 接口地址 参数 内容 格式 -H(或者 --header) 请求头 “Content-Type: application/json” -d POST内容 ‘{“id”: “001”, “name”:“张三”, “phone” 阅读全文
posted @ 2023-03-23 12:33 codestacklinuxer 阅读(34) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 70 下一页