]> arthur.barton.de Git - netatalk.git/blob - libatalk/dsi/dsi_getstat.c
268caf44cab94e3ce7ca1ca3bb190da4713d0b00
[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 #include <stdio.h>
7 #include <string.h>
8
9 #include <atalk/dsi.h>
10 #include <netatalk/endian.h>
11
12 /* return the status and then delete the connection. most of the
13  * fields are already set. */
14 void dsi_getstatus(DSI *dsi)
15 {
16   dsi->header.dsi_flags = DSIFL_REPLY;
17   /*dsi->header.dsi_command = DSIFUNC_STAT;*/
18   
19   memcpy(dsi->commands, dsi->status, dsi->statuslen);
20   dsi->cmdlen = dsi->statuslen; 
21   dsi_send(dsi);
22 }