2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
5 * Permission to use, copy, modify, and distribute this software and
6 * its documentation for any purpose and without fee is hereby granted,
7 * provided that the above copyright notice appears in all copies and
8 * that both that copyright notice and this permission notice appear
9 * in supporting documentation, and that the name of The University
10 * of Michigan not be used in advertising or publicity pertaining to
11 * distribution of the software without specific, written prior
12 * permission. This software is supplied as is without expressed or
13 * implied warranties of any kind.
15 * Research Systems Unix Group
16 * The University of Michigan
18 * 535 W. William Street
21 * netatalk@itd.umich.edu
30 #include <sys/types.h>
33 #include <sys/socket.h>
35 #include <netatalk/at.h>
36 #include <atalk/atp.h>
37 #include <atalk/asp.h>
42 struct atp_block atpb;
43 struct iovec iov[ 1 ];
46 memset(asp->commands, 0, sizeof(u_int32_t));
48 atpb.atp_saddr = &asp->asp_sat;
49 iov[ 0 ].iov_base = asp->commands;
50 iov[ 0 ].iov_len = sizeof(u_int32_t);
51 atpb.atp_sresiov = iov;
52 atpb.atp_sresiovcnt = 1;
54 if (atp_sresp( asp->asp_atp, &atpb ) < 0)
57 if (atp_close( asp->asp_atp ) < 0)