Messages in this thread | | | From | David Laight <> | Subject | RE: [PATCH v2] xdp: Sample xdp program implementing ip forward | Date | Wed, 11 Oct 2017 10:08:21 +0000 |
| |
From: Jesper Dangaard Brouer > Sent: 10 October 2017 20:06 ... > > + int src_ip = 0, dest_ip = 0; ... > > + key4.b8[4] = dest_ip % 0x100; > > + key4.b8[5] = (dest_ip >> 8) % 0x100; > > + key4.b8[6] = (dest_ip >> 16) % 0x100; > > + key4.b8[7] = (dest_ip >> 24) % 0x100;
Do you really want signed remainders done here?
David
| |