You can either use the FreeBSD libalias library and do it from "user space" (works for PPP), or add back in the IP Filter bits to the FreeBSD TCP/IP stack that were removed when it was ported to eCos. The IP Filter method is probably more generally useful, as you can also implement firewall features.
Jay On 1/5/2011 1:33 AM, qiulinyuan wrote: > Hi all, > > I am using the free BSD stack.From this mailling list , > I know that the ecos haven't supported the NAT yet. > While the NAT supporting is needed for our project. > I want to port the NAT to free BSD stack of ecos. > But I haven't done this before.I have no idea how to start this job. > Does anyone have done this before? > Could anyone give me some suggestions about how to > porting the NAT to the ecos? > > Any suggestion will be nice! > > Thanks all! > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss