Deleted Added
full compact
hast.h (210883) hast.h (211882)
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sbin/hastd/hast.h 210883 2010-08-05 19:08:54Z pjd $
29 * $FreeBSD: head/sbin/hastd/hast.h 211882 2010-08-27 14:26:37Z pjd $
30 */
31
32#ifndef _HAST_H_
33#define _HAST_H_
34
35#include <sys/queue.h>
36#include <sys/socket.h>
37

--- 5 unchanged lines hidden (view full) ---

43#include <pthread.h>
44#include <stdbool.h>
45#include <stdint.h>
46
47#include <activemap.h>
48
49#include "proto.h"
50
30 */
31
32#ifndef _HAST_H_
33#define _HAST_H_
34
35#include <sys/queue.h>
36#include <sys/socket.h>
37

--- 5 unchanged lines hidden (view full) ---

43#include <pthread.h>
44#include <stdbool.h>
45#include <stdint.h>
46
47#include <activemap.h>
48
49#include "proto.h"
50
51#define HAST_PROTO_VERSION 0
51/*
52 * Version history:
53 * 0 - initial version
54 * 1 - HIO_KEEPALIVE added
55 */
56#define HAST_PROTO_VERSION 1
52
53#define EHAST_OK 0
54#define EHAST_NOENTRY 1
55#define EHAST_INVALID 2
56#define EHAST_NOMEMORY 3
57#define EHAST_UNIMPLEMENTED 4
58
59#define HASTCTL_CMD_UNKNOWN 0

--- 9 unchanged lines hidden (view full) ---

69#define HAST_SYNCSRC_PRIMARY 1
70#define HAST_SYNCSRC_SECONDARY 2
71
72#define HIO_UNDEF 0
73#define HIO_READ 1
74#define HIO_WRITE 2
75#define HIO_DELETE 3
76#define HIO_FLUSH 4
57
58#define EHAST_OK 0
59#define EHAST_NOENTRY 1
60#define EHAST_INVALID 2
61#define EHAST_NOMEMORY 3
62#define EHAST_UNIMPLEMENTED 4
63
64#define HASTCTL_CMD_UNKNOWN 0

--- 9 unchanged lines hidden (view full) ---

74#define HAST_SYNCSRC_PRIMARY 1
75#define HAST_SYNCSRC_SECONDARY 2
76
77#define HIO_UNDEF 0
78#define HIO_READ 1
79#define HIO_WRITE 2
80#define HIO_DELETE 3
81#define HIO_FLUSH 4
82#define HIO_KEEPALIVE 5
77
78#define HAST_TIMEOUT 5
79#define HAST_CONFIG "/etc/hast.conf"
80#define HAST_CONTROL "/var/run/hastctl"
81#define HASTD_PORT 8457
82#define HASTD_LISTEN "tcp4://0.0.0.0:8457"
83#define HASTD_PIDFILE "/var/run/hastd.pid"
84

--- 109 unchanged lines hidden ---
83
84#define HAST_TIMEOUT 5
85#define HAST_CONFIG "/etc/hast.conf"
86#define HAST_CONTROL "/var/run/hastctl"
87#define HASTD_PORT 8457
88#define HASTD_LISTEN "tcp4://0.0.0.0:8457"
89#define HASTD_PIDFILE "/var/run/hastd.pid"
90

--- 109 unchanged lines hidden ---