This program uses MAH coding Method to compress the ip Data given, store the encoded data into memroy, and wait to be searched. When a query request occurs, the program searches the database with key words and respond with query results to users.
$ git clone https://github.com/MasterXiong/bitmap.git
$ cd bitmap && make
$ ./bitmap.out
Input 8 integers(0-255) indicating the 8 blocks of the source ip and destination ip and press Enter.
Then the program takes care of the rest of it and proudly returns with your result.
mark@ubuntu:~/Documents$ ./bitmap
ip_data has been saved
bitmap has been established
bitmap has been compressed
please input the ip address:
(missing address please type -1)
0 0 0 0 0 0 0 0
from 0,0,0,0 to 0,0,0,0
from 0,0,0,0 to 0,0,0,0
from 0,0,0,0 to 0,0,0,0
from 0,0,0,0 to 0,0,0,0
4 records found
continue or not? y/n
n
Continue to search or quit the program.
Qin Zixin
Xiong Zheng
Fan Chengze
from Tsinghua University