X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=original%2Fman7%2Fnetdevice.7;h=f785568b4083ffe856009f219c5ddb0a59dcd1b7;hp=d854722511403c8193aa13a20d74f7120d00b255;hb=5392b3eee193e21d1f92e52d7e56b776d2347825;hpb=4fa3e54b837e5814a4598ec901d77446bf5cb9b3 diff --git a/original/man7/netdevice.7 b/original/man7/netdevice.7 index d8547225..f785568b 100644 --- a/original/man7/netdevice.7 +++ b/original/man7/netdevice.7 @@ -9,7 +9,10 @@ .\" .\" Modified, 2004-11-25, mtk, formatting and a few wording fixes .\" -.TH NETDEVICE 7 2009-01-14 "Linux" "Linux Programmer's Manual" +.\" Modified, 2011-11-02, , added many basic +.\" but missing ioctls, such as SIOCGIFADDR. +.\" +.TH NETDEVICE 7 2012-04-26 "Linux" "Linux Programmer's Manual" .SH NAME netdevice \- Low level access to Linux network devices .SH SYNOPSIS @@ -120,6 +123,59 @@ IFF_ECHO:Echo sent packets (since Linux 2.6.25) Setting the active flag word is a privileged operation, but any process may read it. .TP +.BR SIOCGIFPFLAGS ", " SIOCSIFPFLAGS +Get or set extended (private) flags for the device. +.I ifr_flags +contains a bit mask of the following values: +.TS +tab(:); +c s +l l. +Private flags +IFF_802_1Q_VLAN:Interface is 802.1Q VLAN device. +IFF_EBRIDGE:Interface is Ethernet bridging device. +IFF_SLAVE_INACTIVE:Interface is inactive bonding slave. +IFF_MASTER_8023AD:Interface is 802.3ad bonding master. +IFF_MASTER_ALB:Interface is balanced-alb bonding master. +IFF_BONDING:Interface is a bonding master or slave. +IFF_SLAVE_NEEDARP:Interface needs ARPs for validation. +IFF_ISATAP:Interface is RFC4214 ISATAP interface. +.TE +.sp +Setting the extended (private) interface flags is a privileged operation. +.TP +.BR SIOCGIFADDR ", " SIOCSIFADDR +Get or set the address of the device using +.IR ifr_addr . +Setting the interface address is a privileged operation. +For compatibility, only +.B AF_INET +addresses are accepted or returned. +.TP +.BR SIOCGIFDSTADDR ", " SIOCSIFDSTADDR +Get or set the destination address of a point-to-point device using +.IR ifr_dstaddr . +For compatibility, only +.B AF_INET +addresses are accepted or returned. +Setting the destination address is a privileged operation. +.TP +.BR SIOCGIFBRDADDR ", " SIOCSIFBRDADDR +Get or set the broadcast address for a device using +.IR ifr_brdaddr . +For compatibility, only +.B AF_INET +addresses are accepted or returned. +Setting the broadcast address is a privileged operation. +.TP +.BR SIOCGIFNETMASK ", " SIOCSIFNETMASK +Get or set the network mask for a device using +.IR ifr_netmask . +For compatibility, only +.B AF_INET +addresses are accepted or returned. +Setting the network mask is a privileged operation. +.TP .BR SIOCGIFMETRIC ", " SIOCSIFMETRIC Get or set the metric of the device using .IR ifr_metric . @@ -247,7 +303,10 @@ These are not described here. .SH NOTES Strictly speaking, .B SIOCGIFCONF -is IP specific and belongs in +and the other ioctls that only accept or return +.B AF_INET +socket addresses, +are IP specific and belong in .BR ip (7). .LP The names of interfaces with no addresses or that don't have the