1 /* 2 * Copyright (C) 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.server.connectivity.mdns; 18 19 /** 20 * The list of error code for parsing mDNS response. 21 * 22 * @hide 23 */ 24 public class MdnsResponseErrorCode { 25 public static final int SUCCESS = 0; 26 public static final int ERROR_NOT_RESPONSE_MESSAGE = 1; 27 public static final int ERROR_NO_ANSWERS = 2; 28 public static final int ERROR_READING_RECORD_NAME = 3; 29 public static final int ERROR_READING_A_RDATA = 4; 30 public static final int ERROR_READING_AAAA_RDATA = 5; 31 public static final int ERROR_READING_PTR_RDATA = 6; 32 public static final int ERROR_SKIPPING_PTR_RDATA = 7; 33 public static final int ERROR_READING_SRV_RDATA = 8; 34 public static final int ERROR_SKIPPING_SRV_RDATA = 9; 35 public static final int ERROR_READING_TXT_RDATA = 10; 36 public static final int ERROR_SKIPPING_UNKNOWN_RECORD = 11; 37 public static final int ERROR_END_OF_FILE = 12; 38 public static final int ERROR_READING_NSEC_RDATA = 13; 39 public static final int ERROR_READING_ANY_RDATA = 14; 40 public static final int ERROR_READING_KEY_RDATA = 15; 41 }