3 * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
4 * All rights reserved. See COPYRIGHT.
9 #endif /* HAVE_CONFIG_H */
13 #include <arpa/inet.h>
15 #include <atalk/dsi.h>
17 /* return the status and then delete the connection. most of the
18 * fields are already set. */
19 void dsi_getstatus(DSI *dsi)
21 dsi->header.dsi_flags = DSIFL_REPLY;
22 /*dsi->header.dsi_command = DSIFUNC_STAT;*/
23 dsi->header.dsi_data.dsi_code = dsi->header.dsi_reserved = 0;
25 memcpy(dsi->commands, dsi->status, dsi->statuslen);
26 dsi->cmdlen = dsi->statuslen;