bai_socktype
return bai->bai_socktype;
switch (bai->bai_socktype) {
(*bai)->bai_socktype = socktype;
int bai_socktype;