[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] Standard ports using IPPORT_*.
From: |
Mats Erik Andersson |
Subject: |
[bug-inetutils] Standard ports using IPPORT_*. |
Date: |
Wed, 11 Jan 2012 02:56:30 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Dear all,
I have just observe that depending on library vendor,
the file <netinet/in.h> might declare IPPORT_* as
"enum" as Glibc does, or as macro, as OpenSolaris does.
Presently, only IPPORT_RESERVED is in use by us, namely
in ftpd, libinetutils, rlogind, rshd, and traceroute.
It does make sense to use the values such as IPPORT_FTP,
IPPORT_CMDSERVER, IPPORT_LOGINSERVER, and IPPORT_SYSLOG
as fallback values when starting the corresponding services,
but code like
#ifdef IPPORT_FTP
# define DEFPORT IPPORT_FTP
#else
# define DEFPORT 21
#endif
is useless since Glibc uses "enum { IPPORT_FTP = 21 }".
Could we develop a configuration test to determine
the presence of the relevant constants?
The individual constants are not always present: IPPORT_SYSLOG
is missing in Glibc, but is present in SunOS.
Regards,
Mats
- [bug-inetutils] Standard ports using IPPORT_*.,
Mats Erik Andersson <=