2 * $Id: dsi_close.c,v 1.4 2003-03-12 15:07:06 didg Exp $
4 * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
5 * All rights reserved. See COPYRIGHT.
10 #endif /* HAVE_CONFIG_H */
14 #include <arpa/inet.h>
16 #include <atalk/dsi.h>
18 void dsi_close(DSI *dsi)
20 /* server generated. need to set all the fields. */
21 if (!(dsi->flags & DSI_SLEEPING) && !(dsi->flags & DSI_DISCONNECTED)) {
22 dsi->header.dsi_flags = DSIFL_REQUEST;
23 dsi->header.dsi_command = DSIFUNC_CLOSE;
24 dsi->header.dsi_requestID = htons(dsi_serverID(dsi));
25 dsi->header.dsi_code = dsi->header.dsi_reserved = htonl(0);
28 dsi->proto_close(dsi);