In general you should use KernelTun. Perhaps others can say more. You don't need to use FromHost.u and ToHost.u together, I believe.
Eddie On 5/17/11 8:02 PM, Dongyu Yang wrote: > Hi Eddie: > > Thanks for your help! > > Now I want to know, how it gets the Packet from the kernel, and send the > packet to kernel? Does ToHost.u must be used with FromHost.u? And I want to > know the difference between KernelTun and FromHost.u ToHost.u? > > > > > > 2011/5/12 Eddie Kohler <[email protected] <mailto:[email protected]>> > > Hi Dongyu, > > The FTPPortMapper message is a bug in the configuration file. The third > argument should be "0", not "to_world_pat 0 1". This fix has been > checked in. > > The configuration really is meant to run in the kernel, though. I don't > know what type of test you want to run. Userlevel ToHost demands a device > name argument, such as eth0. > > E > > > > On 5/6/11 4:14 AM, Dongyu Yang wrote: > > Hello ! > When I use GatewayDevice instead of SniffGatewayDevice, and then > the > problem of "undeclared element 'ToHostSniffers' " is OK! But the new > problem as bellow: > > ./conf/mazu-nat.click:214: While configuring ‘FTPPortMapper@37 :: > FTPPortMapper’: > type mismatch: DATA_REWRITER_INPUT requires int > ../conf/mazu-nat.click:93: While configuring ‘ToHost@5 :: > ToHost’: > missing mandatory DEVNAME argument > ../conf/mazu-nat.click:105: While configuring ‘ToHost@10 :: > ToHost’: > missing mandatory DEVNAME argument > ../conf/mazu-nat.click:112: While configuring ‘ToHost@14 :: > ToHost’: > missing mandatory DEVNAME argument > Router could not be initialized! > > How could I modify the configure file to fix this problem? > > Thank your for your help! > > > > > > 2011/5/6 Dongyu Yang<[email protected] > <mailto:[email protected]>> > > Hello! > I want to test NAT in click, so I use the NAT configure file > conf/mazu-nat.click, but when I run it in user level: > click conf/mazu-nat.click > > but the click report the error: > conf/mazu-nat.click:84: undeclared element > 'ToHostSniffers', > assuming element class > > I found the ToHostSniffers element belong to linuxmodule, but > I compile > click in userlevel, so it report the eror! > > I want to know how counld I configure NAT in userlevel? > > Thanks for your help! > > > _______________________________________________ > click mailing list > [email protected] <mailto:[email protected]> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > > _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
