Hi,
unfortunately (or fortunately for you), I'm quite an expert of the matter… so I hope to be able to help you on this (by the way, the manual was recently updated on this point).
IPv6 auto configuration… interesting topic. Let's recall some points (not only for you, for anybody reading this).
IPv6 addresses can be configured in a number of ways:
1) manually - the ugly way, like IPv4.
2) Stateless address autoconfiguration (SLAAC)
3) DHCPv6, like IPv4.
SLAAC is defined in RFC 4862, and it can be divided in different phases:
1) find a link-local address based on your EUI64 (derived from your MAC address)
2) do a Duplicate Address Detection. If it fails, generate a new EUI64 randomly and repeat point 1
3) search for a router - obtain a Router Advertisement (RA)
4) from the RA, derive a global address
5) repeat the DAD, this time on the global address
Points 3-5 require a Router Advertisement Demon (RADVd) in a router.
Now, about ns-3 what you can do.
You have two options:
1) assign addresses through the Ipv6AddressHelper. this is a "strange" way, only available in simulators. It's a sort of manual address assignment.
2) use RADVd… it's what you're looking for :)
examples/ipv6/radvd.cc
and
examples/ipv6/radvd-two-prefix.cc
The only issue for MANETs is that, in order to communicate with the router, your MANET routing should be already working, perhaps with link-local addresses.
However, link-local addresses are … link-local, and it's not obvious how to route them. Link-local addresses, as a matter of fact, are only valid on a link, which for multi-hop network just on hop (unless you specifically say otherwise in a RFC).
So, either all the nodes are also routers, propagating RAs (beware of the default gateway, tho), or the MANET-specific routing have to know how to reach "the" router (usually the border router).
I hope to have clarified some points… but to tell you exactly if what you want to do is feasible, I should first know what MANET routing protocol you plan to use.
Cheers,
T.