Merge pull request #13833 from benpicco/dist/tools/sliptty-fix
gnrc_dhcpv6_client: fix for SLIP link-layer
This commit is contained in:
commit
475048ab2f
@ -32,6 +32,7 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define ARP_HWTYPE_ETHERNET (1U) /**< Ethernet */
|
#define ARP_HWTYPE_ETHERNET (1U) /**< Ethernet */
|
||||||
|
#define ARP_HWTYPE_SERIAL (20U) /**< Serial Line */
|
||||||
#define ARP_HWTYPE_EUI64 (27U) /**< EUI-64 */
|
#define ARP_HWTYPE_EUI64 (27U) /**< EUI-64 */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|||||||
@ -52,6 +52,11 @@ unsigned dhcpv6_client_get_duid_l2(unsigned iface, dhcpv6_duid_l2_t *duid)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
switch (netif->device_type) {
|
switch (netif->device_type) {
|
||||||
|
case NETDEV_TYPE_SLIP:
|
||||||
|
duid->l2type = byteorder_htons(ARP_HWTYPE_SERIAL);
|
||||||
|
/* L2 address length is 0 */
|
||||||
|
res = 0;
|
||||||
|
break;
|
||||||
case NETDEV_TYPE_ETHERNET:
|
case NETDEV_TYPE_ETHERNET:
|
||||||
case NETDEV_TYPE_BLE:
|
case NETDEV_TYPE_BLE:
|
||||||
case NETDEV_TYPE_ESP_NOW:
|
case NETDEV_TYPE_ESP_NOW:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user