dhcp-relay over tun interface - solution?

Shane Kerr shane at isc.org
Tue Jan 14 11:04:55 UTC 2014


Stefan,

On 2014-01-13 17:11:41 (+0100)
Stefan Bauer <stefan.bauer at cubewerk.de> wrote:

> -----Ursprüngliche Nachricht-----
> Von:	Shane Kerr <shane at isc.org>
> > $ ip addr show dev tun0
> > $ /sbin/ifconfig tun0
> > 
> > If they are missing a hardware address then that is indeed the
> > problem, and frankly I'm not sure how to work around it. Otherwise,
> > we can probably come up with something. :)
> 
> Hi Shane,
> 
> I'm glad to see your response. You are correct - the interfaces have
> no associated mac-address. It's all
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

Okay, one last attempt. :-P

If we add:

   case ARPHDR_NONE:
	memset(hw, 0, sizeof(struct hardware));
	break;

Right before the "default:" statement in the get_hw_addr() hack that I
posted earlier it might work. This means that if for some reason there
is no address we'll just proceed without it.

Cheers,

--
Shane


More information about the dhcp-hackers mailing list