Print this page
Clearview IPMP manpages
| Split |
Close |
| Expand all |
| Collapse all |
--- old/./if_tcp.txt
+++ new/./if_tcp.txt
1 1 Protocols if_tcp(7P)
2 2
3 3 NAME
4 4 if_tcp, if - general properties of Internet Protocol network
5 5 interfaces
6 6
7 7 DESCRIPTION
8 8 A network interface is a device for sending and receiving
9 9 packets on a network. It is usually a hardware device,
10 10 although it can be implemented in software. Network inter-
11 11 faces used by the Internet Protocol (IPv4 or IPv6) must be
12 12 STREAMS devices conforming to the Data Link Provider Inter-
13 13 face (DLPI). See dlpi(7P).
14 14
15 15 APPLICATION PROGRAMMING INTERFACE
16 16 An interface becomes available to IP when it is opened and
17 17 the IP module is pushed onto the stream with the I_PUSH
18 18 ioctl(2) command. (See streamio(7I)). The SIOCSLIFNAME
19 19 ioctl(2) is issued to specify the name of the interface and
20 20 to indicate whether it is IPv4 or IPv6. This may be ini-
21 21 tiated by the kernel at boot time or by a user program after
22 22 the system is running. Each interface must be assigned an IP
23 23 address with the SIOCSLIFADDR ioctl() before it can be used.
|
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
24 24 On interfaces where the network-to-link layer address map-
25 25 ping is static, only the network number is taken from the
26 26 ioctl() request; the remainder is found in a hardware
27 27 specific manner. On interfaces which provide dynamic
28 28 network-to-link layer address mapping facilities (for exam-
29 29 ple, 10Mb/s Ethernets using arp(7P)), the entire address
30 30 specified in the ioctl() is used. A routing table entry for
31 31 destinations on the network of the interface is installed
32 32 automatically when an interface's address is set.
33 33
34 + Note IPMP IP interfaces cannot be created using the
35 + procedure described above. Instead, ifconfig(1M) must be
36 + used to create IPMP IP interfaces.
37 +
34 38 IOCTLS
35 39 The following ioctl() calls may be used to manipulate IP
36 40 network interfaces. Unless specified otherwise, the request
37 41 takes an lifreq structure as its parameter. This structure
38 42 has the form:
39 43
40 44 struct lifreq {
41 45 #define LIFNAMSIZ 32
42 46 char lifr_name[LIFNAMSIZ]; /* if name, e.g. "le1" */
43 47 union {
44 48 int lifru_addrlen; /* for subnet/token etc */
45 49 uint_t lifru_ppa; /* SIOCSLIFNAME */
46 50 } lifr_lifru1;
47 51 union {
48 52 struct sockaddr_storage lifru_addr;
49 53 struct sockaddr_storage lifru_dstaddr;
50 54 struct sockaddr_storage lifru_broadaddr;
51 55 struct sockaddr_storage lifru_token; /* With lifr_addrlen */
52 56 struct sockaddr_storage lifru_subnet; /* With lifr_addrlen */
53 57 int lifru_index; /* interface index */
54 58 uint64_t lifru_flags; /* SIOC?LIFFLAGS */
55 59
56 60 SunOS 5.10 Last change: 14 Nov 2008 1
57 61
58 62 Protocols if_tcp(7P)
59 63
60 64 int lifru_metric;
61 65 uint_t lifru_mtu;
62 66 int lif_muxid[2]; /* mux id's for arp & ip */
63 67 struct lif_nd_req lifru_nd_req;
64 68 struct lif_ifinfo_req lifru_ifinfo_req;
65 69 zoneid_t lifru_zone; /* SIOC[GS]LIFZONE */
66 70 } lifr_lifru;
67 71
68 72 #define lifr_addrlen lifr_lifru1.lifru_addrlen
69 73 #define lifr_ppa lifr_lifru1.lifru_ppa /* Driver's ppa */
70 74 #define lifr_addr lifr_lifru.lifru_addr /* address */
71 75 #define lifr_dstaddr lifr_lifru.lifru_dstaddr
72 76 #define lifr_broadaddr lifr_lifru.lifru_broadaddr /* broadcast addr. */
73 77 #define lifr_token lifr_lifru.lifru_token /* address token */
74 78 #define lifr_subnet lifr_lifru.lifru_subnet /* subnet prefix */
75 79 #define lifr_index lifr_lifru.lifru_index /* interface index */
76 80 #define lifr_flags lifr_lifru.lifru_flags /* flags */
77 81 #define lifr_metric lifr_lifru.lifru_metric /* metric */
78 82 #define lifr_mtu lifr_lifru.lifru_mtu /* mtu */
79 83 #define lifr_ip_muxid lifr_lifru.lif_muxid[0]
80 84 #define lifr_arp_muxid lifr_lifru.lif_muxid[1]
81 85 #define lifr_nd lifr_lifru.lifru_nd_req /* SIOCLIF*ND */
82 86 #define lifr_ifinfo lifr_lifru.lifru_ifinfo_req /* SIOC[GS]LIFLNKINFO */
83 87 #define lifr_zone lifr_lifru.lifru_zone /* SIOC[GS]LIFZONE */
84 88 };
85 89
86 90 SIOCSLIFADDR Set interface address.
87 91
88 92 SIOCGLIFADDR Get interface address.
89 93
90 94 SIOCSLIFDSTADDR Set point to point address for inter-
91 95 face.
92 96
|
↓ open down ↓ |
49 lines elided |
↑ open up ↑ |
93 97 SIOCGLIFDSTADDR Get point to point address for inter-
94 98 face.
95 99
96 100 SIOCSLIFFLAGS Set interface flags field. If the inter-
97 101 face is marked down, any processes
98 102 currently routing packets through the
99 103 interface are notified.
100 104
101 105 SIOCGLIFFLAGS Get interface flags.
102 106
103 - SIOCGLIFCONF Get interface configuration list. This
104 - request takes an lifconf structure (see
107 + SIOCGLIFCONF Get interface configuration list. This
108 + request takes a *lifconf* structure (see
109 + below) as a value-result parameter. The
110 + *lifc_family* field can be set to
111 + *AF_UNSPEC* to retrieve both *AF_INET*
112 + and *AF_INET6* interfaces. The
113 + *lifc_len* field should be set to the
114 + size of the buffer pointed to by
115 + *lifc_buf*.
105 116
106 -SunOS 5.10 Last change: 14 Nov 2008 2
117 + The *lifc_flags* field should usually be
118 + set to zero, but callers that need low-
119 + level knowledge of the underlying IP
120 + interfaces that comprise an IPMP group
121 + can set it to *LIFC_UNDER_IPMP* to
122 + request that those interfaces be
123 + included in the result.
124 +
125 + Upon success, *lifc_len* will contain
126 + the length, in bytes, of the array of
127 + *lifreq* structures pointed to by
128 + *lifc_req*. For each *lifreq* structure,
129 + the *lifr_name* and *lifr_addr* fields
130 + will be valid.
107 131
108 -Protocols if_tcp(7P)
109 132
110 - below) as a value-result parameter. The
111 - lifc_family field can be set to
112 - AF_UNSPEC to retrieve both AF_INET and
113 - AF_INET6 interfaces. The lifc_flags
114 - field should be set to zero. The
115 - lifc_len field should be set to the size
116 - of the buffer pointed to by lifc_buf.
117 - Upon success, lifc_len will contain the
118 - length, in bytes, of the array of lifreq
119 - structures pointed to by lifc_req. For
120 - each lifreq structure, the lifr_name and
121 - lifr_addr fields will be valid.
122 -
123 133 SIOCGLIFNUM Get number of interfaces. This request
124 134 returns an integer which is the number
125 135 of interface descriptions (struct
126 136 lifreq) that will be returned by the
127 137 SIOCGLIFCONF ioctl; that is, it gives an
128 - indication of how large lifc_len has to
129 - be. This request takes an lifnum struc-
130 - ture (see below) as a value-result
131 - parameter. The lifn_family field should
132 - be set to AF_UNSPEC to count both
133 - AF_INET and AF_INET6 interfaces. The
134 - lifn_flags field should be initially set
135 - to zero.
138 + indication of how large lifc_len has
139 + to be.
136 140
141 + This request takes a *struct lifnum*
142 + (see below) as a value-result parameter.
143 + The *lifn_family* field can be set to
144 + *AF_UNSPEC* to count both *AF_INET* and
145 + *AF_INET6* interfaces. The *lifn_flags*
146 + field should usually be set to zero, but
147 + callers that need low-level knowledge of
148 + the underlying IP interfaces that
149 + comprise an IPMP group can set it to
150 + *LIFC_UNDER_IPMP* to request that those
151 + interfaces be included in the count.
152 +
153 +
137 154 SIOCSLIFMTU Set the maximum transmission unit (MTU)
138 155 size for interface. Place the request in
139 156 the lifru_mtu field. The MTU can not
140 157 exceed the physical MTU limitation
141 158 (which is reported in the DLPI
142 159 DL_INFO_ACK message).
143 160
144 161 SIOCGLIFMTU Get the maximum transmission unit size
145 162 for interface.
146 163
147 164 SIOCSLIFMETRIC Set the metric associated with the
148 165 interface. The metric is used by rout-
149 166 ing daemons such as in.routed(1M).
150 167
151 168 SIOCGLIFMETRIC Get the metric associated with the
152 169 interface.
153 170
154 171 SIOCGLIFMUXID Get the ip and arp muxid associated with
155 172 the interface.
156 173
157 174 SunOS 5.10 Last change: 14 Nov 2008 3
158 175
159 176 Protocols if_tcp(7P)
160 177
161 178 SIOCSLIFMUXID Set the ip and arp muxid associated with
162 179 the interface.
163 180
164 181 SIOCGLIFINDEX Get the interface index associated with
165 182 the interface.
166 183
167 184 SIOCSLIFINDEX Set the interface index associated with
168 185 the interface.
|
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
169 186
170 187 SIOCGLIFZONE Get the zone associated with the inter-
171 188 face.
172 189
173 190 SIOCSLIFZONE Set the zone associated with the inter-
174 191 face. Only applies for zones that use
175 192 the shared-IP instance.
176 193
177 194 SIOCLIFADDIF Add a new logical interface on a physi-
178 195 cal interface using an unused logical
179 - unit number. If the physical interface
180 - is part of an IP multipathing group, the
181 - logical interface may be added to a dif-
182 - ferent physical interface in the same
183 - group. Upon return, the lifr_name field
184 - contains the name of the actual logical
185 - interface created.
196 + interface number.
186 197
187 198 SIOCLIFREMOVEIF Remove a logical interface by specifying
188 199 its IP address or logical interface
189 - name. When the IP address is specified
190 - and the interface is part of an IP mul-
191 - tipathing group, the logical interface
192 - is removed from the physical interface
193 - in the group which holds the IP address.
200 + name.
194 201
195 202 SIOCSLIFTOKEN Set the address token used to form IPv6
196 203 link-local addresses and for stateless
197 204 address autoconfiguration.
198 205
199 206 SIOCGLIFTOKEN Get the address token used to form IPv6
200 207 link-local addresses and for stateless
201 208 address autoconfiguration.
202 209
203 210 SunOS 5.10 Last change: 14 Nov 2008 4
204 211
205 212 Protocols if_tcp(7P)
206 213
207 214 SIOCSLIFSUBNET Set the subnet prefix associated with
208 215 the interface.
209 216
210 217 SIOCGLIFSUBNET Get the subnet prefix associated with
211 218 the interface.
212 219
213 220 SIOCSLIFLNKINFO Set link specific parameters for the
214 221 interface.
215 222
216 223 SIOCGLIFLNKINFO Get link specific parameters for the
217 224 interface.
218 225
219 226 SIOCLIFDELND Delete a neighbor cache entry for IPv6.
220 227
221 228 SIOCLIFGETND Get a neighbor cache entry for IPv6.
222 229
223 230 SIOCLIFSETND Set a neighbor cache entry for IPv6.
224 231
225 232 SIOCSLIFUSESRC Set the interface from which to choose a
226 233 source address. The lifr_index field has
227 234 the interface index corresponding to the
228 235 interface whose address is to be used as
229 236 the source address for packets going out
230 237 on the interface whose name is provided
231 238 by lifr_name. If the lifr_index field is
232 239 set to zero, the previous setting is
233 240 cleared. See ifconfig(1M) for examples
234 241 of the usesrc option.
235 242
236 243 SIOCGLIFUSESRC Get the interface index of the interface
237 244 whose address is used as the source
238 245 address for packets going out on the
239 246 interface provided by lifr_name field.
240 247 The value is retrieved in the lifr_index
241 248 field. See ifconfig(1M) for examples of
242 249 the usesrc option.
243 250
244 251 SIOCGLIFSRCOF Get the interface configuration list for
245 252 interfaces that use an address hosted on
246 253 the interface provided by the
247 254 lifs_ifindex field in the lifsrcof
248 255 struct (see below), as a source address.
249 256 The application sets lifs_maxlen to the
250 257
251 258 SunOS 5.10 Last change: 14 Nov 2008 5
252 259
253 260 Protocols if_tcp(7P)
254 261
255 262 size (in bytes) of the buffer it has
256 263 allocated for the data. On return, the
257 264 kernel sets lifs_len to the actual size
258 265 required. Note, the application could
259 266 set lifs_maxlen to zero to query the
260 267 kernel of the required buffer size
261 268 instead of estimating a buffer size. The
262 269 application tests lifs_len <=
263 270 lifs_maxlen -- if that's true, the
264 271 buffer was big enough and the applica-
265 272 tion has an accurate list. If it is
266 273 false, it needs to allocate a bigger
267 274 buffer and try again, and lifs_len pro-
268 275 vides a hint of how big to make the next
269 276 trial. See ifconfig(1M) for examples of
270 277 the usesrc option.
271 278
272 279 SIOCTONLINK Test if the address is directly reach-
273 280 able, for example, that it can be
274 281 reached without going through a router.
275 282 This request takes an sioc_addrreq
276 283 structure (see below) as a value-result
277 284 parameter. The sa_addr field should be
278 285 set to the address to test. The sa_res
279 286 field will contain a non-zero value if
280 287 the address is onlink.
281 288
282 289 SIOCTMYADDR Test if the address is assigned to this
283 290 node. This request takes an sioc_addrreq
284 291 structure (see below) as a value-result
285 292 parameter. The sa_addr field should be
286 293 set to the address to test. The sa_res
287 294 field will contain a non-zero value if
288 295 the address is assigned to this node.
289 296
290 297 SIOCTMYSITE Test if the address is part of the same
291 298 site as this node. This request takes an
292 299 sioc_addrreq structure (see below) as a
293 300 value-result parameter. The sa_addr
294 301 field should be set to the address to
295 302 test. The sa_res field will contain a
296 303 non-zero value if the address is in the
297 304 same site.
298 305
299 306 The structure used by SIOCGLIFCONF has the form:
300 307
301 308 struct lifconf {
302 309 sa_family_t lifc_family;
303 310
304 311 SunOS 5.10 Last change: 14 Nov 2008 6
305 312
306 313 Protocols if_tcp(7P)
307 314
308 315 int lifc_flags; /* request specific
309 316 /* interfaces */
310 317 int lifc_len; /* size of assoc. buffer */
|
↓ open down ↓ |
107 lines elided |
↑ open up ↑ |
311 318 union {
312 319 caddr_t lifcu_buf;
313 320 struct lifreq *lifcu_req;
314 321 } lifc_lifcu;
315 322
316 323 #define lifc_buf lifc_lifcu.lifcu_buf /* buffer address */
317 324 #define lifc_req lifc_lifcu.lifcu_req /* array of structs returned */
318 325 };
319 326
320 327 The structure used by SIOCGLIFNUM has the form:
328 +
321 329 struct lifnum {
322 330 sa_family_t lifn_family;
323 331 int lifn_flags; /* req. specf. interfaces */
324 332 int lifn_count; /* Result */
325 333 };
326 334
327 335 The structure used by SIOCTONLINK, SIOCTMYADDR and SIOCTMYSITE has the form:
328 336
329 337 struct sioc_addrreq {
330 338 struct sockaddr_storage sa_addr; /* Address to test */
331 339 int sa_res; /* Result - 0/1 */
332 340 };
333 341
334 342 The structure used by SIOCGLIFSRCOF has the form:
335 343
336 344 struct lifsrcof {
337 345 uint_t lifs_ifindex; /* addr on this interface */
338 346 /* used as the src addr */
339 347 size_t lifs_maxlen; /* size of buffer: input */
340 348 size_t lifs_len; /* size of buffer: output */
341 349 union {
342 350 caddr_t lifsu_buf;
343 351 struct lifreq *lifsu_req;
344 352 } lifs_lifsu;
345 353 #define lifs_buf lifs_lifsu.lifsu_buf /* buffer addr. */
346 354 #define lifs_req lifs_lifsu.lifsu_req /* array returned */
347 355 };
348 356
349 357 The following ioctl() calls are maintained for compatibility
350 358 but only apply to IPv4 network interfaces, since the data
351 359 structures are too small to hold an IPv6 address. Unless
352 360 specified otherwise, the request takes an ifreq structure as
353 361 its parameter. This structure has the form:
354 362
355 363 struct ifreq {
356 364
357 365 SunOS 5.10 Last change: 14 Nov 2008 7
358 366
359 367 Protocols if_tcp(7P)
360 368
361 369 #define IFNAMSIZ 16
362 370 char ifr_name[IFNAMSIZ]; /* interface name - e.g. "hme0" */
363 371 union {
364 372 struct sockaddr ifru_addr;
365 373 struct sockaddr ifru_dstaddr;
366 374 struct sockaddr ifru_broadaddr;
367 375 short ifru_flags;
368 376 int ifru_metric;
369 377 int if_muxid[2]; /* mux id's for arp and ip */
370 378 int ifru_index; /* interface index */
371 379 } ifr_ifru;
372 380
373 381 #define ifr_addr ifr_ifru.ifru_addr /* address */
374 382 #define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */
375 383 #define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */
376 384 #define ifr_flags ifr_ifru.ifru_flags /* flags */
377 385 #define ifr_index ifr_ifru.ifru_index /* interface index */
378 386 #define ifr_metric ifr_ifru.ifru_metric /* metric */
379 387 };
380 388
381 389 SIOCSIFADDR Set interface address.
382 390
383 391 SIOCGIFADDR Get interface address.
384 392
385 393 SIOCSIFDSTADDR Set point to point address for interface.
386 394
387 395 SIOCGIFDSTADDR Get point to point address for interface.
388 396
389 397 SIOCSIFFLAGS Set interface flags field. If the inter-
390 398 face is marked down, any processes
391 399 currently routing packets through the
392 400 interface are notified.
393 401
|
↓ open down ↓ |
63 lines elided |
↑ open up ↑ |
394 402 SIOCGIFFLAGS Get interface flags.
395 403
396 404 SIOCGIFCONF Get interface configuration list. This
397 405 request takes an ifconf structure (see
398 406 below) as a value-result parameter. The
399 407 ifc_len field should be set to the size
400 408 of the buffer pointed to by ifc_buf. Upon
401 409 success, ifc_len will contain the length,
402 410 in bytes, of the array of ifreq struc-
403 411 tures pointed to by ifc_req. For each
404 - ifreq structure, the ifr_name and
405 - ifr_addr fields will be valid.
412 + ifreq structure, the ifr_name and
413 + *ifr_addr* fields will be valid. While
414 + any IPMP IP interfaces will be included
415 + in the array, the underlying IP
416 + interfaces that comprise those IPMP
417 + groups will not be.
406 418
407 419 SunOS 5.10 Last change: 14 Nov 2008 8
408 420
409 421 Protocols if_tcp(7P)
410 422
411 423 SIOCGIFNUM Get number of interfaces. This request
412 424 returns an integer which is the number of
413 425 interface descriptions (struct ifreq)
414 426 that will be returned by the SIOCGIFCONF
415 427 ioctl; that is, it gives an indication of
416 - how large ifc_len has to be.
428 + how large *ifc_len* has to be. While any
429 + IPMP IP interfaces will be included in
430 + the array, the underlying IP interfaces
431 + that comprise those IPMP groups will not
432 + be.
417 433
418 434 SIOCSIFMTU Set the maximum transmission unit (MTU)
419 435 size for interface. Place the request in
420 436 the ifr_metric field. The MTU has to be
421 437 smaller than physical MTU limitation
422 438 (which is reported in the DLPI
423 439 DL_INFO_ACK message).
424 440
425 441 SIOCGIFMTU Get the maximum transmission unit size
426 442 for interface. Upon success, the request
427 443 is placed in the ifr_metric field.
428 444
429 445 SIOCSIFMETRIC Set the metric associated with the inter-
430 446 face. The metric is used by routine dae-
431 447 mons such as in.routed(1M).
432 448
433 449 SIOCGIFMETRIC Get the metric associated with the inter-
434 450 face.
435 451
436 452 SIOCGIFMUXID Get the ip and arp muxid associated with
437 453 the interface.
438 454
439 455 SIOCSIFMUXID Set the ip and arp muxid associated with
440 456 the interface.
441 457
442 458 SIOCGIFINDEX Get the interface index associated with
443 459 the interface.
444 460
445 461 SIOCSIFINDEX Set the interface index associated with
446 462 the interface.
447 463
448 464 The ifconf structure has the form:
449 465
450 466 struct ifconf {
451 467 int ifc_len; /* size of assoc. buffer */
452 468 union {
453 469
454 470 SunOS 5.10 Last change: 14 Nov 2008 9
455 471
456 472 Protocols if_tcp(7P)
457 473
458 474 caddr_t ifcu_buf;
459 475 struct ifreq *ifcu_req;
460 476 } ifc_ifcu;
|
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
461 477
462 478 #define ifc_buf ifc_ifcu.ifcu_buf /* buffer address */
463 479 #define ifc_req ifc_ifcu.ifcu_req /* array of structs returned */
464 480 };
465 481
466 482 IFF_ Flags
467 483 You can use the ifconfig(1M) command to display the IFF_
468 484 flags listed below (with the leading IFF_ prefix removed).
469 485 See the ifconfig(1M) manpage for a definition of each flag.
470 486
471 - #define IFF_UP 0x0000000001 /* Interface is up */
487 + #define IFF_UP 0x0000000001 /* Address is up */
472 488 #define IFF_BROADCAST 0x0000000002 /* Broadcast address valid */
473 489 #define IFF_DEBUG 0x0000000004 /* Turn on debugging */
474 490 #define IFF_LOOPBACK 0x0000000008 /* Loopback net */
475 491
476 492 #define IFF_POINTOPOINT 0x0000000010 /* Interface is p-to-p */
477 493 #define IFF_NOTRAILERS 0x0000000020 /* Avoid use of trailers */
478 494 #define IFF_RUNNING 0x0000000040 /* Resources allocated */
479 495 #define IFF_NOARP 0x0000000080 /* No address res. protocol */
480 496
481 497 #define IFF_PROMISC 0x0000000100 /* Receive all packets */
482 498 #define IFF_ALLMULTI 0x0000000200 /* Receive all multicast pkts */
|
↓ open down ↓ |
1 lines elided |
↑ open up ↑ |
483 499 #define IFF_INTELLIGENT 0x0000000400 /* Protocol code on board */
484 500 #define IFF_MULTICAST 0x0000000800 /* Supports multicast */
485 501
486 502 #define IFF_MULTI_BCAST 0x0000001000 /* Multicast using broadcst. add. */
487 503 #define IFF_UNNUMBERED 0x0000002000 /* Non-unique address */
488 504 #define IFF_DHCPRUNNING 0x0000004000 /* DHCP controls interface */
489 505 #define IFF_PRIVATE 0x0000008000 /* Do not advertise */
490 506
491 507 #define IFF_NOXMIT 0x0000010000 /* Do not transmit pkts */
492 508 #define IFF_NOLOCAL 0x0000020000 /* No address - just on-link subnet */
493 - #define IFF_DEPRECATED 0x0000040000 /* Interface addr. deprecated */
509 + #define IFF_DEPRECATED 0x0000040000 /* Address is deprecated */
494 510 #define IFF_ADDRCONF 0x0000080000 /* Addr. from stateless addrconf */
495 511
496 512 #define IFF_ROUTER 0x0000100000 /* Router on interface */
497 513 #define IFF_NONUD 0x0000200000 /* No NUD on interface */
498 514 #define IFF_ANYCAST 0x0000400000 /* Anycast address */
499 515 #define IFF_NORTEXCH 0x0000800000 /* Don't xchange rout. info */
500 516
501 517 #define IFF_IPV4 0x0001000000 /* IPv4 interface */
502 518 #define IFF_IPV6 0x0002000000 /* IPv6 interface */
503 - #define IFF_NOFAILOVER 0x0008000000 /* No failover on NIC fail. */
504 - #define IFF_FAILED 0x0010000000 /* NIC has failed */
519 + #define IFF_NOFAILOVER 0x0008000000 /* in.mpathd test address */
520 + #define IFF_FAILED 0x0010000000 /* Interface has failed */
505 521
506 - #define IFF_STANDBY 0x0020000000 /* Standby NIC-use on fail. */
507 - #define IFF_INACTIVE 0x0040000000 /* Stndby active or not? */
508 - #define IFF_OFFLINE 0x0080000000 /* NIC offlined */
509 -
510 -SunOS 5.10 Last change: 14 Nov 2008 10
511 -
512 -Protocols if_tcp(7P)
513 -
522 + #define IFF_STANDBY 0x0020000000 /* Interface is a hot-spare */
523 + #define IFF_INACTIVE 0x0040000000 /* Functioning but not used */
524 + #define IFF_OFFLINE 0x0080000000 /* Interface is offline */
514 525 #define IFF_XRESOLV 0x0100000000 /* IPv6 external resolver */
515 526
516 527 #define IFF_COS_ENABLED 0x0200000000 /* If CoS marking is supported */
517 528 #define IFF_PREFERRED 0x0400000000 /* Prefer as source address */
518 529 #define IFF_TEMPORARY 0x0800000000 /* RFC3041 */
519 530 #define IFF_FIXEDMTU 0x1000000000 /* MTU set with SIOCSLIFMTU */
520 531
521 532 #define IFF_VIRTUAL 0x2000000000 /* Cannot send/receive pkts */
522 533 #define IFF_DUPLICATE 0x4000000000 /* Local address in use */
534 + #define IFF_IPMP 0x8000000000 /* IPMP IP interface */
523 535
524 536 ERRORS
525 537 EPERM Calling process has insufficient privileges.
526 538
527 539 ENXIO The lifr_name member of the lifreq structure
528 540 contains an invalid value.
529 541
530 542 For SIOCGLIFSRCOF, the lifs_ifindex member of
531 543 the lifsrcof structure contains an invalid
532 544 value.
533 545
534 546 For SIOCSLIFUSESRC, this error is returned if
535 547 the lifr_index is set to an invalid value.
536 548
537 549 EBADADDR Wrong address family or malformed address.
538 550
539 551 EBUSY For SIOCSLIFFLAGS, this error is returned when
540 552 the order of bringing the physical interface
541 553 (for example, eri0) and a logical interface
542 554 associated with the same physical interface
543 555 (for example, eri0:1) up or down is violated.
544 556 The physical interface must be configured up
545 557 first and cannot be configured down until all
546 558 the corresponding logical interfaces have been
547 559 configured down.
548 560
549 561 EINVAL For SIOCSLIFMTU, this error is returned when
550 562 the requested MTU size is invalid. This error
551 563 indicates the MTU size is greater than the MTU
552 564 size supported by the DLPI provider or less
553 565 than 68 (for IPv4) or less than 1280 (for
554 566 IPv6).
555 567
556 568 For SIOCSLIFUSESRC, this error is returned if
557 569 either the lifr_index or lifr_name identify
558 570 interfaces that are already part of an existing
559 571 IPMP group.
560 572
561 573 SunOS 5.10 Last change: 14 Nov 2008 11
562 574
563 575 Protocols if_tcp(7P)
564 576
565 577 EEXIST For SIOCLIFADDIF, this error is returned if the
566 578 lifr_name member in the lifreq structure
567 579 corresponds to an interface that already has
568 580 the PPA specified by lifr_ppa plumbed.
569 581
570 582 SEE ALSO
571 583 ifconfig(1M), in.routed(1M), ioctl(2), streamio(7I),
572 584 arp(7P), dlpi(7P), ip(7P), ip6(7P)
573 585
|
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX