A question on modifying packet.

Julian Elischer julian at freebsd.org
Wed Jul 9 16:51:45 UTC 2014


On 7/9/14, 1:01 PM, Niu Zhixiong wrote:
> Hi, all
> I have only one NIC. I want to capture packets from one certain ip address
> and change the both src and dst addresses and forward to other destination
> via the same NIC. It is possible? Is there any library to help me do this?
there is no library, but look at how natd does this using divert sockets.

>
>
> Regards,
> Niu Zhixiong
> ---------------
>   kaiaixi at gmail.com
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
>



More information about the freebsd-net mailing list