httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reid" <dr...@jetnet.co.uk>
Subject Re: cvs commit: apache-2.0/src/lib/apr/include apr_network_io.h
Date Fri, 10 Nov 2000 18:54:09 GMT
> Do what? They're at the same address!!!

FreeBSD 4...

/*
 * Socket address, internet style.
 */
struct sockaddr_in {
        u_char  sin_len;
        u_char  sin_family;
        u_short sin_port;
        struct  in_addr sin_addr;
        char    sin_zero[8];
};

struct sockaddr_in6 {
        u_char  sin6_len;               /* length of this
struct(sa_family_t)*/
        u_char  sin6_family;            /* AF_INET6 (sa_family_t) */
        u_int16_t       sin6_port;      /* Transport layer port #
(in_port_t)*/
        u_int32_t       sin6_flowinfo;  /* IP6 flow information */
        struct  in6_addr        sin6_addr;      /* IP6 address */
        u_int32_t       sin6_scope_id;  /* intface scope id */
};

The port and family are (as Jeff pointed out) but the actual address
structures aren't...

david


Mime
View raw message