PERFORCE change 123869 for review

Fredrik Lindberg fli at FreeBSD.org
Sat Jul 21 22:33:35 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123869

Change 123869 by fli at fli_nexus on 2007/07/21 22:32:48

	Ops, the timeout struct member seems to have been misplaced in the
	query message.

Affected files ...

.. //depot/projects/soc2007/fli-mdns_sd/shared/mdnsd_clipkg.h#2 edit

Differences ...

==== //depot/projects/soc2007/fli-mdns_sd/shared/mdnsd_clipkg.h#2 (text+ko) ====

@@ -103,19 +103,19 @@
  * wide character encoded domain name.
  * Direction: Client -> Server
  *
- * 0    7   15   23 24         47      63       79       95
- * +----+----+----+-+-----------+--------+--------+--------+----//----+
- * |cmd |len |fam |a|   ifidx   |  tout  |  class |  type  |   name   |
- * +----+----+----+-+-----------+--------+--------+--------+----//----+
+ * 0    7   15       31   39           63       79       95
+ * +----+----+--------+----+------------+--------+--------+---//---+
+ * |cmd |len |timeout |fam |   ifidx    | class  |  type  |  name  |
+ * +----+----+--------+----+------------+--------+--------+---//---+
  *
  *  `cmd'   - is the query type which is defined as follows
  *             1 = oneshot query
  *             2 = register a continuous query
  *             3 = deregister a continuous query
  *  `len'   - The length of the domain name in characters, not bytes.
+ *  `timeout'  - Timeout in seconds before giving up (oneshot only)
  *  `ifany' - If set, do the query on all active interfaces
  *  `ifidx' - If `ifany' is zero, this specifies the inteface index
- *  `timeout'  - Timeout in seconds before giving up (oneshot only)
  *  `class' - Should contain the desired class, or mdns_c_any
  *  `type'  - Should contain the desired type or mdns_t_any
  *  `name'  - Wide character encoded (wchar_t) domain name
@@ -142,9 +142,9 @@
 struct cp_query {
 	uint8_t	cpq_cmd;	/* query command */
 	uint8_t	cpq_len;	/* query name length in characters */
+	uint16_t cpq_timeout;	/* timeout in seconds (oneshot only) */
 	unsigned int cpq_fam:8; /* address family to query */
 	unsigned int cpq_ifidx:24; /* interface index, 0 = all ifs */
-	uint16_t cpq_timeout;	/* timeout in seconds (oneshot only) */
 	uint16_t cpq_class;	/* query class */
 	uint16_t cpq_type;	/* query type */
 	/* Query name follows */


More information about the p4-projects mailing list