Commit fe0a4237 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

userspace/rtud: add PTP UDP pdelay address

Meanwhile, make the mac address static to same some space/time.
But we really need a table for the mac address presets
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 2d815626
......@@ -94,6 +94,7 @@ static int rtu_create_static_entries(void)
uint8_t slow_proto_mac[] = { 0x01, 0x80, 0xc2, 0x00, 0x00, 0x01 };
uint8_t ptp_mcast_mac[] = { 0x01, 0x1b, 0x19, 0x00, 0x00, 0x00 };
uint8_t udp_ptp_mac[] = { 0x01, 0x00, 0x5e, 0x00, 0x01, 0x81 };
uint8_t udp_ptp_p2p_mac[] = { 0x01, 0x00, 0x5e, 0x00, 0x00, 0x6b };
int i, err;
uint32_t enabled_port_mask = 0;
......@@ -129,6 +130,13 @@ static int rtu_create_static_entries(void)
if (err)
return err;
err =
rtu_fd_create_entry(udp_ptp_p2p_mac, 0,
(1 << hal_nports_local),
RTU_ENTRY_TYPE_STATIC, OVERRIDE_EXISTING);
if (err)
return err;
// Broadcast MAC
pr_info("Adding static route for broadcast MAC...\n");
err =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment