diff options
author | pjd <pjd@FreeBSD.org> | 2010-08-05 17:56:41 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-08-05 17:56:41 +0000 |
commit | d808f64f394be4d3083d37ff9be20e7e083b35c2 (patch) | |
tree | 48b475c8b7ae21f32d97a4a4382177b6c20ca836 /sbin/hastd/proto_impl.h | |
parent | 956b0b5c7f6bf6165ab1c6fcdec2282fa03376f3 (diff) | |
download | FreeBSD-src-d808f64f394be4d3083d37ff9be20e7e083b35c2.zip FreeBSD-src-d808f64f394be4d3083d37ff9be20e7e083b35c2.tar.gz |
Add an argument to the proto_register() function which allows protocol to
declare it is the default and be placed at the end of the queue so it is
checked last.
MFC after: 1 month
Diffstat (limited to 'sbin/hastd/proto_impl.h')
-rw-r--r-- | sbin/hastd/proto_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/hastd/proto_impl.h b/sbin/hastd/proto_impl.h index ea6548d..f0dfadd 100644 --- a/sbin/hastd/proto_impl.h +++ b/sbin/hastd/proto_impl.h @@ -64,10 +64,10 @@ struct hast_proto { hp_local_address_t *hp_local_address; hp_remote_address_t *hp_remote_address; hp_close_t *hp_close; - LIST_ENTRY(hast_proto) hp_next; + TAILQ_ENTRY(hast_proto) hp_next; }; -void proto_register(struct hast_proto *proto); +void proto_register(struct hast_proto *proto, bool isdefault); int proto_common_send(int fd, const unsigned char *data, size_t size); int proto_common_recv(int fd, unsigned char *data, size_t size); |