• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/netatalk-3.0.5/libatalk/dsi/
1/*
2 *
3 * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
4 * All rights reserved. See COPYRIGHT.
5 */
6
7#ifdef HAVE_CONFIG_H
8#include "config.h"
9#endif /* HAVE_CONFIG_H */
10
11#include <stdio.h>
12#include <string.h>
13#include <arpa/inet.h>
14
15#include <atalk/dsi.h>
16
17/* return the status and then delete the connection. most of the
18 * fields are already set. */
19void dsi_getstatus(DSI *dsi)
20{
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;
24
25  memcpy(dsi->commands, dsi->status, dsi->statuslen);
26  dsi->cmdlen = dsi->statuslen;
27  dsi_send(dsi);
28}
29