Changeset 663ffd0e in rtems


Ignore:
Timestamp:
12/10/13 01:37:05 (10 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, 5, master
Children:
798b8da
Parents:
6122cb6a
Message:

PR2161: Set the source port to SYSLOG in the syslog socket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/lib/syslog.c

    r6122cb6a r663ffd0e  
    143143        myAddress.sin_family = AF_INET;
    144144        myAddress.sin_addr.s_addr = INADDR_ANY;
    145         myAddress.sin_port = 0;
     145        myAddress.sin_port = htons (SYSLOG_PORT);;
    146146        memset (myAddress.sin_zero, '\0', sizeof myAddress.sin_zero);
    147147        if (bind (LogFd, (struct sockaddr *)&myAddress, sizeof (myAddress)) < 0) {
Note: See TracChangeset for help on using the changeset viewer.