openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/msg.c
rsRetVal msgSetFromSockinfo(smsg_t * pThis, struct sockaddr_storage * sa)
    {
        DEFiRet;
        assert(pThis->rcvFrom.pRcvFrom == NULL);

        CHKmalloc(pThis->rcvFrom.pfrominet =
                      malloc(sizeof(struct sockaddr_storage)));
        memcpy(pThis->rcvFrom.pfrominet, sa, sizeof(struct sockaddr_storage));

    finalize_it:
        RETiRet;
    }
/* Set the pfrominet socket store, so that we can obtain the peer at some
     * later time. Note that we do not check if pRcvFrom is already set, so this
     * function must only be called during message creation.
     * NOTE: msgFlags is NOT set. While this is somewhat a violation of layers,
     * it is done because it gains us some performance. So the caller must make
     * sure the message flags are properly maintained. For all current callers,
     * this is always the case and without extra effort required.
     * rgerhards, 2009-11-17
     */
Set the pfrominet socket store, so that we can obtain the peer at some
later time. Note that we do not check if pRcvFrom is already set, so this
function must only be called during message creation.
NOTE: msgFlags is NOT set. While this is somewhat a violation of layers,
it is done because it gains us some performance. So the caller must make
sure the message flags are properly maintained. For all current callers,
this is always the case and without extra effort required.
Set the pfrominet socket store so that we can obtain the peer at some later time . Note that we do not check if pRcvFrom is already set so this function must only be called during message creation . NOTE : msgFlags is NOT set . While this is somewhat a violation of layers it is done because it gains us some performance . So the caller must make sure the message flags are properly maintained . For all current callers this is always the case and without extra effort required .
rsRetVal msgSetFromSockinfo(smsg_t * pThis, struct sockaddr_storage * sa)
    {
        DEFiRet;
        assert(pThis->rcvFrom.pRcvFrom == NULL);
        CHKmalloc(pThis->rcvFrom.pfrominet =
                      malloc(sizeof(struct sockaddr_storage)));
        memcpy(pThis->rcvFrom.pfrominet, sa, sizeof(struct sockaddr_storage));
    finalize_it:
        RETiRet;
    }
rsRetVal msgSetFromSockinfo ( smsg_t * pThis , struct sockaddr_storage * sa ) { DEFiRet ; assert ( pThis -> rcvFrom . pRcvFrom == NULL ) ; CHKmalloc ( pThis -> rcvFrom . pfrominet = malloc ( sizeof ( struct sockaddr_storage ) ) ) ; memcpy ( pThis -> rcvFrom . pfrominet , sa , sizeof ( struct sockaddr_storage ) ) ; finalize_it : RETiRet ; }
Set the pfrominet socket store, so that we can obtain the peer at some
 later time.
Set the pfrominet socket store so that we can obtain the peer at some later time .