loc_29.c revision ccedaf210f58fd2eb37c6d841211fbce5e4db125
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * Copyright (C) 1999 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * copyright notice and this permission notice appear in all copies.
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
44aae046c38e796e581110b7ecdf4478167d684dBob Halley * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
44aae046c38e796e581110b7ecdf4478167d684dBob Halley * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
44aae046c38e796e581110b7ecdf4478167d684dBob Halley * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
44aae046c38e796e581110b7ecdf4478167d684dBob Halley * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
c2bc56dc65b4b103a5600565680eb5f33fa4c90bMark Andrews * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
634c61d2ddf514c3b1f5c8d49c2d2375df20a8b6Andreas Gustafsson * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
44aae046c38e796e581110b7ecdf4478167d684dBob Halley /* $Id: loc_29.c,v 1.2 1999/02/11 14:00:29 marka Exp $ */
b6d52ee5bea1b9d9074698e693b49ce96edff47bMark Andrews /* RFC 1876 */
44aae046c38e796e581110b7ecdf4478167d684dBob Halleyfromtext_loc(dns_rdataclass_t class, dns_rdatatype_t type,
44aae046c38e796e581110b7ecdf4478167d684dBob Halley unsigned char size;
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson unsigned char hp;
fd35453765c6494d077edca44f4d998af5fd4cfaDavid Lawrence unsigned char vp;
fd35453765c6494d077edca44f4d998af5fd4cfaDavid Lawrence unsigned char version;
unsigned long latitude;
unsigned long longitude;
unsigned long altitude;
version = 0;
return (DNS_R_RANGE);
goto getlong;
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
return (DNS_R_RANGE);
goto getlong;
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
goto getalt;
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
return (DNS_R_RANGE);
goto getalt;
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
cm = 0;
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
return (DNS_R_RANGE);
goto encode;
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
cm = 0;
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
exp = 0;
goto encode;
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
cm = 0;
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
exp = 0;
goto encode;
return (DNS_R_SYNTAX);
return (DNS_R_RANGE);
cm = 0;
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
exp = 0;
if (north)
if (east)
static dns_result_t
unsigned long latitude;
unsigned long longitude;
unsigned long altitude;
char buf[sizeof
static dns_result_t
unsigned long latitude;
unsigned long longitude;
return (DNS_R_UNEXPECTEDEND);
return (DNS_R_NOTIMPLEMENTED);
return (DNS_R_UNEXPECTEDEND);
return (DNS_R_RANGE);
return (DNS_R_RANGE);
return (DNS_R_RANGE);
return (DNS_R_RANGE);
return (DNS_R_RANGE);
static dns_result_t
static dns_result_t
return (DNS_R_NOTIMPLEMENTED);
static dns_result_t
return (DNS_R_NOTIMPLEMENTED);