aboutsummaryrefslogtreecommitdiff
path: root/src/libip/equivip.c
blob: 858bc1ca684a8d35e888578aa1df7c47764c19fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <u.h>
#include <libc.h>

int
equivip(uchar *a, uchar *b)
{
	int i;

	for(i = 0; i < 4; i++)
		if(a[i] != b[i])
			return 0;
	return 1;
}