public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* getent services enumeration glitch
@ 2015-08-18  9:41 Mark Geisert
  2015-08-18 11:24 ` Corinna Vinschen
  0 siblings, 1 reply; 13+ messages in thread
From: Mark Geisert @ 2015-08-18  9:41 UTC (permalink / raw)
  To: cygwin

There is a glitch when getent enumerates all services; it shows an incorrect
port number.  Providing a service name on invocation shows the correct port
number.  Examples:

$ getent services man
man                   9535/tcp

$ getent services | grep man
man                   16165/tcp

It looks like when all services are enumerated there is an extra or missing
byte swap call to htons() or ntohs().  This can be observed by comparing the
hex values of the two port numbers shown above, giving 0x253F and 0x3F25.

..mark


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-08-20 13:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-18  9:41 getent services enumeration glitch Mark Geisert
2015-08-18 11:24 ` Corinna Vinschen
2015-08-18 17:27   ` Mark Geisert
2015-08-18 18:18     ` Corinna Vinschen
2015-08-18 18:43   ` Warren Young
2015-08-18 19:01     ` Corinna Vinschen
2015-08-18 21:49   ` Buchbinder, Barry (NIH/NIAID) [E]
2015-08-18 23:43     ` Mark Geisert
2015-08-19  7:46       ` [SILVERY GOLDSTAR] " Corinna Vinschen
2015-08-19 12:23         ` Andrew Schulman
2015-08-19 16:27           ` Corinna Vinschen
2015-08-19 16:50           ` Andrey Repin
2015-08-20 13:23             ` Andrew Schulman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).