Home
last modified time | relevance | path

Searched refs:ifreq (Results 1 – 4 of 4) sorted by relevance

/smoltcp-0.9.1/src/phy/sys/
Dmod.rs99 struct ifreq { struct
108 fn ifreq_for(name: &str) -> ifreq { in ifreq_for() argument
109 let mut ifreq = ifreq { in ifreq_for() localVariable
114 ifreq.ifr_name[i] = *byte as libc::c_char in ifreq_for()
116 ifreq in ifreq_for()
125 ifreq: &mut ifreq, in ifreq_ioctl() argument
129 let res = libc::ioctl(lower, cmd as _, ifreq as *mut ifreq); in ifreq_ioctl()
135 Ok(ifreq.ifr_data) in ifreq_ioctl()
Dtuntap_interface.rs9 ifreq: ifreq, field
34 ifreq: ifreq_for(name), in new()
48 self.ifreq.ifr_data = mode | imp::IFF_NO_PI; in attach_interface()
49 ifreq_ioctl(self.lower, &mut self.ifreq, imp::TUNSETIFF).map(|_| ()) in attach_interface()
61 let ip_mtu = ifreq_ioctl(lower, &mut self.ifreq, imp::SIOCGIFMTU).map(|mtu| mtu as usize); in interface_mtu()
Draw_socket.rs10 ifreq: ifreq, field
45 ifreq: ifreq_for(name), in new()
50 ifreq_ioctl(self.lower, &mut self.ifreq, imp::SIOCGIFMTU).map(|mtu| mtu as usize) in interface_mtu()
57 sll_ifindex: ifreq_ioctl(self.lower, &mut self.ifreq, imp::SIOCGIFINDEX)?, in bind_interface()
Dbpf.rs7 use super::{ifreq, ifreq_for};
47 ifreq: ifreq, field
74 ifreq: ifreq_for(name), in new()
79 try_ioctl!(self.fd, BIOCSETIF, &mut self.ifreq); in bind_interface()