ref: ed77f1550337e186ee740e42a1506fc61a5385c5
dir: /libip/equivip.c/
#include "u.h" #include "kern.h" #include "ip.h" int equivip4(uchar *a, uchar *b) { int i; for(i = 0; i < 4; i++) if(a[i] != b[i]) return 0; return 1; } int equivip6(uchar *a, uchar *b) { int i; for(i = 0; i < IPaddrlen; i++) if(a[i] != b[i]) return 0; return 1; }