7个版本
0.2.3 | 2021年11月20日 |
---|---|
0.2.2 |
|
0.1.6 | 2021年10月3日 |
0.1.5 | 2021年5月3日 |
0.1.4 | 2021年4月29日 |
#8 in #raw-sockets
12,805 monthly downloads
20KB
411 代码行
afpacket
Rust对Linux AF_PACKET(原始)套接字的绑定,包括用于与async_std
或futures
一起使用的异步包装器,基于async_io
。
数据包套接字用于在设备驱动程序(OSI第2层)级别接收或发送原始数据包。它们允许用户在物理层之上在用户空间中实现协议模块。-- packet(7)
许可证
Copyright © 2021 nyantec GmbH <[email protected]>
Authors:
Milan Pässler <[email protected]>
Provided that these terms and disclaimer and all copyright notices
are retained or reproduced in an accompanying document, permission
is granted to deal in this work without restriction, including un‐
limited rights to use, publicly perform, distribute, sell, modify,
merge, give away, or sublicence.
This work is provided “AS IS” and WITHOUT WARRANTY of any kind, to
the utmost extent permitted by applicable law, neither express nor
implied; without malicious intent or gross negligence. In no event
may a licensor, author or contributor be held liable for indirect,
direct, other damage, loss, or other issues arising in any way out
of dealing in the work, even if advised of the possibility of such
damage or existence of a defect, except proven that it results out
of said person’s immediate fault when using the work as intended.
src/sync.rs
源自Alexander Polakov的mio-afpacket
crate,许可协议为MIT。
依赖项
~0–14MB
~121K SLoC