|
@@ -222,13 +222,13 @@ static void *packet_lookup_frame(struct packet_sock *po, unsigned int position,
|
|
|
h.raw = po->pg_vec[pg_vec_pos] + (frame_offset * po->frame_size);
|
|
|
switch (po->tp_version) {
|
|
|
case TPACKET_V1:
|
|
|
- if (status != h.h1->tp_status ? TP_STATUS_USER :
|
|
|
- TP_STATUS_KERNEL)
|
|
|
+ if (status != (h.h1->tp_status ? TP_STATUS_USER :
|
|
|
+ TP_STATUS_KERNEL))
|
|
|
return NULL;
|
|
|
break;
|
|
|
case TPACKET_V2:
|
|
|
- if (status != h.h2->tp_status ? TP_STATUS_USER :
|
|
|
- TP_STATUS_KERNEL)
|
|
|
+ if (status != (h.h2->tp_status ? TP_STATUS_USER :
|
|
|
+ TP_STATUS_KERNEL))
|
|
|
return NULL;
|
|
|
break;
|
|
|
}
|