CVS commit: src/sys/dev/pci

2013-02-26 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Feb 26 11:03:17 UTC 2013

Modified Files:
src/sys/dev/pci: if_bge.c if_bgereg.h

Log Message:
Use macro. Remove extra semicolon. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.204 -r1.205 src/sys/dev/pci/if_bge.c
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/pci/if_bgereg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.204 src/sys/dev/pci/if_bge.c:1.205
--- src/sys/dev/pci/if_bge.c:1.204	Mon Feb 25 00:36:22 2013
+++ src/sys/dev/pci/if_bge.c	Tue Feb 26 11:03:17 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bge.c,v 1.204 2013/02/25 00:36:22 msaitoh Exp $	*/
+/*	$NetBSD: if_bge.c,v 1.205 2013/02/26 11:03:17 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.204 2013/02/25 00:36:22 msaitoh Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.205 2013/02/26 11:03:17 msaitoh Exp $);
 
 #include vlan.h
 
@@ -1495,7 +1495,7 @@ bge_init_rx_ring_jumbo(struct bge_softc 
 	for (i = 0; i  BGE_JUMBO_RX_RING_CNT; i++) {
 		if (bge_newbuf_jumbo(sc, i, NULL) == ENOBUFS)
 			return ENOBUFS;
-	};
+	}
 
 	sc-bge_jumbo = i - 1;
 	sc-bge_flags |= BGE_JUMBO_RXRING_VALID;
@@ -4969,11 +4969,11 @@ bge_get_eaddr_mem(struct bge_softc *sc, 
 {
 	uint32_t mac_addr;
 
-	mac_addr = bge_readmem_ind(sc, 0x0c14);
+	mac_addr = bge_readmem_ind(sc, BGE_SRAM_MAC_ADDR_HIGH_MB);
 	if ((mac_addr  16) == 0x484b) {
 		ether_addr[0] = (uint8_t)(mac_addr  8);
 		ether_addr[1] = (uint8_t)mac_addr;
-		mac_addr = bge_readmem_ind(sc, 0x0c18);
+		mac_addr = bge_readmem_ind(sc, BGE_SRAM_MAC_ADDR_LOW_MB);
 		ether_addr[2] = (uint8_t)(mac_addr  24);
 		ether_addr[3] = (uint8_t)(mac_addr  16);
 		ether_addr[4] = (uint8_t)(mac_addr  8);

Index: src/sys/dev/pci/if_bgereg.h
diff -u src/sys/dev/pci/if_bgereg.h:1.58 src/sys/dev/pci/if_bgereg.h:1.59
--- src/sys/dev/pci/if_bgereg.h:1.58	Mon Feb 25 00:36:22 2013
+++ src/sys/dev/pci/if_bgereg.h	Tue Feb 26 11:03:17 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bgereg.h,v 1.58 2013/02/25 00:36:22 msaitoh Exp $	*/
+/*	$NetBSD: if_bgereg.h,v 1.59 2013/02/26 11:03:17 msaitoh Exp $	*/
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -78,6 +78,8 @@
 #define	BGE_SOFTWARE_GENCOMM_FW		0x0B78
 #define	BGE_SOFTWARE_GENNCOMM_FW_LEN	0x0B7C
 #define	BGE_SOFTWARE_GENNCOMM_FW_DATA	0x0B80
+#define	BGE_SRAM_MAC_ADDR_HIGH_MB	0x0C14
+#define	BGE_SRAM_MAC_ADDR_LOW_MB	0x0C18
 #define BGE_SOFTWARE_GENCOMM_END	0x0FFF
 #define BGE_UNMAPPED			0x1000
 #define BGE_UNMAPPED_END		0x1FFF



CVS commit: src/sys/dev/pci

2013-02-26 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Feb 26 11:06:24 UTC 2013

Modified Files:
src/sys/dev/pci: if_bge.c if_bgereg.h

Log Message:
Add some bugfixes and enhancement from FreeBSD:

- Workaround for BCM5906 silicon bug. When auto-negotiation results in
 half-duplex operation, excess collision on the ethernet link may cause
 internal chip delays that may result in subsequent valid frames being
 dropped due to insufficient receive buffer resources.
 (FreeBSD: r214219, r214251, r214292)

- Allow write DMA to request larger DMA burst size to get better
 performance on BCM5785.
 (FreeBSD r21: OpenBSD 1.294)

- Enable TX MAC state machine lockup fix for both BCM5755 or higher
 and BCM5906. Publicly available data sheet just says it may happen
 due to corrupted TxMbuf.
 (FreeBSD r214216)

- Follow Broadcom datasheet:
 Delay 100 microseconds after enabling transmit MAC.
 Delay 10 microseconds after enabling receive MAC.
 (FreeBSD r241220)


To generate a diff of this commit:
cvs rdiff -u -r1.205 -r1.206 src/sys/dev/pci/if_bge.c
cvs rdiff -u -r1.59 -r1.60 src/sys/dev/pci/if_bgereg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.205 src/sys/dev/pci/if_bge.c:1.206
--- src/sys/dev/pci/if_bge.c:1.205	Tue Feb 26 11:03:17 2013
+++ src/sys/dev/pci/if_bge.c	Tue Feb 26 11:06:23 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bge.c,v 1.205 2013/02/26 11:03:17 msaitoh Exp $	*/
+/*	$NetBSD: if_bge.c,v 1.206 2013/02/26 11:06:23 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.205 2013/02/26 11:03:17 msaitoh Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.206 2013/02/26 11:06:23 msaitoh Exp $);
 
 #include vlan.h
 
@@ -699,6 +699,7 @@ static const struct bge_revision {
 	{ BGE_CHIPID_BCM5787_A0, BCM5754/5787 A0 },
 	{ BGE_CHIPID_BCM5787_A1, BCM5754/5787 A1 },
 	{ BGE_CHIPID_BCM5787_A2, BCM5754/5787 A2 },
+	{ BGE_CHIPID_BCM5906_A0, BCM5906 A0 },
 	{ BGE_CHIPID_BCM5906_A1, BCM5906 A1 },
 	{ BGE_CHIPID_BCM5906_A2, BCM5906 A2 },
 	{ BGE_CHIPID_BCM57780_A0, BCM57780 A0 },
@@ -2097,6 +2098,14 @@ bge_blockinit(struct bge_softc *sc)
 		BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);
 	}
 
+	/* Choose de-pipeline mode for BCM5906 A0, A1 and A2. */
+	if (BGE_ASICREV(sc-bge_chipid) == BGE_ASICREV_BCM5906) {
+		if (sc-bge_chipid == BGE_CHIPID_BCM5906_A0 ||
+		sc-bge_chipid == BGE_CHIPID_BCM5906_A1 ||
+		sc-bge_chipid == BGE_CHIPID_BCM5906_A2)
+			CSR_WRITE_4(sc, BGE_ISO_PKT_TX,
+			(CSR_READ_4(sc, BGE_ISO_PKT_TX)  ~3) | 2);
+	}
 	/*
 	 * Set the BD ring replenish thresholds. The recommended
 	 * values are 1/8th the number of descriptors allocated to
@@ -2309,6 +2318,9 @@ bge_blockinit(struct bge_softc *sc)
 	if (BGE_IS_5755_PLUS(sc))
 		val |= BGE_WDMAMODE_STATUS_TAG_FIX;
 
+	if (BGE_ASICREV(sc-bge_chipid) == BGE_ASICREV_BCM5785)
+		val |= BGE_WDMAMODE_BURST_ALL_DATA;
+
 	/* Turn on write DMA state machine */
 	CSR_WRITE_4(sc, BGE_WDMA_MODE, val);
 
@@ -4304,6 +4316,7 @@ bge_init(struct ifnet *ifp)
 {
 	struct bge_softc *sc = ifp-if_softc;
 	const uint16_t *m;
+	uint32_t mode;
 	int s, error = 0;
 
 	s = splnet();
@@ -4384,11 +4397,19 @@ bge_init(struct ifnet *ifp)
 	/* Init TX ring. */
 	bge_init_tx_ring(sc);
 
+	/* Enable TX MAC state machine lockup fix. */
+	mode = CSR_READ_4(sc, BGE_TX_MODE);
+	if (BGE_IS_5755_PLUS(sc) ||
+	BGE_ASICREV(sc-bge_chipid) == BGE_ASICREV_BCM5906)
+		mode |= BGE_TXMODE_MBUF_LOCKUP_FIX;
+
 	/* Turn on transmitter */
-	BGE_SETBIT(sc, BGE_TX_MODE, BGE_TXMODE_ENABLE);
+	CSR_WRITE_4(sc, BGE_TX_MODE, mode | BGE_TXMODE_ENABLE);
+	DELAY(100);
 
 	/* Turn on receiver */
 	BGE_SETBIT(sc, BGE_RX_MODE, BGE_RXMODE_ENABLE);
+	DELAY(10);
 
 	CSR_WRITE_4(sc, BGE_MAX_RX_FRAME_LOWAT, 2);
 

Index: src/sys/dev/pci/if_bgereg.h
diff -u src/sys/dev/pci/if_bgereg.h:1.59 src/sys/dev/pci/if_bgereg.h:1.60
--- src/sys/dev/pci/if_bgereg.h:1.59	Tue Feb 26 11:03:17 2013
+++ src/sys/dev/pci/if_bgereg.h	Tue Feb 26 11:06:23 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bgereg.h,v 1.59 2013/02/26 11:03:17 msaitoh Exp $	*/
+/*	$NetBSD: if_bgereg.h,v 1.60 2013/02/26 11:06:23 msaitoh Exp $	*/
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -318,6 +318,7 @@
 #define BGE_CHIPID_BCM5787_A0		0xb000
 #define BGE_CHIPID_BCM5787_A1		0xb001
 #define BGE_CHIPID_BCM5787_A2		0xb002
+#define	BGE_CHIPID_BCM5906_A0		0xc000
 #define BGE_CHIPID_BCM5906_A1		0xc001
 #define BGE_CHIPID_BCM5906_A2		0xc002
 #define BGE_CHIPID_BCM57762		0x57766000
@@ -734,6 +735,7 @@
 #define BGE_TXMODE_FLOWCTL_ENABLE	0x0010
 #define BGE_TXMODE_BIGBACKOFF_ENABLE	0x0020
 #define BGE_TXMODE_LONGPAUSE_ENABLE	0x0040
+#define	BGE_TXMODE_MBUF_LOCKUP_FIX	0x0100
 
 /* Transmit MAC status register */
 #define BGE_TXSTAT_RX_XOFFED		0x0001
@@ -820,6 

CVS commit: src/external/bsd/kyua-atf-compat/dist

2013-02-26 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Tue Feb 26 15:23:19 UTC 2013

Modified Files:
src/external/bsd/kyua-atf-compat/dist: atf-run.sh atf-run_test.sh

Log Message:
Cherry-pick upstream change 70aefdbe5b843d6b24b5a9b816e47f2fb026dde2:

Properly handle tabs when parsing config files

Backslashes within [] in a regexp don't have any meaning, so [ \t]
did not have the intended effect of being evaluated to a space and
a tab.  Fix this by writing an actual tab in the regexp.

Problem found by Valeriy E. Ushakov.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/kyua-atf-compat/dist/atf-run.sh
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/bsd/kyua-atf-compat/dist/atf-run_test.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/kyua-atf-compat/dist/atf-run.sh
diff -u src/external/bsd/kyua-atf-compat/dist/atf-run.sh:1.2 src/external/bsd/kyua-atf-compat/dist/atf-run.sh:1.3
--- src/external/bsd/kyua-atf-compat/dist/atf-run.sh:1.2	Mon Feb 25 18:49:51 2013
+++ src/external/bsd/kyua-atf-compat/dist/atf-run.sh	Tue Feb 26 15:23:19 2013
@@ -63,7 +63,7 @@ load_configs() {
 *) prefix=test_suites.$(basename ${file} | sed -e 's,.conf$,,'). ;;
 esac
 
-local ws='[ \t]*'
+local ws='[ 	]*'  # That's a space and a tab.
 local name='[a-zA-Z][-_a-zA-Z0-9]*'
 local repl=--variable='${prefix}\\1=\\2'
 local vars=$(grep ^${ws}${name}${ws}= ${file} | \

Index: src/external/bsd/kyua-atf-compat/dist/atf-run_test.sh
diff -u src/external/bsd/kyua-atf-compat/dist/atf-run_test.sh:1.1.1.1 src/external/bsd/kyua-atf-compat/dist/atf-run_test.sh:1.2
--- src/external/bsd/kyua-atf-compat/dist/atf-run_test.sh:1.1.1.1	Mon Feb 25 00:17:26 2013
+++ src/external/bsd/kyua-atf-compat/dist/atf-run_test.sh	Tue Feb 26 15:23:19 2013
@@ -144,13 +144,13 @@ config__priorities_body()
 create_atffile Atffile 'prop: test-suite = irrelevant' 'tp: helper'
 
 echo Checking system-wide configuration only
-create_config system/common.conf 'unprivileged-user = nobody'
+create_config system/common.conf '   unprivileged-user  =nobody'
 atf_check -s exit:0 -o 'match:helper:config  -  passed' -e ignore atf-run
 atf_check -s exit:0 -o 'inline:unprivileged-user = nobody\n' \
 cat config.out
 
 echo Checking user-specific overrides
-create_config user/.atf/common.conf 'unprivileged-user = root'
+create_config user/.atf/common.conf '	unprivileged-user =   root'
 atf_check -s exit:0 -o 'match:helper:config  -  passed' -e ignore atf-run
 atf_check -s exit:0 -o 'inline:unprivileged-user = root\n' \
 cat config.out



CVS commit: src/lib/libc/rpc

2013-02-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 26 16:33:57 UTC 2013

Modified Files:
src/lib/libc/rpc: clnt_vc.c

Log Message:
PR/13082: Thorsten Brehm: Fix wrong memcpy that caused possible memory
corruption. XXX: pullup to 6.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/rpc/clnt_vc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/rpc/clnt_vc.c
diff -u src/lib/libc/rpc/clnt_vc.c:1.18 src/lib/libc/rpc/clnt_vc.c:1.19
--- src/lib/libc/rpc/clnt_vc.c:1.18	Tue Mar 13 17:13:44 2012
+++ src/lib/libc/rpc/clnt_vc.c	Tue Feb 26 11:33:57 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: clnt_vc.c,v 1.18 2012/03/13 21:13:44 christos Exp $	*/
+/*	$NetBSD: clnt_vc.c,v 1.19 2013/02/26 16:33:57 christos Exp $	*/
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -36,7 +36,7 @@ static char *sccsid = @(#)clnt_tcp.c 1.
 static char *sccsid = @(#)clnt_tcp.c	2.2 88/08/01 4.0 RPCSRC;
 static char sccsid[] = @(#)clnt_vc.c 1.19 89/03/16 Copyr 1988 Sun Micro;
 #else
-__RCSID($NetBSD: clnt_vc.c,v 1.18 2012/03/13 21:13:44 christos Exp $);
+__RCSID($NetBSD: clnt_vc.c,v 1.19 2013/02/26 16:33:57 christos Exp $);
 #endif
 #endif
  
@@ -263,8 +263,8 @@ clnt_vc_create(
 	ct-ct_addr.buf = malloc((size_t)raddr-maxlen);
 	if (ct-ct_addr.buf == NULL)
 		goto fooy;
-	memcpy(ct-ct_addr.buf, raddr-buf, (size_t)raddr-len);
-	ct-ct_addr.len = raddr-maxlen;
+	memcpy(ct-ct_addr.buf, raddr-buf, (size_t)raddr-len);
+	ct-ct_addr.len = raddr-len;
 	ct-ct_addr.maxlen = raddr-maxlen;
 
 	/*



CVS commit: src/tests/lib/libc/rpc

2013-02-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 26 17:06:56 UTC 2013

Modified Files:
src/tests/lib/libc/rpc: Makefile
Added Files:
src/tests/lib/libc/rpc: t_rpc.c

Log Message:
Add a test for the rpc getaddr bug lib/13082.
Timeout added, but it needs rpcbind to be running to succeed.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/rpc/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/rpc/t_rpc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/rpc/Makefile
diff -u src/tests/lib/libc/rpc/Makefile:1.1 src/tests/lib/libc/rpc/Makefile:1.2
--- src/tests/lib/libc/rpc/Makefile:1.1	Sat Jan  8 01:59:37 2011
+++ src/tests/lib/libc/rpc/Makefile	Tue Feb 26 12:06:55 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2011/01/08 06:59:37 pgoyette Exp $
+# $NetBSD: Makefile,v 1.2 2013/02/26 17:06:55 christos Exp $
 
 MKMAN=	no
 
@@ -9,6 +9,8 @@ TESTSDIR=		${TESTSBASE}/lib/libc/rpc
 TESTS_C=		t_xdr
 SRCS.t_xdr=		${RPCSRCS:.x=_xdr.c} t_xdr.c
 
+TESTS_C+=		t_rpc
+
 RPCSRCS=		h_testbits.x
 DPSRCS=			${RPCSRCS:.x=.h}
 CLEANFILES+=	${RPCSRCS:.x=.h} ${RPCSRCS:.x=_xdr.c}

Added files:

Index: src/tests/lib/libc/rpc/t_rpc.c
diff -u /dev/null src/tests/lib/libc/rpc/t_rpc.c:1.1
--- /dev/null	Tue Feb 26 12:06:56 2013
+++ src/tests/lib/libc/rpc/t_rpc.c	Tue Feb 26 12:06:55 2013
@@ -0,0 +1,143 @@
+/*	$NetBSD: t_rpc.c,v 1.1 2013/02/26 17:06:55 christos Exp $	*/
+
+#include sys/cdefs.h
+__RCSID($NetBSD: t_rpc.c,v 1.1 2013/02/26 17:06:55 christos Exp $);
+
+#include sys/types.h
+#include sys/socket.h
+#include rpc/rpc.h
+#include stdlib.h
+#include err.h
+#include netdb.h
+#include stdio.h
+#include unistd.h
+
+
+#ifndef TEST
+#include atf-c.h
+
+#define ERRX(ev, msg, ...)	ATF_REQUIRE_MSG(0, msg, __VA_ARGS__)
+#else
+#define ERRX(ev, msg, ...)	errx(ev, msg, __VA_ARGS__)
+#endif
+
+
+#define RPCBPROC_NULL 0
+
+static int
+reply(caddr_t replyp, struct netbuf * raddrp, struct netconfig * nconf)
+{
+	char host[NI_MAXHOST];
+	struct sockaddr *sock = raddrp-buf;
+	int error;
+
+
+	error = getnameinfo(sock, sock-sa_len, host, sizeof(host), NULL, 0, 0);
+	if (error)
+		warnx(Cannot resolve address (%s), gai_strerror(error));
+	else
+		printf(response from: %s\n, host);
+	return 0;
+}
+
+static void
+onehost(const char *host, const char *transp)
+{
+	CLIENT *clnt;
+	struct netbuf   addr;
+	struct timeval  tv;
+
+
+	if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL)
+		ERRX(EXIT_FAILURE, clnt_create (%s), clnt_spcreateerror());
+
+	tv.tv_sec = 1;
+	tv.tv_usec = 0;
+	if (clnt_call(clnt, RPCBPROC_NULL, xdr_void, NULL, xdr_void, NULL, tv)
+	!= RPC_SUCCESS)
+		ERRX(EXIT_FAILURE, clnt_call (%s), clnt_sperror(clnt, ));
+	clnt_control(clnt, CLGET_SVC_ADDR, (char *) addr);
+	reply(NULL, addr, NULL);
+}
+
+#ifdef TEST
+static void
+allhosts(void)
+{
+	enum clnt_stat  clnt_stat;
+
+	clnt_stat = rpc_broadcast(RPCBPROG, RPCBVERS, RPCBPROC_NULL,
+	(xdrproc_t)xdr_void, NULL, (xdrproc_t)xdr_void,
+	NULL, (resultproc_t)reply, transp);
+	if (clnt_stat != RPC_SUCCESS  clnt_stat != RPC_TIMEDOUT)
+		ERRX(EXIT_FAILURE, %s, clnt_sperrno(clnt_stat));
+}
+
+int
+main(int argc, char *argv[])
+{
+	int ch;
+	const char *transp = udp;
+
+
+	while ((ch = getopt(argc, argv, ut)) != -1)
+		switch (ch) {
+		case 't':
+			transp = tcp;
+			break;
+		case 'u':
+			transp = udp;
+			break;
+		default:
+			fprintf(stderr, Usage: %s -[t|u] [hostname...]\n,
+			getprogname());
+			return EXIT_FAILURE;
+		}
+
+	if (argc == optind)
+		allhosts();
+	else
+		for (; optind  argc; optind++)
+			onehost(argv[optind], transp);
+
+	return EXIT_SUCCESS;
+}
+
+#else
+
+ATF_TC(get_svc_addr_tcp);
+ATF_TC_HEAD(get_svc_addr_tcp, tc)
+{
+	atf_tc_set_md_var(tc, descr, Checks CLGET_SVC_ADDR for tcp);
+	atf_tc_set_md_var(tc, timeout, 1);
+
+}
+
+ATF_TC_BODY(get_svc_addr_tcp, tc)
+{
+	onehost(localhost, tcp);
+
+}
+
+ATF_TC(get_svc_addr_udp);
+ATF_TC_HEAD(get_svc_addr_udp, tc)
+{
+	atf_tc_set_md_var(tc, descr, Checks CLGET_SVC_ADDR for udp);
+	atf_tc_set_md_var(tc, timeout, 1);
+}
+
+ATF_TC_BODY(get_svc_addr_udp, tc)
+{
+	onehost(localhost, udp);
+
+}
+
+ATF_TP_ADD_TCS(tp)
+{
+	ATF_TP_ADD_TC(tp, get_svc_addr_udp);
+	ATF_TP_ADD_TC(tp, get_svc_addr_tcp);
+
+	return atf_no_error();
+}
+
+#endif



CVS commit: src/distrib/sets/lists

2013-02-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 26 17:08:21 UTC 2013

Modified Files:
src/distrib/sets/lists/debug: mi
src/distrib/sets/lists/tests: mi

Log Message:
add a new rpc test


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.524 -r1.525 src/distrib/sets/lists/tests/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.9 src/distrib/sets/lists/debug/mi:1.10
--- src/distrib/sets/lists/debug/mi:1.9	Sun Feb 24 19:34:14 2013
+++ src/distrib/sets/lists/debug/mi	Tue Feb 26 12:08:20 2013
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.9 2013/02/25 00:34:14 jmmv Exp $
+# $NetBSD: mi,v 1.10 2013/02/26 17:08:20 christos Exp $
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/libdata/debug/bin/cat.debug		comp-util-debug		debug
 ./usr/libdata/debug/bin/chio.debug		comp-util-debug		debug
@@ -1558,6 +1558,7 @@
 ./usr/libdata/debug/usr/tests/lib/libc/regex/h_regex.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/regex/h_regex_att.debug		tests-obsolete		obsolete
 ./usr/libdata/debug/usr/tests/lib/libc/regex/t_regex_att.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/rpc/t_rpc.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/rpc/t_xdr.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/setjmp/t_threadjmp.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/setjmp/t_setjmp.debug		tests-lib-debug		debug,atf

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.524 src/distrib/sets/lists/tests/mi:1.525
--- src/distrib/sets/lists/tests/mi:1.524	Sun Feb 24 19:34:15 2013
+++ src/distrib/sets/lists/tests/mi	Tue Feb 26 12:08:21 2013
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.524 2013/02/25 00:34:15 jmmv Exp $
+# $NetBSD: mi,v 1.525 2013/02/26 17:08:21 christos Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -2017,6 +2017,7 @@
 ./usr/tests/lib/libc/rpc			tests-lib-tests
 ./usr/tests/lib/libc/rpc/Atffile		tests-lib-tests		atf
 ./usr/tests/lib/libc/rpc/Kyuafile		tests-lib-tests		atf,kyua
+./usr/tests/lib/libc/rpc/t_rpc			tests-lib-tests		atf
 ./usr/tests/lib/libc/rpc/t_xdr			tests-lib-tests		atf
 ./usr/tests/lib/libc/setjmp			tests-lib-tests
 ./usr/tests/lib/libc/setjmp/Atffile		tests-lib-tests		atf