diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-03-21 01:09:04 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-03-21 01:09:04 +0000 |
commit | a7d759ab76434bb18219cdd8d99c669937323b5f (patch) | |
tree | a8942bedc901912689c8cb34d9d3f9e2d02a0956 /hdlcstress.c | |
parent | b04ba7d0159f807f3b8a4dc88123e1163506729d (diff) |
Revert accidental changes to hdlcstress.c
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4037 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'hdlcstress.c')
-rw-r--r-- | hdlcstress.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hdlcstress.c b/hdlcstress.c index b473a68..70505a2 100644 --- a/hdlcstress.c +++ b/hdlcstress.c @@ -74,6 +74,7 @@ void send_packet(unsigned char *buf, int len) { int res; int x; + int out; unsigned char outbuf[BLOCK_SIZE]; int pos=0; unsigned int fcs = PPP_INITFCS; @@ -112,13 +113,16 @@ void send_packet(unsigned char *buf, int len) int main(int argc, char *argv[]) { int fd2; - int res; + int ires, res, x; int i; ZT_PARAMS tp; ZT_BUFFERINFO bi; int bs = BLOCK_SIZE; unsigned char c=0; + unsigned char inbuf[BLOCK_SIZE]; unsigned char outbuf[BLOCK_SIZE]; + unsigned int fcs; + static int packets=0; if (argc < 2) { fprintf(stderr, "Usage: markhdlctest <tor device>\n"); exit(1); |