# from: @(#)Makefile 5.3 (Berkeley) 5/11/90
-# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:57:38 wsanchez Exp $
+# $Id: Makefile.dist,v 1.1 1999/05/02 03:57:38 wsanchez Exp $
PROG= domainname
*/
#ifndef lint
-static char rcsid[] = "$Id: domainname.c,v 1.1.1.1 1999/05/02 03:57:38 wsanchez Exp $";
+static char rcsid[] = "$Id: domainname.c,v 1.1 1999/05/02 03:57:38 wsanchez Exp $";
#endif /* not lint */
#include <stdio.h>
install-man-page:
install -d "$(DSTROOT)/usr/share/man/man3"
install -c -m 644 ipsec_set_policy.3 "$(DSTROOT)/usr/share/man/man3/ipsec_set_policy.3"
- install -c -m 644 ipsec_strerror.3 "$(DSTROOT)/usr/share/man/man3/ipsec_strerror.3"\r
+ install -c -m 644 ipsec_strerror.3 "$(DSTROOT)/usr/share/man/man3/ipsec_strerror.3"
p(tcps_keepdrops, "\t\t%lu connection%s dropped by keepalive\n");
p(tcps_predack, "\t%lu correct ACK header prediction%s\n");
p(tcps_preddat, "\t%lu correct data packet header prediction%s\n");
+ p(tcps_sack_recovery_episode, "\t%lu SACK recovery episode%s\n");
+ p(tcps_sack_rexmits,
+ "\t%lu segment rexmit%s in SACK recovery episodes\n");
+ p(tcps_sack_rexmit_bytes,
+ "\t%lu byte rexmit%s in SACK recovery episodes\n");
+ p(tcps_sack_rcv_blocks,
+ "\t%lu SACK option%s (SACK blocks) received\n");
+ p(tcps_sack_send_blocks, "\t%lu SACK option%s (SACK blocks) sent\n");
+ p1a(tcps_sack_sboverflow, "\t%lu SACK scoreboard overflow\n");
+
#undef p
#undef p1a
#undef p2
inetaddr.sin_len = sizeof(inetaddr);
if (bind(sock,
(struct sockaddr *)&inetaddr, sizeof(inetaddr)) < 0) {
- syslog(LOG_ERR, "can't bind udp addr");
- exit(1);
+ /* socket may still be lingering from previous incarnation */
+ /* wait a few seconds and try again */
+ sleep(6);
+ if (bind(sock,
+ (struct sockaddr *)&inetaddr, sizeof(inetaddr)) < 0) {
+ syslog(LOG_ERR, "can't bind udp addr");
+ exit(1);
+ }
}
if (!pmap_set(RPCPROG_NFS, 2, IPPROTO_UDP, NFS_PORT) ||
!pmap_set(RPCPROG_NFS, 3, IPPROTO_UDP, NFS_PORT)) {
-# @(#) $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:57:59 wsanchez Exp $
+# @(#) $Id: Makefile.dist,v 1.1 1999/05/02 03:57:59 wsanchez Exp $
PROG= rarpd
SRCS= rarpd.c
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-.\" @(#) $Id: rarpd.8,v 1.1.1.1 1999/05/02 03:57:59 wsanchez Exp $
+.\" @(#) $Id: rarpd.8,v 1.1 1999/05/02 03:57:59 wsanchez Exp $
.\"
.Dd October 26, 1990
.Dt RARPD 8
#ifndef lint
static char rcsid[] =
-"@(#) $Id: rarpd.c,v 1.1.1.1 1999/05/02 03:57:59 wsanchez Exp $";
+"@(#) $Id: rarpd.c,v 1.1 1999/05/02 03:57:59 wsanchez Exp $";
#endif
/*
- * $Source: /cvs/root/network_cmds/rlogin.tproj/krcmd.c,v $
+ * $Source: /Volumes/george/fs-svn/network_cmds/rlogin.tproj/krcmd.c,v $
* $Header: /mit/kerberos/ucb/mit/kcmd/RCS/krcmd.c,v 5.1
* 89/07/25 15:38:44 kfall Exp Locker: kfall $
* static char *rcsid_kcmd_c =
-# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:58:27 wsanchez Exp $
+# $Id: Makefile.dist,v 1.1 1999/05/02 03:58:27 wsanchez Exp $
PROG= spray
NOMAN=
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: spray.c,v 1.1.1.1 1999/05/02 03:58:27 wsanchez Exp $
+ * $Id: spray.c,v 1.1 1999/05/02 03:58:27 wsanchez Exp $
*/
#include <stdio.h>
argv[1]);
return 0;
}
- if (c->narg + 2 != argc) {
+ if (c->narg + 2 != argc && strcasecmp(argv[1],"define")==0 && c->narg + 1 != argc) {
fprintf(stderr,
"Need %s%d argument%s to 'environ %s' command. 'environ ?' for help.\n",
c->narg < argc + 2 ? "only " : "",
void
env_init(void)
{
- extern char **environ;
- char **epp, *cp;
+ char *ev;
struct env_lst *ep;
+ int i;
- for (epp = environ; *epp; epp++) {
- if ((cp = strchr(*epp, '='))) {
- *cp = '\0';
- ep = env_define((unsigned char *)*epp,
- (unsigned char *)cp+1);
- ep->export = 0;
- *cp = '=';
- }
+ const char *safe_vars[]=
+ {"USER", "PRINTER", "DISPLAY", "TERM", "COLUMNS", "LINES"};
+
+ for(i=0;i<sizeof(safe_vars)/sizeof(const char *);i++) {
+ if(ev=getenv(safe_vars[i])) {
+ ep=env_define((unsigned char *)safe_vars[i],(unsigned char *)ev);
+ ep->export=0;
+ }
}
+
/*
* Special case for DISPLAY variable. If it is ":0.0" or
* "unix:0.0", we have to get rid of "unix" and insert our
&& ((*ep->value == ':')
|| (strncmp((char *)ep->value, "unix:", 5) == 0))) {
char hbuf[256+1];
- char *cp2 = strchr((char *)ep->value, ':');
+ char *cp, *cp2 = strchr((char *)ep->value, ':');
gethostname(hbuf, 256);
hbuf[256] = '\0';
struct env_lst *
env_define(const unsigned char *var, unsigned char *value)
{
+ char *ev;
struct env_lst *ep;
if ((ep = env_find(var))) {
if (ep->next)
ep->next->prev = ep;
}
- ep->welldefined = opt_welldefined(var);
+
+ ep->welldefined = opt_welldefined((const char *)var);
ep->export = 1;
- ep->var = strdup(var);
- ep->value = strdup(value);
+ ep->var = (unsigned char *)strdup((const char *)var);
+
+ if(value)
+ ep->value = (unsigned char *)strdup((const char *)value);
+ else if(ev=getenv((const char *)var))
+ ep->value = (unsigned char *)strdup(ev);
+ else ep->value = (unsigned char *)strdup("");
return(ep);
}
if (my_state_is_wont(TELOPT_NEW_ENVIRON)
#ifdef OLD_ENVIRON
- && my_state_is_wont(TELOPT_OLD_ENVIRON)
+ && my_state_is_wont(TELOPT_OLD_ENVIRON)
#endif
) {
fprintf(stderr,
struct env_lst *ep;
for (ep = envlisthead.next; ep; ep = ep->next) {
- printf("%c %-20s %s\n", ep->export ? '*' : ' ',
+ printf("%c %-20s %s\n", ep->export ? '*' : ' ',
ep->var, ep->value);
}
}
variables that may be sent through the
.Dv TELNET ENVIRON
option.
-The initial set of variables is taken from the users
-environment, with only the
-.Ev DISPLAY
-and
-.Ev PRINTER
-variables being exported by default.
-The
-.Ev USER
-variable is also exported if the
-.Fl a
-or
-.Fl l
-options are used.
+The initial set of variables is populated with the
+contents of the following environment variables, if
+present:
+.Ev USER , PRINTER , DISPLAY , TERM , COLUMNS , LINES.
+
+Only the first three are exported, by default.
.Pp
Valid arguments for the
.Ic environ
command are:
.Bl -tag -width Fl
-.It Ic define Ar variable value
+.It Ic define Ar variable [value]
Define the variable
.Ar variable
to have a value of
.Ar value .
+If value is empty, the value is taken from the environment variable.
Any variables defined by this command are automatically exported.
The
.Ar value
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "globals.h"
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "globals.h"
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "globals.h"
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include <sys/types.h>
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "globals.h"
*/
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include <sys/param.h>
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "globals.h"
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "globals.h"
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "globals.h"
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "globals.h"
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif /* sgi */
#define TSPTYPES
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "timedc.h"
#endif /* not lint */
#ifdef sgi
-#ident "$Revision: 1.1.1.1 $"
+#ident "$Revision: 1.1 $"
#endif
#include "timedc.h"
-/* @(#) $Header: /cvs/root/network_cmds/traceroute.tproj/gnuc.h,v 1.2 2004/08/08 00:27:54 lindak Exp $ (LBL) */
+/* @(#) $Header: /Volumes/george/fs-svn/network_cmds/traceroute.tproj/gnuc.h,v 1.2 2004/08/08 00:27:54 lindak Exp $ (LBL) */
/* Define __P() macro, if necessary */
#ifndef __P
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#) $Header: /cvs/root/network_cmds/traceroute.tproj/ifaddrlist.h,v 1.2 2004/08/08 00:27:54 lindak Exp $ (LBL)
+ * @(#) $Header: /Volumes/george/fs-svn/network_cmds/traceroute.tproj/ifaddrlist.h,v 1.2 2004/08/08 00:27:54 lindak Exp $ (LBL)
*/
struct ifaddrlist {
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:59:00 wsanchez Exp $
+# $Id: Makefile.dist,v 1.1 1999/05/02 03:59:00 wsanchez Exp $
PROG= ypbind
NOMAN=
*/
#ifndef LINT
-static char rcsid[] = "$Id: ypbind.c,v 1.1.1.1 1999/05/02 03:59:00 wsanchez Exp $";
+static char rcsid[] = "$Id: ypbind.c,v 1.1 1999/05/02 03:59:00 wsanchez Exp $";
#endif
#include <sys/cdefs.h>
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:59:01 wsanchez Exp $
+# $Id: Makefile.dist,v 1.1 1999/05/02 03:59:01 wsanchez Exp $
PROG= ypcat
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: ypcat.1,v 1.1.1.1 1999/05/02 03:59:01 wsanchez Exp $
+.\" $Id: ypcat.1,v 1.1 1999/05/02 03:59:01 wsanchez Exp $
.\"
.Dd December 3, 1993
.Dt YPCAT 1
*/
#ifndef LINT
-static char rcsid[] = "$Id: ypcat.c,v 1.1.1.1 1999/05/02 03:59:01 wsanchez Exp $";
+static char rcsid[] = "$Id: ypcat.c,v 1.1 1999/05/02 03:59:01 wsanchez Exp $";
#endif
#include <sys/param.h>
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:59:02 wsanchez Exp $
+# $Id: Makefile.dist,v 1.1 1999/05/02 03:59:02 wsanchez Exp $
PROG= ypmatch
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: ypmatch.1,v 1.1.1.1 1999/05/02 03:59:02 wsanchez Exp $
+.\" $Id: ypmatch.1,v 1.1 1999/05/02 03:59:02 wsanchez Exp $
.\"
.Dd December 3, 1993
.Dt YPMATCH 1
*/
#ifndef LINT
-static char rcsid[] = "$Id: ypmatch.c,v 1.1.1.1 1999/05/02 03:59:02 wsanchez Exp $";
+static char rcsid[] = "$Id: ypmatch.c,v 1.1 1999/05/02 03:59:02 wsanchez Exp $";
#endif
#include <sys/param.h>
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:59:02 wsanchez Exp $
+# $Id: Makefile.dist,v 1.1 1999/05/02 03:59:02 wsanchez Exp $
PROG= yppoll
MAN8= yppoll.0
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: yppoll.8,v 1.1.1.1 1999/05/02 03:59:03 wsanchez Exp $
+.\" $Id: yppoll.8,v 1.1 1999/05/02 03:59:03 wsanchez Exp $
.\"
.Dd August 18, 1994
.Dt YPPOLL 8
*/
#ifndef lint
-static char rcsid[] = "$Id: yppoll.c,v 1.1.1.1 1999/05/02 03:59:03 wsanchez Exp $";
+static char rcsid[] = "$Id: yppoll.c,v 1.1 1999/05/02 03:59:03 wsanchez Exp $";
#endif /* not lint */
#include <sys/param.h>
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:59:06 wsanchez Exp $
+# $Id: Makefile.dist,v 1.1 1999/05/02 03:59:06 wsanchez Exp $
PROG= ypset
NOMAN=
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 03:59:06 wsanchez Exp $
+# $Id: Makefile.dist,v 1.1 1999/05/02 03:59:06 wsanchez Exp $
PROG= ypwhich
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: ypwhich.1,v 1.1.1.1 1999/05/02 03:59:06 wsanchez Exp $
+.\" $Id: ypwhich.1,v 1.1 1999/05/02 03:59:06 wsanchez Exp $
.\"
.Dd February 23, 1994
.Dt YPWHICH 1
*/
#ifndef LINT
-static char rcsid[] = "$Id: ypwhich.c,v 1.1.1.1 1999/05/02 03:59:06 wsanchez Exp $";
+static char rcsid[] = "$Id: ypwhich.c,v 1.1 1999/05/02 03:59:06 wsanchez Exp $";
#endif
#include <sys/param.h>