Changeset 7e3756604e3e9391db90dab813d324308ffee936

Show
Ignore:
Timestamp:
03/06/08 22:59:49 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1204844389 +0000
git-parent:

[0dee06906f453d56283aac4443996041f014cfdf]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1204844389 +0000
Message:

This wasn't working on OpenBSD.. it is now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/stratcon_jlog_streamer.c

    rae5b0cb r7e37566  
    382382    ctx->remote_len = sizeof(*s); 
    383383  } 
     384  else if(family == AF_INET) { 
     385    struct sockaddr_in *s = &ctx->r.remote_in; 
     386    s->sin_family = family; 
     387    s->sin_port = htons(port); 
     388    memcpy(&s->sin_addr, &a, sizeof(struct in_addr)); 
     389    ctx->remote_len = sizeof(*s); 
     390  } 
    384391  else { 
    385392    struct sockaddr_in6 *s = &ctx->r.remote_in6; 
     
    387394    s->sin6_port = htons(port); 
    388395    memcpy(&s->sin6_addr, &a, sizeof(a)); 
    389     ctx->remote_len = (family == AF_INET) ? 
    390                         sizeof(struct sockaddr_in) : sizeof(*s); 
     396    ctx->remote_len = sizeof(*s); 
    391397  } 
    392398