Commit 515126b6 authored by Maciej Lipinski's avatar Maciej Lipinski Committed by Adam Wujek

bugfix: preventing from spamming syslog when using VLANs

when using VLANs, reception of each VLAN-tagged ptp frame resulted
in printf(), which was syslog-ed to the server... changed printf
into pp_dial(ppsi, frame, 1,...)
parent b203cc96
...@@ -241,7 +241,7 @@ static int wrs_recv_msg(struct pp_instance *ppi, int fd, void *pkt, int len, ...@@ -241,7 +241,7 @@ static int wrs_recv_msg(struct pp_instance *ppi, int fd, void *pkt, int len,
drop: drop:
if (aux) { if (aux) {
printf("aux: %x proto %x\n", aux->tp_vlan_tci, pp_diag(ppi, frames, 1,"aux: %x proto %x\n", aux->tp_vlan_tci,
ntohs(hdr->h_proto)); ntohs(hdr->h_proto));
if (0) { if (0) {
......
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