soattach
error = soattach(so, proto, td, NULL);
if (soattach(so, 0, NULL, head) != 0) {
if (soattach(so, 0, NULL, head)) {