• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/dsi/
1/*
2 * $Id: dsi_getstat.c,v 1.4 2005-09-07 15:27:29 didg Exp $
3 *
4 * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
5 * All rights reserved. See COPYRIGHT.
6 */
7
8#ifdef HAVE_CONFIG_H
9#include "config.h"
10#endif /* HAVE_CONFIG_H */
11
12#include <stdio.h>
13#include <string.h>
14
15#include <atalk/dsi.h>
16#include <netatalk/endian.h>
17
18/* return the status and then delete the connection. most of the
19 * fields are already set. */
20void dsi_getstatus(DSI *dsi)
21{
22  dsi->header.dsi_flags = DSIFL_REPLY;
23  /*dsi->header.dsi_command = DSIFUNC_STAT;*/
24  dsi->header.dsi_code = dsi->header.dsi_reserved = 0;
25
26  memcpy(dsi->commands, dsi->status, dsi->statuslen);
27  dsi->cmdlen = dsi->statuslen;
28  dsi_send(dsi);
29}
30