Subject: Re: Controlling source IP address
To: None <netbsd-help@NetBSD.ORG>
From: Christos Zoulas <christos@deshaw.com>
List: netbsd-help
Date: 09/18/1996 21:00:25
Try;


{
    char ipr[] = "205.206.248.72" ;
    struct sockaddr_in myadr;

    memset(&myadr, 0, sizeof(myaddr));
    myadr.sin_family = AF_INET;
    myadr.sin_port = ???;	/* You need to specify the port */
    inet_aton(ipr, &myadr.sin_addr);

    r= bind(s, (struct sockaddr *) &myadr, sizeof(myadr));

}

christos