2 * ++Copyright++ 1985, 1988, 1993
4 * Copyright (c) 1985, 1988, 1993
5 * The Regents of the University of California. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 4. Neither the name of the University nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * Portions Copyright (c) 1993 by Digital Equipment Corporation.
33 * Permission to use, copy, modify, and distribute this software for any
34 * purpose with or without fee is hereby granted, provided that the above
35 * copyright notice and this permission notice appear in all copies, and that
36 * the name of Digital Equipment Corporation not be used in advertising or
37 * publicity pertaining to distribution of the document or software without
38 * specific, written prior permission.
40 * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
41 * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
42 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
43 * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
44 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
45 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
46 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
52 #if defined(LIBC_SCCS) && !defined(lint)
53 static char sccsid
[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
54 static char rcsid
[] = "$Id$";
55 #endif /* LIBC_SCCS and not lint */
57 #include <sys/types.h>
58 #include <sys/param.h>
59 #include <sys/socket.h>
60 #include <netinet/in.h>
61 #include <arpa/inet.h>
62 #include <arpa/nameser.h>
75 #define MULTI_PTRS_ARE_ALIASES 1 /* XXX - experimental */
77 #if defined(BSD) && (BSD >= 199103) && defined(AF_INET6)
81 # include "../conf/portability.h"
84 #if defined(USE_OPTIONS_H)
85 # include <../conf/options.h>
89 # define SPRINTF(x) strlen(sprintf/**/x)
91 # define SPRINTF(x) ((size_t)sprintf x)
97 static const char AskedForGot
[] =
98 "gethostby*.getanswer: asked for \"%s\", got \"%s\"";
100 static char *h_addr_ptrs
[MAXADDRS
+ 1];
102 static struct hostent host
;
103 static char *host_aliases
[MAXALIASES
];
104 static char hostbuf
[8*1024];
105 static u_char host_addr
[16]; /* IPv4 or IPv6 */
106 static FILE *hostf
= NULL
;
107 static int stayopen
= 0;
109 static void map_v4v6_address
__P((const char *src
, char *dst
));
110 static void map_v4v6_hostent
__P((struct hostent
*hp
, char **bp
, int *len
));
113 extern void addrsort
__P((char **, int));
117 #define MAXPACKET PACKETSZ
119 #define MAXPACKET 1024
122 /* As per RFC 1034 and 1035 a host name cannot exceed 255 octets in length. */
123 #ifdef MAXHOSTNAMELEN
124 # undef MAXHOSTNAMELEN
126 #define MAXHOSTNAMELEN 256
130 u_char buf
[MAXPACKET
];
148 if (_res
.options
& RES_DEBUG
) {
156 # define dprintf(msg, num) /*nada*/
159 #define BOUNDED_INCR(x) \
163 __set_h_errno (NO_RECOVERY); \
168 #define BOUNDS_CHECK(ptr, count) \
170 if ((ptr) + (count) > eom) { \
171 __set_h_errno (NO_RECOVERY); \
177 static struct hostent
*
178 getanswer(answer
, anslen
, qname
, qtype
)
179 const querybuf
*answer
;
184 register const HEADER
*hp
;
185 register const u_char
*cp
;
187 const u_char
*eom
, *erdata
;
188 char *bp
, **ap
, **hap
;
189 int type
, class, buflen
, ancount
, qdcount
;
190 int haveanswer
, had_error
;
194 int (*name_ok
) __P((const char *));
198 eom
= answer
->buf
+ anslen
;
208 return (NULL
); /* XXX should be abort(); */
211 * find first satisfactory answer
214 ancount
= ntohs(hp
->ancount
);
215 qdcount
= ntohs(hp
->qdcount
);
217 buflen
= sizeof hostbuf
;
219 BOUNDED_INCR(HFIXEDSZ
);
221 __set_h_errno (NO_RECOVERY
);
224 n
= dn_expand(answer
->buf
, eom
, cp
, bp
, buflen
);
225 if ((n
< 0) || !(*name_ok
)(bp
)) {
226 __set_h_errno (NO_RECOVERY
);
229 BOUNDED_INCR(n
+ QFIXEDSZ
);
230 if (qtype
== T_A
|| qtype
== T_AAAA
) {
231 /* res_send() has already verified that the query name is the
232 * same as the one we sent; this just gets the expanded name
233 * (i.e., with the succeeding search-domain tacked on).
235 n
= strlen(bp
) + 1; /* for the \0 */
236 if (n
>= MAXHOSTNAMELEN
) {
237 __set_h_errno (NO_RECOVERY
);
243 /* The qname can be abbreviated, but h_name is now absolute. */
248 host
.h_aliases
= host_aliases
;
251 host
.h_addr_list
= h_addr_ptrs
;
254 while (ancount
-- > 0 && cp
< eom
&& !had_error
) {
255 n
= dn_expand(answer
->buf
, eom
, cp
, bp
, buflen
);
256 if ((n
< 0) || !(*name_ok
)(bp
)) {
261 BOUNDS_CHECK(cp
, 3 * INT16SZ
+ INT32SZ
);
262 type
= _getshort(cp
);
263 cp
+= INT16SZ
; /* type */
264 class = _getshort(cp
);
265 cp
+= INT16SZ
+ INT32SZ
; /* class, TTL */
267 cp
+= INT16SZ
; /* len */
271 /* XXX - debug? syslog? */
273 continue; /* XXX - had_error++ ? */
275 if ((qtype
== T_A
|| qtype
== T_AAAA
) && type
== T_CNAME
) {
276 if (ap
>= &host_aliases
[MAXALIASES
-1])
278 n
= dn_expand(answer
->buf
, eom
, cp
, tbuf
, sizeof tbuf
);
279 if ((n
< 0) || !(*name_ok
)(tbuf
)) {
285 __set_h_errno (NO_RECOVERY
);
290 n
= strlen(bp
) + 1; /* for the \0 */
291 if (n
>= MAXHOSTNAMELEN
) {
297 /* Get canonical name. */
298 n
= strlen(tbuf
) + 1; /* for the \0 */
299 if (n
> buflen
|| n
>= MAXHOSTNAMELEN
) {
309 if (qtype
== T_PTR
&& type
== T_CNAME
) {
310 n
= dn_expand(answer
->buf
, eom
, cp
, tbuf
, sizeof tbuf
);
311 if (n
< 0 || !res_dnok(tbuf
)) {
317 __set_h_errno (NO_RECOVERY
);
320 /* Get canonical name. */
321 n
= strlen(tbuf
) + 1; /* for the \0 */
322 if (n
> buflen
|| n
>= MAXHOSTNAMELEN
) {
332 if ((type
== T_SIG
) || (type
== T_KEY
) || (type
== T_NXT
)) {
333 /* We don't support DNSSEC yet. For now, ignore
334 * the record and send a low priority message
337 syslog(LOG_DEBUG
|LOG_AUTH
,
338 "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"",
339 qname
, p_class(C_IN
), p_type(qtype
),
345 syslog(LOG_NOTICE
|LOG_AUTH
,
346 "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"",
347 qname
, p_class(C_IN
), p_type(qtype
),
350 continue; /* XXX - had_error++ ? */
354 if (strcasecmp(tname
, bp
) != 0) {
355 syslog(LOG_NOTICE
|LOG_AUTH
,
356 AskedForGot
, qname
, bp
);
358 continue; /* XXX - had_error++ ? */
360 n
= dn_expand(answer
->buf
, eom
, cp
, bp
, buflen
);
361 if ((n
< 0) || !res_hnok(bp
)) {
365 #if MULTI_PTRS_ARE_ALIASES
368 __set_h_errno (NO_RECOVERY
);
373 else if (ap
< &host_aliases
[MAXALIASES
-1])
378 n
= strlen(bp
) + 1; /* for the \0 */
379 if (n
>= MAXHOSTNAMELEN
) {
389 if (_res
.options
& RES_USE_INET6
) {
390 n
= strlen(bp
) + 1; /* for the \0 */
391 if (n
>= MAXHOSTNAMELEN
) {
397 map_v4v6_hostent(&host
, &bp
, &buflen
);
399 __set_h_errno (NETDB_SUCCESS
);
404 if (strcasecmp(host
.h_name
, bp
) != 0) {
405 syslog(LOG_NOTICE
|LOG_AUTH
,
406 AskedForGot
, host
.h_name
, bp
);
408 continue; /* XXX - had_error++ ? */
410 if (n
!= host
.h_length
) {
418 nn
= strlen(bp
) + 1; /* for the \0 */
423 /* XXX: when incrementing bp, we have to decrement
424 * buflen by the same amount --okir */
425 buflen
-= sizeof(align
) - ((u_long
)bp
% sizeof(align
));
427 bp
+= sizeof(align
) - ((u_long
)bp
% sizeof(align
));
429 if (bp
+ n
>= &hostbuf
[sizeof hostbuf
]) {
430 dprintf("size (%d) too big\n", n
);
434 if (hap
>= &h_addr_ptrs
[MAXADDRS
-1]) {
436 dprintf("Too many addresses (%d)\n",
442 bcopy(cp
, *hap
++ = bp
, n
);
447 __set_h_errno (NO_RECOVERY
);
460 # if defined(RESOLVSORT)
462 * Note: we sort even if host can take only one address
463 * in its return structures - should give it the "best"
464 * address in that case, not some random one
466 if (_res
.nsort
&& haveanswer
> 1 && qtype
== T_A
)
467 addrsort(h_addr_ptrs
, haveanswer
);
468 # endif /*RESOLVSORT*/
470 n
= strlen(qname
) + 1; /* for the \0 */
471 if (n
> buflen
|| n
>= MAXHOSTNAMELEN
)
478 if (_res
.options
& RES_USE_INET6
)
479 map_v4v6_hostent(&host
, &bp
, &buflen
);
480 __set_h_errno (NETDB_SUCCESS
);
484 __set_h_errno (NO_RECOVERY
);
494 if ((_res
.options
& RES_INIT
) == 0 && res_init() == -1) {
495 __set_h_errno (NETDB_INTERNAL
);
498 if (_res
.options
& RES_USE_INET6
) {
499 hp
= gethostbyname2(name
, AF_INET6
);
503 return (gethostbyname2(name
, AF_INET
));
507 gethostbyname2(name
, af
)
512 register const char *cp
;
514 int n
, size
, type
, len
;
515 extern struct hostent
*_gethtbyname2();
517 if ((_res
.options
& RES_INIT
) == 0 && res_init() == -1) {
518 __set_h_errno (NETDB_INTERNAL
);
532 __set_h_errno (NETDB_INTERNAL
);
533 __set_errno (EAFNOSUPPORT
);
537 host
.h_addrtype
= af
;
538 host
.h_length
= size
;
541 * if there aren't any dots, it could be a user-level alias.
542 * this is also done in res_query() since we are not the only
543 * function that looks up host names.
545 if (!strchr(name
, '.') && (cp
= __hostalias(name
)))
549 * disallow names consisting only of digits/dots, unless
552 if (isdigit(name
[0]))
553 for (cp
= name
;; ++cp
) {
558 * All-numeric, no dot at the end.
559 * Fake up a hostent as if we'd actually
562 if (inet_pton(af
, name
, host_addr
) <= 0) {
563 __set_h_errno (HOST_NOT_FOUND
);
566 strncpy(hostbuf
, name
, MAXDNAME
);
567 hostbuf
[MAXDNAME
] = '\0';
568 bp
= hostbuf
+ MAXDNAME
;
569 len
= sizeof hostbuf
- MAXDNAME
;
570 host
.h_name
= hostbuf
;
571 host
.h_aliases
= host_aliases
;
572 host_aliases
[0] = NULL
;
573 h_addr_ptrs
[0] = (char *)host_addr
;
574 h_addr_ptrs
[1] = NULL
;
575 host
.h_addr_list
= h_addr_ptrs
;
576 if (_res
.options
& RES_USE_INET6
)
577 map_v4v6_hostent(&host
, &bp
, &len
);
578 __set_h_errno (NETDB_SUCCESS
);
581 if (!isdigit(*cp
) && *cp
!= '.')
584 if ((isxdigit(name
[0]) && strchr(name
, ':') != NULL
) ||
586 for (cp
= name
;; ++cp
) {
591 * All-IPv6-legal, no dot at the end.
592 * Fake up a hostent as if we'd actually
595 if (inet_pton(af
, name
, host_addr
) <= 0) {
596 __set_h_errno (HOST_NOT_FOUND
);
599 strncpy(hostbuf
, name
, MAXDNAME
);
600 hostbuf
[MAXDNAME
] = '\0';
601 bp
= hostbuf
+ MAXDNAME
;
602 len
= sizeof hostbuf
- MAXDNAME
;
603 host
.h_name
= hostbuf
;
604 host
.h_aliases
= host_aliases
;
605 host_aliases
[0] = NULL
;
606 h_addr_ptrs
[0] = (char *)host_addr
;
607 h_addr_ptrs
[1] = NULL
;
608 host
.h_addr_list
= h_addr_ptrs
;
609 __set_h_errno (NETDB_SUCCESS
);
612 if (!isxdigit(*cp
) && *cp
!= ':' && *cp
!= '.')
616 if ((n
= res_search(name
, C_IN
, type
, buf
.buf
, sizeof(buf
.buf
))) < 0) {
617 dprintf("res_search failed (%d)\n", n
);
618 if (errno
== ECONNREFUSED
)
619 return (_gethtbyname2(name
, af
));
622 return (getanswer(&buf
, n
, name
, type
));
626 gethostbyaddr(addr
, len
, af
)
627 const char *addr
; /* XXX should have been def'd as u_char! */
631 const u_char
*uaddr
= (const u_char
*)addr
;
632 static const u_char mapped
[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0xff,0xff };
633 static const u_char tunnelled
[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0,0 };
636 register struct hostent
*hp
;
637 char qbuf
[MAXDNAME
+1], *qp
;
639 register struct hostent
*rhp
;
642 char hname2
[MAXDNAME
+1];
643 #endif /*SUNSECURITY*/
644 extern struct hostent
*_gethtbyaddr();
646 if ((_res
.options
& RES_INIT
) == 0 && res_init() == -1) {
647 __set_h_errno (NETDB_INTERNAL
);
650 if (af
== AF_INET6
&& len
== IN6ADDRSZ
&&
651 (!bcmp(uaddr
, mapped
, sizeof mapped
) ||
652 !bcmp(uaddr
, tunnelled
, sizeof tunnelled
))) {
654 addr
+= sizeof mapped
;
655 uaddr
+= sizeof mapped
;
667 __set_errno (EAFNOSUPPORT
);
668 __set_h_errno (NETDB_INTERNAL
);
672 __set_errno (EINVAL
);
673 __set_h_errno (NETDB_INTERNAL
);
678 (void) sprintf(qbuf
, "%u.%u.%u.%u.in-addr.arpa",
686 for (n
= IN6ADDRSZ
- 1; n
>= 0; n
--) {
687 qp
+= SPRINTF((qp
, "%x.%x.",
689 (uaddr
[n
] >> 4) & 0xf));
691 strcpy(qp
, "ip6.int");
696 n
= res_query(qbuf
, C_IN
, T_PTR
, (u_char
*)buf
.buf
, sizeof buf
.buf
);
698 dprintf("res_query failed (%d)\n", n
);
699 if (errno
== ECONNREFUSED
)
700 return (_gethtbyaddr(addr
, len
, af
));
703 if (!(hp
= getanswer(&buf
, n
, qbuf
, T_PTR
)))
704 return (NULL
); /* h_errno was set by getanswer() */
708 * turn off search as the name should be absolute,
709 * 'localhost' should be matched by defnames
711 strncpy(hname2
, hp
->h_name
, MAXDNAME
);
712 hname2
[MAXDNAME
] = '\0';
713 old_options
= _res
.options
;
714 _res
.options
&= ~RES_DNSRCH
;
715 _res
.options
|= RES_DEFNAMES
;
716 if (!(rhp
= gethostbyname(hname2
))) {
717 syslog(LOG_NOTICE
|LOG_AUTH
,
718 "gethostbyaddr: No A record for %s (verifying [%s])",
719 hname2
, inet_ntoa(*((struct in_addr
*)addr
)));
720 _res
.options
= old_options
;
721 __set_h_errno (HOST_NOT_FOUND
);
724 _res
.options
= old_options
;
725 for (haddr
= rhp
->h_addr_list
; *haddr
; haddr
++)
726 if (!memcmp(*haddr
, addr
, INADDRSZ
))
729 syslog(LOG_NOTICE
|LOG_AUTH
,
730 "gethostbyaddr: A record of %s != PTR record [%s]",
731 hname2
, inet_ntoa(*((struct in_addr
*)addr
)));
732 __set_h_errno (HOST_NOT_FOUND
);
736 #endif /*SUNSECURITY*/
739 bcopy(addr
, host_addr
, len
);
740 h_addr_ptrs
[0] = (char *)host_addr
;
741 h_addr_ptrs
[1] = NULL
;
742 if (af
== AF_INET
&& (_res
.options
& RES_USE_INET6
)) {
743 map_v4v6_address((char*)host_addr
, (char*)host_addr
);
744 hp
->h_addrtype
= AF_INET6
;
745 hp
->h_length
= IN6ADDRSZ
;
747 __set_h_errno (NETDB_SUCCESS
);
756 hostf
= fopen(_PATH_HOSTS
, "r" );
765 if (hostf
&& !stayopen
) {
766 (void) fclose(hostf
);
775 register char *cp
, **q
;
778 if (!hostf
&& !(hostf
= fopen(_PATH_HOSTS
, "r" ))) {
779 __set_h_errno (NETDB_INTERNAL
);
783 if (!(p
= fgets(hostbuf
, sizeof hostbuf
, hostf
))) {
784 __set_h_errno (HOST_NOT_FOUND
);
789 if (!(cp
= strpbrk(p
, "#\n")))
792 if (!(cp
= strpbrk(p
, " \t")))
795 if (inet_pton(AF_INET6
, p
, host_addr
) > 0) {
798 } else if (inet_pton(AF_INET
, p
, host_addr
) > 0) {
799 if (_res
.options
& RES_USE_INET6
) {
800 map_v4v6_address((char*)host_addr
, (char*)host_addr
);
810 h_addr_ptrs
[0] = (char *)host_addr
;
811 h_addr_ptrs
[1] = NULL
;
812 host
.h_addr_list
= h_addr_ptrs
;
814 host
.h_addrtype
= af
;
815 while (*cp
== ' ' || *cp
== '\t')
818 q
= host
.h_aliases
= host_aliases
;
819 if ((cp
= strpbrk(cp
, " \t")))
822 if (*cp
== ' ' || *cp
== '\t') {
826 if (q
< &host_aliases
[MAXALIASES
- 1])
828 if ((cp
= strpbrk(cp
, " \t")))
832 __set_h_errno (NETDB_SUCCESS
);
840 extern struct hostent
*_gethtbyname2();
843 if (_res
.options
& RES_USE_INET6
) {
844 hp
= _gethtbyname2(name
, AF_INET6
);
848 return (_gethtbyname2(name
, AF_INET
));
852 _gethtbyname2(name
, af
)
856 register struct hostent
*p
;
860 while ((p
= _gethtent())) {
861 if (p
->h_addrtype
!= af
)
863 if (strcasecmp(p
->h_name
, name
) == 0)
865 for (cp
= p
->h_aliases
; *cp
!= 0; cp
++)
866 if (strcasecmp(*cp
, name
) == 0)
875 _gethtbyaddr(addr
, len
, af
)
880 register struct hostent
*p
;
883 while ((p
= _gethtent()))
884 if (p
->h_addrtype
== af
&& !bcmp(p
->h_addr
, addr
, len
))
891 map_v4v6_address(src
, dst
)
895 u_char
*p
= (u_char
*)dst
;
899 /* Stash a temporary copy so our caller can update in place. */
900 bcopy(src
, tmp
, INADDRSZ
);
901 /* Mark this ipv6 addr as a mapped ipv4. */
902 for (i
= 0; i
< 10; i
++)
906 /* Retrieve the saved copy and we're done. */
907 bcopy(tmp
, (void*)p
, INADDRSZ
);
911 map_v4v6_hostent(hp
, bpp
, lenp
)
918 if (hp
->h_addrtype
!= AF_INET
|| hp
->h_length
!= INADDRSZ
)
920 hp
->h_addrtype
= AF_INET6
;
921 hp
->h_length
= IN6ADDRSZ
;
922 for (ap
= hp
->h_addr_list
; *ap
; ap
++) {
923 int i
= sizeof(align
) - ((u_long
)*bpp
% sizeof(align
));
925 if (*lenp
< (i
+ IN6ADDRSZ
)) {
926 /* Out of memory. Truncate address list here. XXX */
932 map_v4v6_address(*ap
, *bpp
);
947 short aval
[MAXADDRS
];
951 for (i
= 0; i
< num
; i
++, p
++) {
952 for (j
= 0 ; (unsigned)j
< _res
.nsort
; j
++)
953 if (_res
.sort_list
[j
].addr
.s_addr
==
954 (((struct in_addr
*)(*p
))->s_addr
& _res
.sort_list
[j
].mask
))
957 if (needsort
== 0 && i
> 0 && j
< aval
[i
-1])
963 while (needsort
< num
) {
964 for (j
= needsort
- 1; j
>= 0; j
--) {
965 if (aval
[j
] > aval
[j
+1]) {
984 #if defined(BSD43_BSD43_NFS) || defined(sun)
985 /* some libc's out there are bound internally to these names (UMIPS) */
987 ht_sethostent(stayopen
)
1000 ht_gethostbyname(name
)
1003 return (_gethtbyname(name
));
1007 ht_gethostbyaddr(addr
, len
, af
)
1012 return (_gethtbyaddr(addr
, len
, af
));
1018 return (_gethtent());
1028 dn_skipname(comp_dn
, eom
)
1029 const u_char
*comp_dn
, *eom
;
1031 return (__dn_skipname(comp_dn
, eom
));
1033 #endif /*old-style libc with yp junk in it*/