141596Ssklower /* 241711Ssklower * Copyright (c) University of British Columbia, 1984 3*63216Sbostic * Copyright (c) 1990, 1993 4*63216Sbostic * The Regents of the University of California. All rights reserved. 541711Ssklower * 641711Ssklower * This code is derived from software contributed to Berkeley by 741711Ssklower * the Laboratory for Computation Vision and the Computer Science Department 841711Ssklower * of the University of British Columbia. 941711Ssklower * 1041711Ssklower * %sccs.include.redist.c% 1141711Ssklower * 12*63216Sbostic * @(#)x25acct.h 8.1 (Berkeley) 06/10/93 1341711Ssklower */ 1441711Ssklower 1541711Ssklower /* 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