linux_io/socket/ip/
tcp.rs1#[derive(Clone, Copy)]
3pub struct TcpSocketDevice;
4
5impl crate::fd::ioctl::IoDevice for TcpSocketDevice {}
6unsafe impl crate::fd::ioctl::SubDevice<super::Ipv4SocketDevice> for TcpSocketDevice {}
7unsafe impl crate::fd::ioctl::SubDevice<super::Ipv6SocketDevice> for TcpSocketDevice {}
8unsafe impl crate::fd::ioctl::SubDevice<super::super::SocketDevice> for TcpSocketDevice {}
9
10use crate::fd::ioctl::{ioctl_read, IoctlReqRead};
11use linux_unsafe::int;
12
13pub const SIOCINQ: IoctlReqRead<TcpSocketDevice, int> = unsafe { ioctl_read(0x541B) };
18
19pub const SIOCATMARK: IoctlReqRead<TcpSocketDevice, int> = unsafe { ioctl_read(0x8905) };
22
23pub const SIOCOUTQ: IoctlReqRead<TcpSocketDevice, int> = unsafe { ioctl_read(0x5411) };