From 2cce5212e49f7da676670446db8aa4fc176d7f1d Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 1 Jun 2016 22:24:29 +0000 Subject: added a chan domain. changed some marc stuff. anocheck script for watching for ASN downages. --- contrib/marc/marc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contrib/marc/marc.c') diff --git a/contrib/marc/marc.c b/contrib/marc/marc.c index a83eb9b..d46b576 100644 --- a/contrib/marc/marc.c +++ b/contrib/marc/marc.c @@ -60,8 +60,14 @@ int marc_decode(unsigned char *data,int from_index,int length) { printf("list:\n"); indent++; while(from_index < length) { + +// old code. testing 16 bit lengths. cur_len=data[from_index+3]+(data[from_index+2]<<1)+(data[from_index+1]<<2)+(data[from_index+0]<<3); from_index+=4; + +// cur_len=data[from_index+1]+(data[from_index+0]<<1); +// from_index+=2; + marc_decode(data,from_index,cur_len); from_index+=cur_len; } @@ -153,6 +159,8 @@ void update_message_decode(unsigned char *data,int from_index,int length) { for(i=0;i