diff options
author | Chris Johns <chrisj@rtems.org> | 2013-12-10 12:37:05 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-12-10 12:37:05 +1100 |
commit | 663ffd0e7c3f40398280e730727d44a5e06e2e1a (patch) | |
tree | 92c1704ca3d74ac1226e655d40d6c76c6f471eaa /cpukit/libnetworking/lib | |
parent | PR2158: Add support for dup2. (diff) | |
download | rtems-663ffd0e7c3f40398280e730727d44a5e06e2e1a.tar.bz2 |
PR2161: Set the source port to SYSLOG in the syslog socket.
Diffstat (limited to 'cpukit/libnetworking/lib')
-rw-r--r-- | cpukit/libnetworking/lib/syslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libnetworking/lib/syslog.c b/cpukit/libnetworking/lib/syslog.c index 10a75a612b..c0e7270b77 100644 --- a/cpukit/libnetworking/lib/syslog.c +++ b/cpukit/libnetworking/lib/syslog.c @@ -142,7 +142,7 @@ openlog (const char *ident, int logstat, int logfac) */ myAddress.sin_family = AF_INET; myAddress.sin_addr.s_addr = INADDR_ANY; - myAddress.sin_port = 0; + myAddress.sin_port = htons (SYSLOG_PORT);; memset (myAddress.sin_zero, '\0', sizeof myAddress.sin_zero); if (bind (LogFd, (struct sockaddr *)&myAddress, sizeof (myAddress)) < 0) { close (LogFd); |