From 99db256e992591ab5cd03d77adcd4ad8d8a16a7e Mon Sep 17 00:00:00 2001
From: Anders Svensson 
Date: Thu, 31 Aug 2017 08:57:57 +0200
Subject: Tweak {decode_format, false} semantics
Represent the decoded message by its atom-valued name in
diameter_packet.msg, which makes trace much more readable. A
diameter_avp.value is untouched (ie. undefined): the AVP name is already
in the name field.
---
 lib/diameter/doc/src/diameter.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'lib/diameter/doc/src')
diff --git a/lib/diameter/doc/src/diameter.xml b/lib/diameter/doc/src/diameter.xml
index b7be184058..c31929c3f0 100644
--- a/lib/diameter/doc/src/diameter.xml
+++ b/lib/diameter/doc/src/diameter.xml
@@ -810,8 +810,8 @@ dictionary file in question.
 If list or map then a [Name | Avps] pair where
 Avps is either a list of AVP name/values pairs or a map keyed on
 AVP names respectively.
-If false then the representation is omitted and msg and
-value fields are set to false.
+If false then the representation is as the atom-value message
+name, or undefined for a Grouped AVP.
 See also &codec_message;.
 
 
-- 
cgit v1.2.3
From 36a64980960077558dcfd0e181a65753856f331c Mon Sep 17 00:00:00 2001
From: Anders Svensson 
Date: Thu, 31 Aug 2017 09:53:45 +0200
Subject: Rename decode_format false to none
Which reads better and makes it easier to distinguish this false from
others.
---
 lib/diameter/doc/src/diameter.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'lib/diameter/doc/src')
diff --git a/lib/diameter/doc/src/diameter.xml b/lib/diameter/doc/src/diameter.xml
index c31929c3f0..0169afb619 100644
--- a/lib/diameter/doc/src/diameter.xml
+++ b/lib/diameter/doc/src/diameter.xml
@@ -799,7 +799,7 @@ be matched by corresponding &capability; configuration, of
 
 
 
-{decode_format, record | list | map | false}
+{decode_format, record | list | map | none}
 - 
 
 The format of decoded messages and grouped AVPs in the msg field
@@ -808,10 +808,10 @@ records respectively.
 If record then a record whose definition is generated from the
 dictionary file in question.
 If list or map then a [Name | Avps] pair where
-Avps is either a list of AVP name/values pairs or a map keyed on
+Avps is a list of AVP name/values pairs or a map keyed on
 AVP names respectively.
-If false then the representation is as the atom-value message
-name, or undefined for a Grouped AVP.
+If none then the atom-value message name, or undefined
+for a Grouped AVP.
 See also &codec_message;.
 
 
-- 
cgit v1.2.3
From 1717f3214a1a41950c0da9ca95c89824c4c9898f Mon Sep 17 00:00:00 2001
From: Anders Svensson 
Date: Thu, 31 Aug 2017 10:34:14 +0200
Subject: Fix decode_format doc oversights
diameter_codec(3) referred only to the record format in places. The
configurable format was added in commits 722fa415 and then 55e65b26.
---
 lib/diameter/doc/src/diameter_codec.xml | 18 +++++++++++-------
 lib/diameter/doc/src/seealso.ent        |  1 +
 2 files changed, 12 insertions(+), 7 deletions(-)
(limited to 'lib/diameter/doc/src')
diff --git a/lib/diameter/doc/src/diameter_codec.xml b/lib/diameter/doc/src/diameter_codec.xml
index 0846334d23..5124b49484 100644
--- a/lib/diameter/doc/src/diameter_codec.xml
+++ b/lib/diameter/doc/src/diameter_codec.xml
@@ -4,7 +4,10 @@
   'diameter_dict(4)'>
   diameter_dict(4)'>
-  
+  decode format'>
+
+
   
   %also;
   %here;
@@ -145,7 +148,8 @@ question.
 
 The decoded value of an AVP.
 Will be undefined on decode if the data bytes could
-not be decoded or the AVP is unknown.
+not be decoded, the AVP is unknown, or if the &decode_format; is
+none.
 The type of a decoded value is as document in &types;.
  
 
@@ -243,8 +247,7 @@ Equivalently, a message can also be encoded as a list whose head is
 the atom-valued message name (as specified in the relevant dictionary
 file) and whose tail is either a list of AVP name/values
 pairs or a map with values keyed on AVP names.
-The format at decode is determined by &mod_service_opt;
-decode_format.
+The format at decode is determined by &mod_decode_format;.
 Any of the formats is accepted at encode.
 
 
@@ -288,15 +291,16 @@ value other than undefined.
 - 
 
 The incoming/outgoing message.
-For an incoming message, a record if the message can be
-decoded in a non-relay application, undefined otherwise.
+For an incoming message, a term corresponding to the configured
+&decode_format; if the message can be decoded in a non-relay
+application, undefined otherwise.
 For an outgoing message, setting a [&header; | &avp;] list is
 equivalent to setting the header and avps fields to the
 corresponding values.
 
 
 
-A record-valued msg field does not imply an absence of
+A value in the msg field does not imply an absence of
 decode errors.
 The errors field should also be examined.
 
diff --git a/lib/diameter/doc/src/seealso.ent b/lib/diameter/doc/src/seealso.ent
index ef6af1a3d0..c5a53670d0 100644
--- a/lib/diameter/doc/src/seealso.ent
+++ b/lib/diameter/doc/src/seealso.ent
@@ -72,6 +72,7 @@ significant.
 watchdog_timer'>
 
 diameter:service_opt() string_decode'>
+diameter:service_opt() decode_format'>
 
 
 
-- 
cgit v1.2.3