141596Ssklower /* 2*41711Ssklower * Copyright (c) University of British Columbia, 1984 3*41711Ssklower * Copyright (c) 1990 The Regents of the University of California. 4*41711Ssklower * All rights reserved. 5*41711Ssklower * 6*41711Ssklower * This code is derived from software contributed to Berkeley by 7*41711Ssklower * the Laboratory for Computation Vision and the Computer Science Department 8*41711Ssklower * of the University of British Columbia. 9*41711Ssklower * 10*41711Ssklower * %sccs.include.redist.c% 11*41711Ssklower * 12*41711Ssklower * @(#)x25acct.h 7.2 (Berkeley) 05/11/90 13*41711Ssklower */ 14*41711Ssklower 15*41711Ssklower /* 1641596Ssklower * Format of X.25 accounting record written 1741596Ssklower * to X25ACCTF whenever a circuit is closed. 1841596Ssklower */ 1941596Ssklower 2041596Ssklower #ifdef waterloo 2141596Ssklower #define X25ACCTF "/usr/adm/logs/x25acct" 2241596Ssklower #else 2341596Ssklower #define X25ACCTF "/usr/adm/x25acct" 2441596Ssklower #endif 2541596Ssklower 2641596Ssklower struct x25acct { 2741596Ssklower time_t x25acct_stime; /* start time */ 2841596Ssklower #ifdef waterloo 2941596Ssklower u_long x25acct_etime; /* elapsed time (seconds) */ 3041596Ssklower #else 3141596Ssklower u_short x25acct_etime; /* elapsed time (seconds) */ 3241596Ssklower #endif 3341596Ssklower short x25acct_uid; /* user id */ 3441596Ssklower short x25acct_net; /* network id */ 3541596Ssklower u_short x25acct_psize:4, /* packet size */ 3641596Ssklower x25acct_addrlen:4, /* x25acct_addr length */ 3741596Ssklower x25acct_revcharge:1, /* reverse charging */ 3841596Ssklower x25acct_callin:1, /* incoming call */ 3941596Ssklower x25acct_unused:6; 4041596Ssklower char x25acct_addr[8]; /* remote DTE address (in bcd) */ 4141596Ssklower char x25acct_udata[4]; /* protocol id */ 4241596Ssklower long x25acct_txcnt; /* packets transmitted */ 4341596Ssklower long x25acct_rxcnt; /* packets received */ 4441596Ssklower }; 45