]> arthur.barton.de Git - netatalk.git/blob - libatalk/dsi/dsi_getstat.c
9758ddebe2680ca5dc73008e7b0ef145ceb68abd
[netatalk.git] / libatalk / dsi / dsi_getstat.c
1 /*
2  * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
3  * All rights reserved. See COPYRIGHT.
4  */
5
6 #ifdef HAVE_CONFIG_H
7 #include "config.h"
8 #endif
9
10 #include <stdio.h>
11 #include <string.h>
12
13 #include <atalk/dsi.h>
14 #include <netatalk/endian.h>
15
16 /* return the status and then delete the connection. most of the
17  * fields are already set. */
18 void dsi_getstatus(DSI *dsi)
19 {
20   dsi->header.dsi_flags = DSIFL_REPLY;
21   /*dsi->header.dsi_command = DSIFUNC_STAT;*/
22   
23   memcpy(dsi->commands, dsi->status, dsi->statuslen);
24   dsi->cmdlen = dsi->statuslen; 
25   dsi_send(dsi);
26 }