[rtems commit] PR2161: Set the source port to SYSLOG in the syslog socket.
Chris Johns
chrisj at rtems.org
Tue Dec 10 01:30:55 UTC 2013
Module: rtems
Branch: master
Commit: 663ffd0e7c3f40398280e730727d44a5e06e2e1a
Changeset: http://git.rtems.org/rtems/commit/?id=663ffd0e7c3f40398280e730727d44a5e06e2e1a
Author: Chris Johns <chrisj at rtems.org>
Date: Tue Dec 10 12:37:05 2013 +1100
PR2161: Set the source port to SYSLOG in the syslog socket.
---
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 10a75a6..c0e7270 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);
More information about the vc
mailing list