mz-automation / libiec61850

Official repository for libIEC61850, the open-source library for the IEC 61850 protocols
http://libiec61850.com/libiec61850
GNU General Public License v3.0
863 stars 461 forks source link

sv_subscriber example not working on FreeBSD - patch included #474

Open joornl opened 1 year ago

joornl commented 1 year ago

The sv_subscriber example does not work on FreeBSD. It does not print anything. The problem was traced to hal/ethernet/bsd/ethernet_bsd.c

The patch to make it work is: `--- hal/ethernet/bsd/ethernet_bsd.c 2022-12-12 21:22:12.390609000 +0000 +++ hal/ethernet/bsd/ethernet_bsd.c.orig 2022-03-11 18:15:52.000000000 +0000 @@ -212,10 +212,47 @@ int optval; struct bpf_insn destAddrFiltCode[] = {

`

joornl commented 1 year ago

Inserting patch as code above didn't seem to work. So, pasting patch as text.

--- hal/ethernet/bsd/ethernet_bsd.c 2022-12-12 21:22:12.390609000 +0000 +++ hal/ethernet/bsd/ethernet_bsd.c.orig 2022-03-11 18:15:52.000000000 +0000 @@ -212,10 +212,47 @@ int optval; struct bpf_insn destAddrFiltCode[] = {