interface: clarify the quoting for advanced "interfaces" options
authorStefan Metzmacher <metze@samba.org>
Thu, 7 May 2020 10:04:00 +0000 (12:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 7 May 2020 14:44:40 +0000 (14:44 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/interface.c

index 55fa85349769443aa25d5fca09e78ebf54135f06..35cfc5eee62bfaa5f7cbd91977cea2db70aae2ae 100644 (file)
@@ -419,7 +419,11 @@ static void parse_extra_info(char *key, uint64_t *speed, uint32_t *cap,
  Additional information for an interface can be specified with
  this extended syntax:
 
-    interface[;key1=value1[,key2=value2[...]]]
+    "interface[;key1=value1[,key2=value2[...]]]"
+
+ Note: The double quoting is important for the
+       smb.conf parser! Otherwise the ';' and ',' separates
+       two interfaces.
 
  where
  - keys known: 'speed', 'capability', 'if_index'
@@ -429,6 +433,8 @@ static void parse_extra_info(char *key, uint64_t *speed, uint32_t *cap,
    these indexes should not conicide with indexes
    the kernel sets...
 
+ Note: The specified values overwrite the autodetected values!
+
 ****************************************************************************/
 
 static void interpret_interface(char *token)