1 #include <u.h> 2 #include <libc.h> 3 4 uchar classmask[4][4] = { 5 0xff, 0x00, 0x00, 0x00, 6 0xff, 0x00, 0x00, 0x00, 7 0xff, 0xff, 0x00, 0x00, 8 0xff, 0xff, 0xff, 0x00, 9 }; 10 11 void 12 maskip(uchar *a, uchar *m, uchar *n) 13 { 14 int i; 15 16 for(i = 0; i < 4; i++) 17 n[i] = a[i] & m[i]; 18 } 19