| 1 |
/* |
| 2 |
Copyright (C) 2001-2026 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
This file is part of GNU Inetutils. |
| 5 |
|
| 6 |
GNU Inetutils is free software: you can redistribute it and/or modify |
| 7 |
it under the terms of the GNU General Public License as published by |
| 8 |
the Free Software Foundation, either version 3 of the License, or (at |
| 9 |
your option) any later version. |
| 10 |
|
| 11 |
GNU Inetutils is distributed in the hope that it will be useful, but |
| 12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
General Public License for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with this program. If not, see `http://www.gnu.org/licenses/'. */ |
| 18 |
|
| 19 |
/* Written by Marcus Brinkmann. */ |
| 20 |
|
| 21 |
#ifndef IFCONFIG_SYSTEM_SOLARIS_H |
| 22 |
# define IFCONFIG_SYSTEM_SOLARIS_H |
| 23 |
|
| 24 |
# include "../printif.h" |
| 25 |
# include "../options.h" |
| 26 |
# include <sys/sockio.h> |
| 27 |
|
| 28 |
|
| 29 |
/* XXX: Gross. Have autoconf check and put in system.h or so. |
| 30 |
The correctness is documented in Solaris 2.7, if_tcp(7p). |
| 31 |
At least OpenSolaris and later systems do provide ifr_mtu. */ |
| 32 |
|
| 33 |
# ifndef HAVE_STRUCT_IFREQ_IFR_MTU |
| 34 |
# define ifr_mtu ifr_metric |
| 35 |
# endif/* !HAVE_STRUCT_IFREQ_IFR_MTU */ |
| 36 |
|
| 37 |
|
| 38 |
/* Option support. */ |
| 39 |
|
| 40 |
struct system_ifconfig |
| 41 |
{ |
| 42 |
int valid; |
| 43 |
}; |
| 44 |
|
| 45 |
|
| 46 |
/* Output format support. */ |
| 47 |
|
| 48 |
# define SYSTEM_FORMAT_HANDLER \ |
| 49 |
{"solaris", fh_nothing}, |
| 50 |
|
| 51 |
#endif |