summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/token.l
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-03-06 22:56:14 +0000
committerpjd <pjd@FreeBSD.org>2011-03-06 22:56:14 +0000
commitf56b79fee1b3a270c7df9a507133ade99dc1ab2a (patch)
tree6b872900bed0ce399d58f54f1a16e39911c78e4b /sbin/hastd/token.l
parent75dda0ff36fbb94f84d2478dec2bbe1ce89b3c1b (diff)
downloadFreeBSD-src-f56b79fee1b3a270c7df9a507133ade99dc1ab2a.zip
FreeBSD-src-f56b79fee1b3a270c7df9a507133ade99dc1ab2a.tar.gz
Allow to checksum on-the-wire data using either CRC32 or SHA256.
MFC after: 2 weeks
Diffstat (limited to 'sbin/hastd/token.l')
-rw-r--r--sbin/hastd/token.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/hastd/token.l b/sbin/hastd/token.l
index 05d600c..c42c130 100644
--- a/sbin/hastd/token.l
+++ b/sbin/hastd/token.l
@@ -1,6 +1,7 @@
%{
/*-
* Copyright (c) 2009-2010 The FreeBSD Foundation
+ * Copyright (c) 2011 Pawel Jakub Dawidek <pawel@dawidek.net>
* All rights reserved.
*
* This software was developed by Pawel Jakub Dawidek under sponsorship from
@@ -48,6 +49,7 @@ control { DP; return CONTROL; }
listen { DP; return LISTEN; }
port { DP; return PORT; }
replication { DP; return REPLICATION; }
+checksum { DP; return CHECKSUM; }
timeout { DP; return TIMEOUT; }
exec { DP; return EXEC; }
resource { DP; return RESOURCE; }
@@ -58,6 +60,9 @@ on { DP; return ON; }
fullsync { DP; return FULLSYNC; }
memsync { DP; return MEMSYNC; }
async { DP; return ASYNC; }
+none { DP; return NONE; }
+crc32 { DP; return CRC32; }
+sha256 { DP; return SHA256; }
[0-9]+ { DP; yylval.num = atoi(yytext); return NUM; }
[a-zA-Z0-9\.\-_/\:]+ { DP; yylval.str = strdup(yytext); return STR; }
\{ { DP; depth++; return OB; }
OpenPOWER on IntegriCloud