netmap: fix build issue in netmap_user.h
The issue was a comparison of integers of different signs on 32 bit architectures. Reported by: jenkins MFC after: 1 week
This commit is contained in:
parent
78a2f9a94d
commit
15ff2564d1
@ -1116,7 +1116,7 @@ nm_dispatch(struct nm_desc *d, int cnt, nm_cb_t cb, u_char *arg)
|
||||
slot = &ring->slot[i];
|
||||
d->hdr.len += slot->len;
|
||||
nbuf = (u_char *)NETMAP_BUF(ring, slot->buf_idx);
|
||||
if (oldbuf != NULL && nbuf - oldbuf == ring->nr_buf_size &&
|
||||
if (oldbuf != NULL && nbuf - oldbuf == (int)ring->nr_buf_size &&
|
||||
oldlen == ring->nr_buf_size) {
|
||||
d->hdr.caplen += slot->len;
|
||||
oldbuf = nbuf;
|
||||
|
Loading…
Reference in New Issue
Block a user