dhcpcd-discuss

Re: 6rd option support for dhcpcd

Jeroen Vreeken

Mon Dec 05 14:46:46 2011

Hi Roy,

On 12/05/2011 03:43 PM, Roy Marples wrote:

On Fri, 02 Dec 2011 16:36:09 +0100, Jeroen Vreeken wrote:
Recently my ISP began IPv6 trials using 6rd.
They use the relatively new 6rd dhcp option for this.
I attached a patch against dhcpcd 5.2.12 to add support for this option.
For example in my case I now get the following 6rd variable for my hooks:

new_6rd='16 40 2a01:0670:6d00:0000:0000:0000:0000:0000 88.159.90.37'

The patch looks fine and I'm happy to commit it aside from one minor detail.
Shell variables cannot start with a number, so maybe call it sixrd?
Yes, I know it's prefixed with new_, but that's lost when you're printing lease information which is also shell parse-able.

Ah, hadn't noticed that.
If you want to submit a new patch or just indicate you're happy with sixrd then I'll commit it.

I'm happy with sixrd.


I also created a hook called '40-6rd' to handle the option and bring
up (or change) an 6rd tunnel.
I didn't  include it in the patch since it depends on a few tools of
my own. (You can find them at http://video.vreeken.net/sixcalc/ )

You may want to at least post it to this list so others can use it :)
I did, it was the second attachment.

Regards,
Jeroen


Follow-Ups:
Re: 6rd option support for dhcpcdRoy Marples
References:
6rd option support for dhcpcdJeroen Vreeken
Re: 6rd option support for dhcpcdRoy Marples
Archive administrator: postmaster@marples.name