diff options
Diffstat (limited to 'man7/netdevice.7')
| -rw-r--r-- | man7/netdevice.7 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/man7/netdevice.7 b/man7/netdevice.7 index a7b47e3c0c..eff29a43ee 100644 --- a/man7/netdevice.7 +++ b/man7/netdevice.7 @@ -25,14 +25,14 @@ netdevice \- low-level access to Linux network devices .SH DESCRIPTION This man page describes the sockets interface which is used to configure network devices. - +.PP Linux supports some standard ioctls to configure network devices. They can be used on any socket's file descriptor regardless of the family or type. Most of them pass an .I ifreq structure: - +.PP .in +4n .nf struct ifreq { @@ -55,7 +55,7 @@ struct ifreq { }; .fi .in - +.PP Normally, the user specifies which device to affect by setting .I ifr_name to the name of the interface. @@ -211,7 +211,7 @@ This is a privileged operation. Get or set the interface's hardware parameters using .IR ifr_map . Setting the parameters is a privileged operation. - +.IP .in +4n .nf struct ifmap { @@ -224,7 +224,7 @@ struct ifmap { }; .fi .in - +.IP The interpretation of the ifmap structure depends on the device driver and the architecture. .TP @@ -260,7 +260,7 @@ means only addresses of the Unlike the others, this ioctl passes an .I ifconf structure: - +.IP .in +4n .nf struct ifconf { @@ -272,7 +272,7 @@ struct ifconf { }; .fi .in - +.IP If .I ifc_req is NULL, @@ -296,7 +296,7 @@ will receive the interface name, and the address. The actual number of bytes transferred is returned in .IR ifc_len . - +.IP If the size specified by .I ifc_len is insufficient to store all the addresses, @@ -312,7 +312,7 @@ set to NULL, or to retry the call with a bigger buffer whenever upon return differs by less than .I sizeof(struct ifreq) from its original value. - +.IP If an error occurs accessing the .I ifconf or |
