@@ -510,7 +510,9 @@ void pf_lldp_restart_peer_timeout (
510
510
{
511
511
pf_port_t * p_port_data = pf_port_get_state (net , loc_port_num );
512
512
513
- pf_scheduler_remove_if_running (net , & p_port_data -> lldp .rx_timeout );
513
+ pf_scheduler_remove_if_running (
514
+ & net -> scheduler_data ,
515
+ & p_port_data -> lldp .rx_timeout );
514
516
515
517
/*
516
518
* Profinet states that the time to live shall be 20 seconds,
@@ -529,7 +531,7 @@ void pf_lldp_restart_peer_timeout (
529
531
530
532
if (
531
533
pf_scheduler_add (
532
- net ,
534
+ & net -> scheduler_data ,
533
535
timeout_in_secs * 1000000 ,
534
536
pf_lldp_receive_timeout ,
535
537
p_port_data ,
@@ -547,7 +549,9 @@ void pf_lldp_stop_peer_timeout (pnet_t * net, int loc_port_num)
547
549
{
548
550
pf_port_t * p_port_data = pf_port_get_state (net , loc_port_num );
549
551
550
- pf_scheduler_remove_if_running (net , & p_port_data -> lldp .rx_timeout );
552
+ pf_scheduler_remove_if_running (
553
+ & net -> scheduler_data ,
554
+ & p_port_data -> lldp .rx_timeout );
551
555
}
552
556
553
557
/**
@@ -1096,7 +1100,7 @@ static void pf_lldp_trigger_sending (
1096
1100
1097
1101
if (
1098
1102
pf_scheduler_add (
1099
- net ,
1103
+ & net -> scheduler_data ,
1100
1104
PF_LLDP_SEND_INTERVAL * 1000 ,
1101
1105
pf_lldp_trigger_sending ,
1102
1106
p_port_data ,
@@ -1125,7 +1129,7 @@ static void pf_lldp_tx_restart (pnet_t * net, int loc_port_num, bool send)
1125
1129
1126
1130
if (
1127
1131
pf_scheduler_restart (
1128
- net ,
1132
+ & net -> scheduler_data ,
1129
1133
PF_LLDP_SEND_INTERVAL * 1000 ,
1130
1134
pf_lldp_trigger_sending ,
1131
1135
p_port_data ,
@@ -1187,7 +1191,9 @@ void pf_lldp_send_disable (pnet_t * net, int loc_port_num)
1187
1191
"LLDP(%d): Disabling LLDP transmission for port %d\n" ,
1188
1192
__LINE__ ,
1189
1193
loc_port_num );
1190
- pf_scheduler_remove_if_running (net , & p_port_data -> lldp .tx_timeout );
1194
+ pf_scheduler_remove_if_running (
1195
+ & net -> scheduler_data ,
1196
+ & p_port_data -> lldp .tx_timeout );
1191
1197
}
1192
1198
1193
1199
/**
0 commit comments