YIPUnion(3) IP address structures

STRUCTURES

typedef union {


        u_int32_t whole;

        u_int8_t charaddr[4];

} YIPUnion;

To specify the address 127.0.0.1, use:


        YIPUnion ip;


        ip.charaddr[0] = 127;

        ip.charaddr[1] = 0;

        ip.charaddr[2] = 0;

        ip.charaddr[3] = 1;