[ovs-discuss] Modifying IP address bits
Justin Pettit
jpettit at nicira.com
Tue Jan 7 06:57:46 UTC 2014
On Mon, Jan 6, 2014 at 8:11 PM, Jason Thorpe <jasonthorpe1 at outlook.com>wrote:
>
> I need to do this for many IP addresses. What I am trying to do here is to
> replicate the Modelnet bitflip behaviour where the 23rd bit of the source
> and destination addresses are flipped [10.128.0.1 -> 10.0.0.1]. So out of
> the options I have for achieving this:
>
> 1. modifying the source code
> 2. using the registers you mentioned above
> 3. using a controller and then flipping the bits where required
>
> which one do you recommend that I go with?
>
I wouldn't try modifying the source code. If this is the only thing you're
trying to do, then I'd try the register method, since you'd be able to
write and test it quickly. If you need a more, then the controller
solution makes sense. Don't forget that you may also need to handle ARPs
for those new IP addresses.
--Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140106/b7e9d034/attachment.html>
More information about the discuss
mailing list