SCCS-vsn: sys/stand.att/stat.c 7.4
SCCS-vsn: sys/netns/idp_usrreq.c 7.13
SCCS-vsn: sys/netns/spp_usrreq.c 7.17
SCCS-vsn: sys/netiso/argo_debug.h 7.5
SCCS-vsn: sys/netiso/clnp.h 7.10
SCCS-vsn: sys/netiso/clnp_debug.c 7.11
SCCS-vsn: sys/netiso/clnp_input.c 7.16
SCCS-vsn: sys/netiso/clnp_raw.c 7.11
SCCS-vsn: sys/netiso/clnp_stat.h 7.5
SCCS-vsn: sys/netiso/cons_pcb.h 7.5
SCCS-vsn: sys/netiso/esis.h 7.5
SCCS-vsn: sys/netiso/if_cons.c 7.13
SCCS-vsn: sys/netiso/iso.c 7.23
SCCS-vsn: sys/netiso/iso.h 7.9
SCCS-vsn: sys/netiso/iso_chksum.c 7.9
SCCS-vsn: sys/netiso/iso_errno.h 7.6
SCCS-vsn: sys/netiso/iso_pcb.c 7.14
SCCS-vsn: sys/netiso/iso_var.h 7.6
SCCS-vsn: sys/netiso/tp_clnp.h 7.5
SCCS-vsn: sys/netiso/tp_cons.c 7.12
SCCS-vsn: sys/netiso/tp_emit.c 7.17
SCCS-vsn: sys/netiso/tp_inet.c 7.12
SCCS-vsn: sys/netiso/tp_input.c 7.32
SCCS-vsn: sys/netiso/tp_ip.h 7.5
SCCS-vsn: sys/netiso/tp_iso.c 7.16
SCCS-vsn: sys/netiso/tp_meas.c 7.6
SCCS-vsn: sys/netiso/tp_meas.h 7.6
SCCS-vsn: sys/netiso/tp_output.c 7.18
SCCS-vsn: sys/netiso/tp_param.h 7.13
SCCS-vsn: sys/netiso/tp_pcb.c 7.26
SCCS-vsn: sys/netiso/tp_pcb.h 7.25
SCCS-vsn: sys/netiso/tp_seq.h 7.6
SCCS-vsn: sys/netiso/tp_stat.h 7.8
SCCS-vsn: sys/netiso/tp_subr.c 7.21
SCCS-vsn: sys/netiso/tp_subr2.c 7.22
SCCS-vsn: sys/netiso/tp_timer.h 7.8
SCCS-vsn: sys/netiso/tp_tpdu.h 7.5
SCCS-vsn: sys/netiso/tp_trace.c 7.6
SCCS-vsn: sys/netiso/tp_trace.h 7.8
SCCS-vsn: sys/netiso/tp_user.h 7.14
SCCS-vsn: sys/netiso/tp_usrreq.c 7.28
41 files changed:
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)argo_debug.h 7.4 (Berkeley) %G%
+ * @(#)argo_debug.h 7.5 (Berkeley) %G%
*/
/*****************************************************************
*/
/*****************************************************************
* lint can't handle the flaky vacuous definitions
* of IFDEBUG, ENDDEBUG, etc.
*/
* lint can't handle the flaky vacuous definitions
* of IFDEBUG, ENDDEBUG, etc.
*/
+#endif /* defined(lint) */
/***********************************************
* DEBUG ON:
**********************************************/
#ifndef ARGO_DEBUG
#define ARGO_DEBUG
/***********************************************
* DEBUG ON:
**********************************************/
#ifndef ARGO_DEBUG
#define ARGO_DEBUG
if(argo_debug[ascii]) {
#define ENDDEBUG ; }
if(argo_debug[ascii]) {
#define ENDDEBUG ; }
/***********************************************
* DEBUG OFF:
/***********************************************
* DEBUG OFF:
#ifndef STAR
#define STAR *
#ifndef STAR
#define STAR *
#define IFDEBUG(ascii) //*beginning of comment*/STAR
#define ENDDEBUG STAR/*end of comment*//
#define IFDEBUG(ascii) //*beginning of comment*/STAR
#define ENDDEBUG STAR/*end of comment*//
/***********************************************
* ASSERT
/***********************************************
* ASSERT
#ifndef lint
#define ASSERT(phrase) \
if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
#ifndef lint
#define ASSERT(phrase) \
if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
#define ASSERT(phrase) /* phrase */
#define ASSERT(phrase) /* phrase */
#define ASSERT(phrase) /* phrase */
#define ASSERT(phrase) /* phrase */
/***********************************************
/***********************************************
#define TPMT_PCB 0x23
#define TPMT_PERF 0x45
#define TPMT_PCB 0x23
#define TPMT_PERF 0x45
#define TPMT_DATA MT_DATA
#define TPMT_RCVRTC MT_DATA
#define TPMT_DATA MT_DATA
#define TPMT_RCVRTC MT_DATA
#define TPMT_PCB MT_PCB
#define TPMT_PERF MT_PCB
#define TPMT_PCB MT_PCB
#define TPMT_PERF MT_PCB
+#endif /* __ARGO_DEBUG__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)clnp.h 7.9 (Berkeley) %G%
+ * @(#)clnp.h 7.10 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#else
#define BYTE_ORDER BIG_ENDIAN /* mc68000, tahoe, most others */
#endif
#else
#define BYTE_ORDER BIG_ENDIAN /* mc68000, tahoe, most others */
#endif
/* should be config option but cpp breaks with too many #defines */
#define DECBIT
/* should be config option but cpp breaks with too many #defines */
#define DECBIT
#define SN_MTU(ifp, rt) (((rt && rt->rt_rmx.rmx_mtu) ?\
rt->rt_rmx.rmx_mtu : clnp_badmtu(ifp, rt, __LINE__, __FILE__)))
#define SN_MTU(ifp, rt) (((rt && rt->rt_rmx.rmx_mtu) ?\
rt->rt_rmx.rmx_mtu : clnp_badmtu(ifp, rt, __LINE__, __FILE__)))
/*
* Macro to remove an address from a clnp header
/*
* Macro to remove an address from a clnp header
struct mbuf *clnp_reass();
#ifdef TROLL
struct troll trollctl;
struct mbuf *clnp_reass();
#ifdef TROLL
struct troll trollctl;
-#endif TROLL
-#endif KERNEL
+#endif /* TROLL */
+#endif /* KERNEL */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)clnp_debug.c 7.10 (Berkeley) %G%
+ * @(#)clnp_debug.c 7.11 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
{0x00, 0x04},
{0x00, 0x02, 0x00, 0x01, 0x23, 0x42, 0x78, 0x20, 0x01, 0x05, 0x00}
};
{0x00, 0x04},
{0x00, 0x02, 0x00, 0x01, 0x23, 0x42, 0x78, 0x20, 0x01, 0x05, 0x00}
};
struct addr_rfc986 u_rfc986 = {
{0x00, 0x06},
{0x01, 0xc0, 0x0c, 0x0c, 0xab, 0x11}
struct addr_rfc986 u_rfc986 = {
{0x00, 0x06},
{0x01, 0xc0, 0x0c, 0x0c, 0xab, 0x11}
a.isoa_len = 9;
printf("type bad idi: %s\n", clnp_iso_addrp(&a));
}
a.isoa_len = 9;
printf("type bad idi: %s\n", clnp_iso_addrp(&a));
}
unsigned int clnp_debug;
static char letters[] = "0123456789abcdef";
unsigned int clnp_debug;
static char letters[] = "0123456789abcdef";
cp = clnp_hexp(&o986->o986_inetaddr[3], 1, cp);
*cp++ = DELIM;
cp = clnp_hexp(&o986->o986_upid, 1, cp);
cp = clnp_hexp(&o986->o986_inetaddr[3], 1, cp);
*cp++ = DELIM;
cp = clnp_hexp(&o986->o986_upid, 1, cp);
*cp = (char)0;
return(iso_addr_b);
*cp = (char)0;
return(iso_addr_b);
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)clnp_input.c 7.15 (Berkeley) %G%
+ * @(#)clnp_input.c 7.16 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#ifdef ISO_X25ESIS
int x25esis_input();
#ifdef ISO_X25ESIS
int x25esis_input();
+#endif /* ISO_X25ESIS */
if (need_afrin)
INCSTAT(cns_congest_rcvd);
}
if (need_afrin)
INCSTAT(cns_congest_rcvd);
}
if (errcode != 0) {
clnp_discard(m, (char)errcode);
if (errcode != 0) {
clnp_discard(m, (char)errcode);
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)clnp_raw.c 7.10 (Berkeley) %G%
+ * @(#)clnp_raw.c 7.11 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
if (raw_input(m, &rclnp_proto, (struct sockaddr *)src,
(struct sockaddr *)dst) == 0) {
if (raw_input(m, &rclnp_proto, (struct sockaddr *)src,
(struct sockaddr *)dst) == 0) {
else switch (op) {
#else
switch (op) {
else switch (op) {
#else
switch (op) {
+#endif /* SOL_NETWORK */
case PRCO_SETOPT:
switch (optname) {
case CLNPOPT_FLAGS: {
case PRCO_SETOPT:
switch (optname) {
case CLNPOPT_FLAGS: {
break;
default:
error = EINVAL;
break;
default:
error = EINVAL;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)clnp_stat.h 7.4 (Berkeley) %G%
+ * @(#)clnp_stat.h 7.5 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#ifdef INCSTAT
#undef INCSTAT
#ifdef INCSTAT
#undef INCSTAT
#define INCSTAT(x) clnp_stat./**/x/**/++
#define INCSTAT(x) clnp_stat./**/x/**/++
+#endif /* __CLNP_STAT__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)cons_pcb.h 7.4 (Berkeley) %G%
+ * @(#)cons_pcb.h 7.5 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#ifndef ARGO_DEBUG
#define X25_TTL 600 /* 5 min */
#ifndef ARGO_DEBUG
#define X25_TTL 600 /* 5 min */
#define X25_TTL 120 /* 1 min */
#define X25_TTL 120 /* 1 min */
struct cons_pcb {
struct isopcb _co_isopcb;
struct cons_pcb {
struct isopcb _co_isopcb;
#ifdef KERNEL
#define IncStat(XYZ) cons_stat.XYZ++
#ifdef KERNEL
#define IncStat(XYZ) cons_stat.XYZ++
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)esis.h 7.4 (Berkeley) %G%
+ * @(#)esis.h 7.5 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#else
#define BYTE_ORDER BIG_ENDIAN /* mc68000, tahoe, most others */
#endif
#else
#define BYTE_ORDER BIG_ENDIAN /* mc68000, tahoe, most others */
#endif
#define SNPAC_AGE 60 /* seconds */
#define ESIS_CONFIG 60 /* seconds */
#define SNPAC_AGE 60 /* seconds */
#define ESIS_CONFIG 60 /* seconds */
#ifdef KERNEL
struct esis_stat esis_stat;
#ifdef KERNEL
struct esis_stat esis_stat;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)if_cons.c 7.12 (Berkeley) %G%
+ * @(#)if_cons.c 7.13 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#ifdef ARGO_DEBUG
#define Static
unsigned LAST_CALL_PCB;
#ifdef ARGO_DEBUG
#define Static
unsigned LAST_CALL_PCB;
#ifndef SOCK_STREAM
#include <sys/param.h>
#ifndef SOCK_STREAM
#include <sys/param.h>
#define MT_XCONFIRM MT_DATA
#define MT_XDATA MT_DATA
#define MT_XHEADER MT_HEADER
#define MT_XCONFIRM MT_DATA
#define MT_XDATA MT_DATA
#define MT_XHEADER MT_HEADER
#ifndef PHASEONE
extern struct ifaddr *ifa_ifwithnet();
#ifndef PHASEONE
extern struct ifaddr *ifa_ifwithnet();
extern struct ifaddr *ifa_ifwithaddr();
extern struct ifaddr *ifa_ifwithaddr();
/*
* NAME: make_partial_x25_packet()
/*
* NAME: make_partial_x25_packet()
#ifdef X25_1984
int cons_use_facils = 1;
#ifdef X25_1984
int cons_use_facils = 1;
int cons_use_udata = 1; /* KLUDGE FOR DEBUGGING */
int cons_use_udata = 1; /* KLUDGE FOR DEBUGGING */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)iso.c 7.22 (Berkeley) %G%
+ * @(#)iso.c 7.23 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
return ((lena == lenb) && (!bcmp(bufa, bufb, lena)));
}
return ((lena == lenb) && (!bcmp(bufa, bufb, lena)));
}
/*
* FUNCTION: iso_hashchar
/*
* FUNCTION: iso_hashchar
/*
* Generic iso control operations (ioctl's).
* Ifp is 0 if not an interface-specific ioctl.
/*
* Generic iso control operations (ioctl's).
* Ifp is 0 if not an interface-specific ioctl.
return ((struct ifaddr *)0);
}
return ((struct ifaddr *)0);
}
/*
* FUNCTION: iso_ck_addr
*
/*
* FUNCTION: iso_ck_addr
*
/*
* FUNCTION: iso_localifa()
*
/*
* FUNCTION: iso_localifa()
*
#ifdef TPCONS
#include <netiso/cons.h>
#ifdef TPCONS
#include <netiso/cons.h>
/*
* FUNCTION: iso_nlctloutput
*
/*
* FUNCTION: iso_nlctloutput
*
bcopy(data, (caddr_t)isop->isop_x25crud, (unsigned)data_len);
isop->isop_x25crud_len = data_len;
break;
bcopy(data, (caddr_t)isop->isop_x25crud, (unsigned)data_len);
isop->isop_x25crud_len = data_len;
break;
default:
error = EOPNOTSUPP;
default:
error = EOPNOTSUPP;
m_freem(m);
return error;
}
m_freem(m);
return error;
}
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)iso.h 7.8 (Berkeley) %G%
+ * @(#)iso.h 7.9 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#ifndef IN_CLASSA_NET
#include <netinet/in.h>
#ifndef IN_CLASSA_NET
#include <netinet/in.h>
+#endif /* IN_CLASSA_NET */
#endif /* KERNEL */
#define _offsetof(t, m) ((int)((caddr_t)&((t *)0)->m))
#endif /* KERNEL */
#define _offsetof(t, m) ((int)((caddr_t)&((t *)0)->m))
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)iso_chksum.c 7.8 (Berkeley) %G%
+ * @(#)iso_chksum.c 7.9 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
#ifndef MNULL
#define MNULL (struct mbuf *)0
#ifndef MNULL
#define MNULL (struct mbuf *)0
/*
* FUNCTION: iso_check_csum
/*
* FUNCTION: iso_check_csum
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)iso_errno.h 7.5 (Berkeley) %G%
+ * @(#)iso_errno.h 7.6 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#define CONL_ERROR_MAX 0x1c3
#define CONL_ERROR_MAX 0x1c3
+#endif /* __ISO_ERRNO__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)iso_pcb.c 7.13 (Berkeley) %G%
+ * @(#)iso_pcb.c 7.14 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
}
return (struct isopcb *)0;
}
}
return (struct isopcb *)0;
}
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)iso_var.h 7.5 (Berkeley) %G%
+ * @(#)iso_var.h 7.6 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
struct iso_ifaddr *iso_ifaddr; /* linked list of iso address ifaces */
struct iso_ifaddr *iso_localifa(); /* linked list of iso address ifaces */
struct ifqueue clnlintrq; /* clnl packet input queue */
struct iso_ifaddr *iso_ifaddr; /* linked list of iso address ifaces */
struct iso_ifaddr *iso_localifa(); /* linked list of iso address ifaces */
struct ifqueue clnlintrq; /* clnl packet input queue */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_clnp.h 7.4 (Berkeley) %G%
+ * @(#)tp_clnp.h 7.5 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#ifndef SOCK_STREAM
#include <sys/socket.h>
#ifndef SOCK_STREAM
#include <sys/socket.h>
+#endif /* SOCK_STREAM */
#ifndef RTFREE
#include <net/route.h>
#ifndef RTFREE
#include <net/route.h>
struct isopcb tp_isopcb;
/* queue of active inpcbs for tp ; for tp with dod ip */
struct isopcb tp_isopcb;
/* queue of active inpcbs for tp ; for tp with dod ip */
+#endif /* __TP_CLNP__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_cons.c 7.11 (Berkeley) %G%
+ * @(#)tp_cons.c 7.12 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
{
return tpcons_output(((struct pklcd *)chan)->lcd_upnext, m0, datalen, 0);
}
{
return tpcons_output(((struct pklcd *)chan)->lcd_upnext, m0, datalen, 0);
}
-#endif TPCONS
-#endif ISO
+#endif /* TPCONS */
+#endif /* ISO */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_emit.c 7.16 (Berkeley) %G%
+ * @(#)tp_emit.c 7.17 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
hdr->tpdu_seqeotX = htonl(seqeotX.s_seqeot);
#else
hdr->tpdu_XAKseqX = seq;
hdr->tpdu_seqeotX = htonl(seqeotX.s_seqeot);
#else
hdr->tpdu_XAKseqX = seq;
} else {
hdr->tpdu_XAKseq = seq;
}
} else {
hdr->tpdu_XAKseq = seq;
}
#else
hdr->tpdu_XPDseqX = seq;
hdr->tpdu_XPDeotX = 1; /* always 1 for XPD tpdu */
#else
hdr->tpdu_XPDseqX = seq;
hdr->tpdu_XPDeotX = 1; /* always 1 for XPD tpdu */
} else {
hdr->tpdu_XPDseq = seq;
hdr->tpdu_XPDeot = 1; /* always 1 for XPD tpdu */
} else {
hdr->tpdu_XPDseq = seq;
hdr->tpdu_XPDeot = 1; /* always 1 for XPD tpdu */
#else
hdr->tpdu_DTseqX = seq;
hdr->tpdu_DTeotX = eot;
#else
hdr->tpdu_DTseqX = seq;
hdr->tpdu_DTeotX = eot;
} else if (tpcb->tp_class == TP_CLASS_0) {
IFDEBUG(D_EMIT)
printf("DT tpdu: class 0 m 0x%x hdr 0x%x\n", m, hdr);
} else if (tpcb->tp_class == TP_CLASS_0) {
IFDEBUG(D_EMIT)
printf("DT tpdu: class 0 m 0x%x hdr 0x%x\n", m, hdr);
hdr->tpdu_cdt = 0;
hdr->tpdu_AKseqX = seq;
hdr->tpdu_AKcdtX = tpcb->tp_lcredit;
hdr->tpdu_cdt = 0;
hdr->tpdu_AKseqX = seq;
hdr->tpdu_AKcdtX = tpcb->tp_lcredit;
} else {
hdr->tpdu_AKseq = seq;
hdr->tpdu_AKcdt = tpcb->tp_lcredit;
} else {
hdr->tpdu_AKseq = seq;
hdr->tpdu_AKcdt = tpcb->tp_lcredit;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_inet.c 7.11 (Berkeley) %G%
+ * @(#)tp_inet.c 7.12 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
{
printf("INET: port 0x%x; addr 0x%x\n", addr->sin_port, addr->sin_addr);
}
{
printf("INET: port 0x%x; addr 0x%x\n", addr->sin_port, addr->sin_addr);
}
-#endif ARGO_DEBUG
-#endif INET
+#endif /* ARGO_DEBUG */
+#endif /* INET */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_input.c 7.31 (Berkeley) %G%
+ * @(#)tp_input.c 7.32 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
u_char opt, dusize, addlopt, version;
#ifdef TP_PERF_MEAS
u_char perf_meas;
u_char opt, dusize, addlopt, version;
#ifdef TP_PERF_MEAS
u_char perf_meas;
+#endif /* TP_PERF_MEAS */
u_char fsufxlen, lsufxlen;
caddr_t fsufxloc, lsufxloc;
int tpdu_len;
u_char fsufxlen, lsufxlen;
caddr_t fsufxloc, lsufxloc;
int tpdu_len;
dusize = TP_DFL_TPDUSIZE;
#ifdef TP_PERF_MEAS
GET_CUR_TIME( &e.e_time ); perf_meas = 0;
dusize = TP_DFL_TPDUSIZE;
#ifdef TP_PERF_MEAS
GET_CUR_TIME( &e.e_time ); perf_meas = 0;
+#endif /* TP_PERF_MEAS */
IFDEBUG(D_TPINPUT)
printf("tp_input(0x%x, ... 0x%x)\n", m, cons_channel);
IFDEBUG(D_TPINPUT)
printf("tp_input(0x%x, ... 0x%x)\n", m, cons_channel);
IncStat(ts_inv_dutype);
goto discard;
}
IncStat(ts_inv_dutype);
goto discard;
}
CHECK( (dutype < TP_MIN_TPDUTYPE || dutype > TP_MAX_TPDUTYPE),
E_TP_INV_TPDU, ts_inv_dutype, respond,
CHECK( (dutype < TP_MIN_TPDUTYPE || dutype > TP_MAX_TPDUTYPE),
E_TP_INV_TPDU, ts_inv_dutype, respond,
case TPP_perf_meas:
vb_getval(P, u_char, perf_meas);
break;
case TPP_perf_meas:
vb_getval(P, u_char, perf_meas);
break;
+#endif /* TP_PERF_MEAS */
case TPP_vers:
/* not in class 0; 1 octet; in CR_TPDU only */
case TPP_vers:
/* not in class 0; 1 octet; in CR_TPDU only */
tpp.p_use_efc = (opt & TPO_USE_EFC) == TPO_USE_EFC;
tpp.p_use_nxpd = (addlopt & TPAO_USE_NXPD) == TPAO_USE_NXPD;
tpp.p_use_rcc = (addlopt & TPAO_USE_RCC) == TPAO_USE_RCC;
tpp.p_use_efc = (opt & TPO_USE_EFC) == TPO_USE_EFC;
tpp.p_use_nxpd = (addlopt & TPAO_USE_NXPD) == TPAO_USE_NXPD;
tpp.p_use_rcc = (addlopt & TPAO_USE_RCC) == TPAO_USE_RCC;
CHECK(
tp_consistency(tpcb, 0 /* not force or strict */, &tpp) != 0,
CHECK(
tp_consistency(tpcb, 0 /* not force or strict */, &tpp) != 0,
*/
(void) tp_setup_perf(tpcb);
}
*/
(void) tp_setup_perf(tpcb);
}
+#endif /* TP_PERF_MEAS */
tpcb->tp_fref = sref;
/* We've already checked for consistency with the options
tpcb->tp_fref = sref;
/* We've already checked for consistency with the options
* to pass this info to the user anyway
*/
break;
* to pass this info to the user anyway
*/
break;
caseof( AK_TPDU_type, TPP_subseq ):
/* used after reduction of window */
caseof( AK_TPDU_type, TPP_subseq ):
/* used after reduction of window */
tpp.p_use_efc = (opt & TPO_USE_EFC) == TPO_USE_EFC;
tpp.p_use_nxpd = (addlopt & TPAO_USE_NXPD) == TPAO_USE_NXPD;
tpp.p_use_rcc = (addlopt & TPAO_USE_RCC) == TPAO_USE_RCC;
tpp.p_use_efc = (opt & TPO_USE_EFC) == TPO_USE_EFC;
tpp.p_use_nxpd = (addlopt & TPAO_USE_NXPD) == TPAO_USE_NXPD;
tpp.p_use_rcc = (addlopt & TPAO_USE_RCC) == TPAO_USE_RCC;
CHECK(
tp_consistency(tpcb, TP_FORCE, &tpp) != 0,
CHECK(
tp_consistency(tpcb, TP_FORCE, &tpp) != 0,
#else
e.ATTR(AK_TPDU).e_cdt = hdr->tpdu_AKcdtX;
e.ATTR(AK_TPDU).e_seq = hdr->tpdu_AKseqX;
#else
e.ATTR(AK_TPDU).e_cdt = hdr->tpdu_AKcdtX;
e.ATTR(AK_TPDU).e_seq = hdr->tpdu_AKseqX;
} else {
e.ATTR(AK_TPDU).e_cdt = hdr->tpdu_AKcdt;
e.ATTR(AK_TPDU).e_seq = hdr->tpdu_AKseq;
} else {
e.ATTR(AK_TPDU).e_cdt = hdr->tpdu_AKcdt;
e.ATTR(AK_TPDU).e_seq = hdr->tpdu_AKseq;
e.ATTR(XAK_TPDU).e_seq = seqeotX.s_seq;
#else
e.ATTR(XAK_TPDU).e_seq = hdr->tpdu_XAKseqX;
e.ATTR(XAK_TPDU).e_seq = seqeotX.s_seq;
#else
e.ATTR(XAK_TPDU).e_seq = hdr->tpdu_XAKseqX;
} else {
e.ATTR(XAK_TPDU).e_seq = hdr->tpdu_XAKseq;
}
} else {
e.ATTR(XAK_TPDU).e_seq = hdr->tpdu_XAKseq;
}
e.ATTR(XPD_TPDU).e_seq = seqeotX.s_seq;
#else
e.ATTR(XPD_TPDU).e_seq = hdr->tpdu_XPDseqX;
e.ATTR(XPD_TPDU).e_seq = seqeotX.s_seq;
#else
e.ATTR(XPD_TPDU).e_seq = hdr->tpdu_XPDseqX;
} else {
e.ATTR(XPD_TPDU).e_seq = hdr->tpdu_XPDseq;
}
} else {
e.ATTR(XPD_TPDU).e_seq = hdr->tpdu_XPDseq;
}
#else
e.ATTR(DT_TPDU).e_seq = hdr->tpdu_DTseqX;
e.ATTR(DT_TPDU).e_eot = hdr->tpdu_DTeotX;
#else
e.ATTR(DT_TPDU).e_seq = hdr->tpdu_DTseqX;
e.ATTR(DT_TPDU).e_eot = hdr->tpdu_DTeotX;
} else {
e.ATTR(DT_TPDU).e_seq = hdr->tpdu_DTseq;
e.ATTR(DT_TPDU).e_eot = hdr->tpdu_DTeot;
} else {
e.ATTR(DT_TPDU).e_seq = hdr->tpdu_DTseq;
e.ATTR(DT_TPDU).e_eot = hdr->tpdu_DTeot;
#ifdef lint
printf("",sref,opt);
#ifdef lint
printf("",sref,opt);
IncStat(ts_recv_drop);
return (ProtoHook)0;
}
IncStat(ts_recv_drop);
return (ProtoHook)0;
}
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_ip.h 7.4 (Berkeley) %G%
+ * @(#)tp_ip.h 7.5 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
struct inpcb tp_inpcb;
/* queue of active inpcbs for tp ; for tp with dod ip */
struct inpcb tp_inpcb;
/* queue of active inpcbs for tp ; for tp with dod ip */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_iso.c 7.15 (Berkeley) %G%
+ * @(#)tp_iso.c 7.16 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_meas.c 7.5 (Berkeley) %G%
+ * @(#)tp_meas.c 7.6 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
+#endif /* TP_PERF_MEAS */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_meas.h 7.5 (Berkeley) %G%
+ * @(#)tp_meas.h 7.6 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#define TPtime_open_X 0x28 /* xtd format */
#define TPtime_close 0x09
#define TPtime_open_X 0x28 /* xtd format */
#define TPtime_close 0x09
+#endif /* TP_PERF_MEAS */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_output.c 7.17 (Berkeley) %G%
+ * @(#)tp_output.c 7.18 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#else
error = EOPNOTSUPP;
goto done;
#else
error = EOPNOTSUPP;
goto done;
+#endif /* TP_PERF_MEAS */
case TPOPT_CDDATA_CLEAR:
if (cmd == PRCO_GETOPT) {
case TPOPT_CDDATA_CLEAR:
if (cmd == PRCO_GETOPT) {
}
if( tpcb->tp_perf_on )
error = tp_setup_perf(tpcb);
}
if( tpcb->tp_perf_on )
error = tp_setup_perf(tpcb);
+#else /* TP_PERF_MEAS */
+#endif /* TP_PERF_MEAS */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_param.h 7.12 (Berkeley) %G%
+ * @(#)tp_param.h 7.13 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
*****************************************************/
#ifndef TRUE
#define TRUE 1
*****************************************************/
#ifndef TRUE
#define TRUE 1
#ifndef FALSE
#define FALSE 0
#ifndef FALSE
#define FALSE 0
#define TP_LOCAL 22
#define TP_FOREIGN 33
#ifndef EOK
#define EOK 0
#define TP_LOCAL 22
#define TP_FOREIGN 33
#ifndef EOK
#define EOK 0
#define TP_CLASS_0 (1<<0)
#define TP_CLASS_1 (1<<1)
#define TP_CLASS_0 (1<<0)
#define TP_CLASS_1 (1<<1)
#ifndef MNULL
#define MNULL (struct mbuf *)0
#ifndef MNULL
#define MNULL (struct mbuf *)0
/* if ../sys/mbuf.h gets MT_types up to 0x40, these will
* have to be changed:
*/
/* if ../sys/mbuf.h gets MT_types up to 0x40, these will
* have to be changed:
*/
} else \
(tpcb)->tp_lcredit = xxi; \
} }
} else \
(tpcb)->tp_lcredit = xxi; \
} }
#ifdef KERNEL
extern int tp_rttadd, tp_rttdiv;
#ifdef KERNEL
extern int tp_rttadd, tp_rttdiv;
#define ATTR(X) ev_union.EV_ ## X
#endif /* defined(__STDC__) || defined(__cplusplus) */
#define ATTR(X) ev_union.EV_ ## X
#endif /* defined(__STDC__) || defined(__cplusplus) */
-#endif tp_NSTATES
-#endif KERNEL
+#endif /* tp_NSTATES */
+#endif /* KERNEL */
+#endif /* __TP_PARAM__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_pcb.c 7.25 (Berkeley) %G%
+ * @(#)tp_pcb.c 7.26 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
int tpip_output();
int tpip_output_dg();
struct inpcb tp_inpcb;
int tpip_output();
int tpip_output_dg();
struct inpcb tp_inpcb;
#ifdef ISO
int iso_putnetaddr();
int iso_getnetaddr();
#ifdef ISO
int iso_putnetaddr();
int iso_getnetaddr();
int tpclnp_output_dg();
int iso_nlctloutput();
struct isopcb tp_isopcb;
int tpclnp_output_dg();
int iso_nlctloutput();
struct isopcb tp_isopcb;
#ifdef TPCONS
int iso_putnetaddr();
int iso_getnetaddr();
#ifdef TPCONS
int iso_putnetaddr();
int iso_getnetaddr();
int iso_pcballoc();
int tpcons_output();
struct isopcb tp_isopcb;
int iso_pcballoc();
int tpcons_output();
struct isopcb tp_isopcb;
struct nl_protosw nl_protosw[] = {
struct nl_protosw nl_protosw[] = {
/* IN_CLNS */
#ifdef INET
{ AF_INET, in_putnetaddr, in_getnetaddr, in_cmpnetaddr,
/* IN_CLNS */
#ifdef INET
{ AF_INET, in_putnetaddr, in_getnetaddr, in_cmpnetaddr,
/* ISO_CONS */
#if defined(ISO) && defined(TPCONS)
{ AF_ISO, iso_putnetaddr, iso_getnetaddr, iso_cmpnetaddr,
/* ISO_CONS */
#if defined(ISO) && defined(TPCONS)
{ AF_ISO, iso_putnetaddr, iso_getnetaddr, iso_cmpnetaddr,
/* End of protosw marker */
{ 0 }
};
/* End of protosw marker */
{ 0 }
};
tpcb->tp_p_meas = 0;
tpcb->tp_p_mbuf = 0;
}
tpcb->tp_p_meas = 0;
tpcb->tp_p_mbuf = 0;
}
+#endif /* TP_PERF_MEAS */
IFDEBUG(D_CONN)
printf( "end of detach, NOT single, tpcb 0x%x\n", tpcb);
IFDEBUG(D_CONN)
printf( "end of detach, NOT single, tpcb 0x%x\n", tpcb);
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_pcb.h 7.24 (Berkeley) %G%
+ * @(#)tp_pcb.h 7.25 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#include <netiso/tp_user.h>
#ifndef sblock
#include <sys/socketvar.h>
#include <netiso/tp_user.h>
#ifndef sblock
#include <sys/socketvar.h>
/* NOTE: the code depends on REF_CLOSED > REF_OPEN > the rest, and
* on REF_FREE being zero
/* NOTE: the code depends on REF_CLOSED > REF_OPEN > the rest, and
* on REF_FREE being zero
/* performance stats - see tp_stat.h */
struct tp_pmeas *tp_p_meas;
struct mbuf *tp_p_mbuf;
/* performance stats - see tp_stat.h */
struct tp_pmeas *tp_p_meas;
struct mbuf *tp_p_mbuf;
+#endif /* TP_PERF_MEAS */
/* addressing */
u_short tp_domain; /* domain (INET, ISO) */
/* addressing */
u_short tp_domain; /* domain (INET, ISO) */
#define tpcbtoso(tp) ((struct socket *)((tp)->tp_sock))
#define tpcbtoref(tp) ((struct tp_ref *)((tp)->tp_ref))
#define tpcbtoso(tp) ((struct socket *)((tp)->tp_sock))
#define tpcbtoref(tp) ((struct tp_ref *)((tp)->tp_ref))
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_seq.h 7.5 (Berkeley) %G%
+ * @(#)tp_seq.h 7.6 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#define IN_SWINDOW(tpcb, seq, lwe, uwe)\
( SEQ_GT(tpcb, seq, lwe) && SEQ_LEQ(tpcb, seq, uwe) )
#define IN_SWINDOW(tpcb, seq, lwe, uwe)\
( SEQ_GT(tpcb, seq, lwe) && SEQ_LEQ(tpcb, seq, uwe) )
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_stat.h 7.7 (Berkeley) %G%
+ * @(#)tp_stat.h 7.8 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#define IFPERF(x) if (0) {
#define ENDPERF }
#define IFPERF(x) if (0) {
#define ENDPERF }
+#endif /* TP_PERF_MEAS */
+#endif /* __TP_STAT__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_subr.c 7.20 (Berkeley) %G%
+ * @(#)tp_subr.c 7.21 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#ifdef TP_PERF_MEAS
int send_start_time = ticks;
SeqNum oldnxt = tpcb->tp_sndnxt;
#ifdef TP_PERF_MEAS
int send_start_time = ticks;
SeqNum oldnxt = tpcb->tp_sndnxt;
+#endif /* TP_PERF_MEAS */
idle = (tpcb->tp_snduna == tpcb->tp_sndnew);
if (idle) {
idle = (tpcb->tp_snduna == tpcb->tp_sndnew);
if (idle) {
TPsbsend, &elapsed, newseq, tpcb->tp_Nwindow, npkts);
}
ENDPERF
TPsbsend, &elapsed, newseq, tpcb->tp_Nwindow, npkts);
}
ENDPERF
+#endif /* TP_PERF_MEAS */
/* 1--> ack each tpdu */
#ifndef lint
#define E e->ATTR(DT_TPDU)
/* 1--> ack each tpdu */
#ifndef lint
#define E e->ATTR(DT_TPDU)
#define E e->ev_union.EV_DT_TPDU
#define E e->ev_union.EV_DT_TPDU
if ( E.e_eot ) {
register struct mbuf *n = E.e_data;
if ( E.e_eot ) {
register struct mbuf *n = E.e_data;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_subr2.c 7.21 (Berkeley) %G%
+ * @(#)tp_subr2.c 7.22 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
printf("tp_netcmd(0x%x, 0x%x) NOT IMPLEMENTED\n", tpcb, cmd);
break;
}
printf("tp_netcmd(0x%x, 0x%x) NOT IMPLEMENTED\n", tpcb, cmd);
break;
}
printf("tp_netcmd(): X25 NOT CONFIGURED!!\n");
#endif
}
printf("tp_netcmd(): X25 NOT CONFIGURED!!\n");
#endif
}
{
#ifndef lint
#define E e->ATTR(DT_TPDU)
{
#ifndef lint
#define E e->ATTR(DT_TPDU)
#define E e->ev_union.EV_DT_TPDU
#define E e->ev_union.EV_DT_TPDU
register struct sockbuf *sb = &tpcb->tp_sock->so_rcv;
register struct isopcb *isop = (struct isopcb *)tpcb->tp_npcb;
register struct sockbuf *sb = &tpcb->tp_sock->so_rcv;
register struct isopcb *isop = (struct isopcb *)tpcb->tp_npcb;
+#endif /* TP_PERF_MEAS */
#ifdef ARGO_DEBUG
dump_addr (addr)
#ifdef ARGO_DEBUG
dump_addr (addr)
case AF_ISO:
dump_isoaddr((struct sockaddr_iso *)addr);
break;
case AF_ISO:
dump_isoaddr((struct sockaddr_iso *)addr);
break;
default:
printf("BAD AF: 0x%x\n", addr->sa_family);
break;
default:
printf("BAD AF: 0x%x\n", addr->sa_family);
break;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_timer.h 7.7 (Berkeley) %G%
+ * @(#)tp_timer.h 7.8 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#define tp_euntimeout tp_cuntimeout
#define tp_ctimeout_MIN(p, w, t) \
{ if((p)->tp_timer[w] > (t)) (p)->tp_timer[w] = (t);}
#define tp_euntimeout tp_cuntimeout
#define tp_ctimeout_MIN(p, w, t) \
{ if((p)->tp_timer[w] > (t)) (p)->tp_timer[w] = (t);}
+#endif /* TP_DEBUG_TIMERS */
+#endif /* __TP_TIMER__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_tpdu.h 7.4 (Berkeley) %G%
+ * @(#)tp_tpdu.h 7.5 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#else
#define BYTE_ORDER BIG_ENDIAN /* mc68000, tahoe, most others */
#endif
#else
#define BYTE_ORDER BIG_ENDIAN /* mc68000, tahoe, most others */
#endif
/* This much of a tpdu is the same for all types of tpdus (except
* DT tpdus in class 0; their exceptions are handled by the data
/* This much of a tpdu is the same for all types of tpdus (except
* DT tpdus in class 0; their exceptions are handled by the data
union tpdu_fixed_rest _tpdufr;
};
union tpdu_fixed_rest _tpdufr;
};
+#endif /* __TP_TPDU__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_trace.c 7.5 (Berkeley) %G%
+ * @(#)tp_trace.c 7.6 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_trace.h 7.7 (Berkeley) %G%
+ * @(#)tp_trace.h 7.8 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
#define tpt_window tpt_stuff.tpt_Time.tptv_window
#define tpt_size tpt_stuff.tpt_Time.tptv_size
#define tpt_window tpt_stuff.tpt_Time.tptv_window
#define tpt_size tpt_stuff.tpt_Time.tptv_size
-#endif defined(TP_TRACEFILE)||!defined(KERNEL)
+#endif /* defined(TP_TRACEFILE)||!defined(KERNEL) */
/***********************************************
* NO TPPT TRACE STUFF
/***********************************************
* NO TPPT TRACE STUFF
#define IFTRACE(ascii) if (0) {
#define ENDTRACE }
#define IFTRACE(ascii) if (0) {
#define ENDTRACE }
+#endif /* __TP_TRACE__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_user.h 7.13 (Berkeley) %G%
+ * @(#)tp_user.h 7.14 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
+#endif /* __TP_USER__ */
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tp_usrreq.c 7.27 (Berkeley) %G%
+ * @(#)tp_usrreq.c 7.28 (Berkeley) %G%
*/
/***********************************************************
*/
/***********************************************************
if (n->m_next == n) {
printf("LOOP!\n");
return;
if (n->m_next == n) {
printf("LOOP!\n");
return;
default:
#ifdef ARGO_DEBUG
printf("tp_usrreq UNKNOWN PRU %d\n", req);
default:
#ifdef ARGO_DEBUG
printf("tp_usrreq UNKNOWN PRU %d\n", req);
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)idp_usrreq.c 7.12 (Berkeley) %G%
+ * @(#)idp_usrreq.c 7.13 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
}
}
nsp->nsp_lastdst = idp->idp_dna;
}
}
nsp->nsp_lastdst = idp->idp_dna;
+#endif /* ancient_history */
if (noIdpRoute) ro = 0;
return (ns_output(m, ro, so->so_options & SO_BROADCAST));
}
if (noIdpRoute) ro = 0;
return (ns_output(m, ro, so->so_options & SO_BROADCAST));
}
case SO_NSIP_ROUTE:
error = nsip_route(*value);
break;
case SO_NSIP_ROUTE:
error = nsip_route(*value);
break;
default:
error = EINVAL;
}
default:
error = EINVAL;
}
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)spp_usrreq.c 7.16 (Berkeley) %G%
+ * @(#)spp_usrreq.c 7.17 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
#ifndef lint
int SppcbSize = sizeof (struct sppcb);
int NspcbSize = sizeof (struct nspcb);
#ifndef lint
int SppcbSize = sizeof (struct sppcb);
int NspcbSize = sizeof (struct nspcb);
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)stat.c 7.3 (Berkeley) %G%
+ * @(#)stat.c 7.4 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>