summaryrefslogtreecommitdiffstats
path: root/tinyNET/src/dns/tnet_dns_mx.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyNET/src/dns/tnet_dns_mx.h')
-rwxr-xr-xtinyNET/src/dns/tnet_dns_mx.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/tinyNET/src/dns/tnet_dns_mx.h b/tinyNET/src/dns/tnet_dns_mx.h
index 98a00f1..6c0b999 100755
--- a/tinyNET/src/dns/tnet_dns_mx.h
+++ b/tinyNET/src/dns/tnet_dns_mx.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]org>
-*
+*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
-*
+*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-*
+*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
@@ -39,20 +39,19 @@ TNET_BEGIN_DECLS
/** DNS MX Resource Record
*/
-typedef struct tnet_dns_mx_s
-{
- TNET_DECLARE_DNS_RR;
+typedef struct tnet_dns_mx_s {
+ TNET_DECLARE_DNS_RR;
- /* RFC 1035 - 3.3.9. MX RDATA format
- +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
+ /* RFC 1035 - 3.3.9. MX RDATA format
+ +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| PREFERENCE |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ EXCHANGE /
/ /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
- */
- uint16_t preference;
- char* exchange;
+ */
+ uint16_t preference;
+ char* exchange;
}
tnet_dns_mx_t;
OpenPOWER on IntegriCloud