diff --git a/phc2sys.c b/phc2sys.c
index 5c54055..61ae7b0 100644
--- a/phc2sys.c
+++ b/phc2sys.c
@@ -871,13 +871,15 @@ static void send_subscription(struct node *node)
pmc_send_set_action(node->pmc, TLV_SUBSCRIBE_EVENTS_NP, &sen,
sizeof(sen));
}
-static int init_pmc(struct config *cfg, struct node *node, int domain_number)
+static int init_pmc(struct config *cfg, struct node *node, int domain_number,
+ int transport_specific)
{
char uds_local[MAX_IFNAME_SIZE + 1];
snprintf(uds_local, sizeof(uds_local), "/var/run/phc2sys.%d",
getpid());
- node->pmc = pmc_create(cfg, TRANS_UDS, uds_local, 0, domain_number, 0,
1);
+ node->pmc = pmc_create(cfg, TRANS_UDS, uds_local, 0, domain_number,
+ transport_specific, 1);
if (!node->pmc) {
pr_err("failed to create pmc");
return -1;
@@ -1320,6 +1322,7 @@ int main(int argc, char *argv[])
int r = -1, wait_sync = 0;
int print_level = LOG_INFO, use_syslog = 1, verbose = 0;
int ntpshm_segment;
+ int transport_specific = 0;
double phc_rate, tmp;
struct node node = {
.sanity_freq_limit = 200000000,
@@ -1506,7 +1509,7 @@ int main(int argc, char *argv[])
print_set_level(print_level);
if (autocfg) {
- if (init_pmc(cfg, &node, domain_number))
+ if (init_pmc(cfg, &node, domain_number, transport_specific))
goto end;
if (auto_init_ports(&node, rt) < 0)
goto end;
@@ -1542,7 +1545,7 @@ int main(int argc, char *argv[])
r = -1;
if (wait_sync) {
- if (init_pmc(cfg, &node, domain_number))
+ if (init_pmc(cfg, &node, domain_number, transport_specific))
goto end;
while (is_running()) {
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel