do_h() {
do_hdr
cat <<EOF
-#ifndef POSTLICYD_TOKENS_H
-#define POSTLICYD_TOKENS_H
+#ifndef PFIXTOOLS_TOKENS_H
+#define PFIXTOOLS_TOKENS_H
typedef enum postlicyd_token {
PTK_UNKNOWN = -1,
}
do_c() {
- cat <<EOF | gperf -m16 -l -t -C -F",0" -Ntokenize_aux
+ cat <<EOF | gperf -m16 -l -t -C -F",0" -Ntokenize_aux | \
+ sed -e '/__gnu_inline__/d;s/\<\(__\|\)inline\>//g'
%{
`do_hdr`
############ Put tokens here ############
# postfix 2.1+
## request
+## protocol_name
## protocol_state
-## protocol_esmtp
## helo_name
## queue_id
## sender
## recipient_count
## client_address
## client_name
-## rclient_name
+## reverse_client_name
## instance
#
# postfix 2.2+
## encryption_cipher
## encryption_keysize
## etrn_domain
+#
+# request value
+## smtpd_access_policy
+#
+# protocol_name values
+## SMTP
+## ESMTP
+#
+# protocol_state values
+## CONNECT
+## EHLO
+## HELO
+## MAIL
+## RCPT
+## DATA
+## END-OF-MESSAGE
+## VRFY
+## ETRN