blob: 2381f2dfa3b6164ca952c6b329871be57b302233 [file] [log] [blame]
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2012
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* dns_struct.h
*
* Project:
* --------
* UMOLYE
*
* Description:
* ------------
* Defines ILM structures for Modem DNS services.
*
* Author:
* -------
*
*
* ==========================================================================
*
****************************************************************************/
#ifndef __DNS_STRUCT_H__
#define __DNS_STRUCT_H__
#include "kal_public_defs.h"
#include "kal_public_api.h"
#include "kal_general_types.h"
#include "dns_common_defs.h"
/*******************************************************************************
* DNS API *
*******************************************************************************/
typedef struct {
LOCAL_PARA_HDR
kal_uint32 transaction_id;
kal_uint32 interface_id;
kal_char name[DNS_MAX_NAME_LENGTH];
kal_int16 family;
kal_int16 flags;
kal_uint32 query_timeout_value;
kal_uint8 dns_server_priority;
kal_uint32 default_ttl;
} dns_get_host_by_name_req_struct;
typedef struct {
LOCAL_PARA_HDR
kal_uint32 transaction_id;
kal_int32 status;
kal_char name[DNS_MAX_NAME_LENGTH];
kal_int16 family;
kal_uint16 ipv4_addr_count;
kal_uint8 ipv4_addr_list[DNS_MAX_ADDR_BUF_NUM][DNS_MAX_IP4_ADDR_LEN];
kal_uint16 ipv6_addr_count;
kal_uint8 ipv6_addr_list[DNS_MAX_ADDR_BUF_NUM][DNS_MAX_IP6_ADDR_LEN];
} dns_get_host_by_name_cnf_struct;
typedef struct {
LOCAL_PARA_HDR
kal_uint32 transaction_id;
kal_uint32 interface_id;
kal_char name[DNS_MAX_NAME_LENGTH];
kal_uint32 query_timeout_value;
} dns_get_host_by_naptr_req_struct;
typedef struct {
kal_uint16 order;
kal_uint16 preference;
kal_char flags[DNS_MAX_NAPTR_FLAGS_LEN];
kal_char service[DNS_MAX_NAPTR_SRV_LEN];
kal_char regexp[DNS_MAX_NAPTR_REGEXP_LEN];
kal_char replacement[DNS_MAX_NAME_LENGTH];
} dns_naptr_struct;
typedef struct {
LOCAL_PARA_HDR
kal_uint32 transaction_id;
kal_int32 status;
kal_uint16 num_entry;
dns_naptr_struct entry[DNS_MAX_NAPTR_ENTRY];
} dns_get_host_by_naptr_cnf_struct;
typedef struct {
LOCAL_PARA_HDR
kal_uint32 transaction_id;
kal_uint32 interface_id;
kal_char name[DNS_MAX_NAME_LENGTH];
kal_uint32 query_timeout_value;
} dns_get_host_by_srv_req_struct;
typedef struct {
kal_uint16 priority;
kal_uint16 weight;
kal_uint16 port;
kal_char target[DNS_MAX_NAME_LENGTH];
} dns_srv_struct;
typedef struct {
LOCAL_PARA_HDR
kal_uint32 transaction_id;
kal_int32 status;
kal_uint16 num_entry;
dns_srv_struct entry[DNS_MAX_SRV_ENTRY];
} dns_get_host_by_srv_cnf_struct;
#endif /*__DNS_STRUCT_H__ */