3 * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
4 * All rights reserved. See COPYRIGHT.
9 #endif /* HAVE_CONFIG_H */
13 #include <arpa/inet.h>
15 #include <atalk/dsi.h>
17 void dsi_close(DSI *dsi)
19 /* server generated. need to set all the fields. */
20 if (!(dsi->flags & DSI_SLEEPING) && !(dsi->flags & DSI_DISCONNECTED)) {
21 dsi->header.dsi_flags = DSIFL_REQUEST;
22 dsi->header.dsi_command = DSIFUNC_CLOSE;
23 dsi->header.dsi_requestID = htons(dsi_serverID(dsi));
24 dsi->header.dsi_code = dsi->header.dsi_reserved = htonl(0);
27 dsi->proto_close(dsi);