#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | INIT_PASSWD "NBDMAGIC" |
#define | INFO(a) do { } while(0) |
#define | G_GNUC_NORETURN |
#define | htonll ntohll |
#define | NBD_FLAG_HAS_FLAGS (1 << 0) |
#define | NBD_FLAG_READ_ONLY (1 << 1) |
Functions | |
void | setmysockopt (int sock) |
void | err (const char *s) G_GNUC_NORETURN |
void | logging (void) |
u64 | ntohll (u64 a) |
Variables | |
u64 | cliserv_magic = 0x00420281861253LL |
#define htonll ntohll |
Definition at line 140 of file cliserv.h.
Referenced by negotiate(), and throughput_test().
#define INFO | ( | a | ) | do { } while(0) |
Definition at line 62 of file cliserv.h.
Referenced by setmysockopt().
#define INIT_PASSWD "NBDMAGIC" |
Definition at line 60 of file cliserv.h.
Referenced by negotiate(), and setup_connection().
#define NBD_FLAG_HAS_FLAGS (1 << 0) |
Definition at line 143 of file cliserv.h.
Referenced by negotiate().
#define NBD_FLAG_READ_ONLY (1 << 1) |
Definition at line 144 of file cliserv.h.
Referenced by negotiate(), and setsizes().
void err | ( | const char * | s | ) |
Definition at line 92 of file cliserv.h.
Referenced by copyonwrite_prepare(), daemonize(), finish_sock(), main(), mainloop(), myseek(), negotiate(), opennet(), parse_cfile(), readit(), serve_err(), serveloop(), set_peername(), set_timeout(), setsizes(), setup_connection(), setup_serve(), setupexport(), size_autodetect(), throughput_test(), and writeit().
void logging | ( | void | ) |
u64 ntohll | ( | u64 | a | ) |
Definition at line 132 of file cliserv.h.
Referenced by mainloop(), negotiate(), setup_connection(), and throughput_test().
void setmysockopt | ( | int | sock | ) |
Definition at line 64 of file cliserv.h.
References INFO.
Referenced by opennet(), serveconnection(), and setup_connection().
u64 cliserv_magic = 0x00420281861253LL |
Definition at line 59 of file cliserv.h.
Referenced by negotiate(), and setup_connection().