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/README | 1 + contrib/marc/marc.c | 8 ++++++++ contrib/marc/marc.db | Bin 0 -> 1840750 bytes contrib/marc/marcdb | Bin 1806749 -> 0 bytes contrib/marc/pull.sh | 1 + 5 files changed, 10 insertions(+) create mode 100644 contrib/marc/README create mode 100644 contrib/marc/marc.db delete mode 100644 contrib/marc/marcdb create mode 100755 contrib/marc/pull.sh (limited to 'contrib/marc') diff --git a/contrib/marc/README b/contrib/marc/README new file mode 100644 index 0000000..e77f12b --- /dev/null +++ b/contrib/marc/README @@ -0,0 +1 @@ +make marc 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