The start/end IP of each IP segment is converted into shaping:
struct.unpack("! l ",socket . inet _ aton(' 192. 168. 1. 152 ')[0]
Then compare whether the two integer segments overlap.