Opened 5 years ago

Closed 5 years ago

#12426 closed enhancement (fixed)

need uci config for dhcp client to send no clientid

Reported by: nop@… Owned by: developers
Priority: normal Milestone:
Component: base system Version: Attitude Adjustment 12.09 Beta
Keywords: Cc:


udhcpc by default sends the MAC address as a client identifier. My ISP is allergic to this for some reason and will not respond to requests if it's present. This can be turned off:

-C,--clientid-none Don't send MAC as client identifier

but there's no way to specify that in uci. I've added a local option to interpret NONE for that in /lib/netifd/proto/

	[ "$broadcast" = 1 ] && broadcast="-O broadcast" || broadcast=

+	[ "xNONE" = "x$clientid" ] && clientidarg="-C" ||
		clientidarg="${clientid:+-x 0x3d:${clientid//:/}}"

and then substituting ${clientidarg} into the udhcpc invocation. There is probably a cleaner way to do this.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed with r34089, r34090

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.