Thanks everyone, it's merged now. Will be part of 7.3.12.
Rainer

On Mon, 2013-01-21 at 15:20 +0100, Martin Carpenter wrote:
> On Thu, 2013-01-17 at 07:53 -0500, John Lyman wrote:
> > Thanks, I am able to compile now.  Let me know when you find a function
> > test and I can test it too.
> 
> Actually... I don't think it's ever used! getifaddrs() is called in
> getIFIPAddr() in runtime/net.c:
> 
>     static rsRetVal
>     getIFIPAddr(uchar *szif, int family, uchar *pszbuf, int lenBuf)
>     {
>         ...
> 
>         if(getifaddrs(&ifaddrs) != 0) {
>             ABORT_FINALIZE(RS_RET_ERR);
>         }
> 
> but getIFIPAddr() is never invoked. A pointer to it is assigned to the
> interface struct, and that's it:
> 
>     martin $ ack-grep -a 'getifaddrs\('
>     compat/ifaddrs.h
>     76:extern int getifaddrs(struct ifaddrs **);
> 
>     compat/getifaddrs.c
>     49:getifaddrs(struct ifaddrs **ifap)
> 
>     runtime/net.c
>     1506:     if(getifaddrs(&ifaddrs) != 0) {
>     martin $ 
>     martin $ ack-grep -a getIFIPAddr 
>     runtime/net.c
>     1499:getIFIPAddr(uchar *szif, int family, uchar *pszbuf, int lenBuf)
>     1569:     pIf->GetIFIPAddr = getIFIPAddr;
>     martin $ 
> 
> Yes?
> 
> 
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
> sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T 
> LIKE THAT.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to