Possibility to deactivate CmpBlkDrvUdp

2023-12-12
2023-12-13
  • Artur Wiebe - 2023-12-12

    Is it possible to completely deactivate CmpBlkDrvUdp?

    I managed to practically deactivate it by setting MaxRouters=1 in [CmpRouter], but in the log there are warnings:

    !!!! No router instance found to assign network interface <interface>ether 6</interface>

    [CmpRouter]
    MaxRouters=1
    0.MainNet=BlkDrvTcp
    
    [CmpBlkDrvTcp]
    Name=BlkDrvTcp
    

    Codesys Runtime 4.10.0.0

    Is there a setting in [CmpBlkDrvUdp] which would deactivate it?

     
  • eschwellinger

    eschwellinger - 2023-12-12

    why do you want do to this?

     
  • Artur Wiebe - 2023-12-12

    Because it starts listening on all interfaces, which is against security considerations.

     
  • eschwellinger

    eschwellinger - 2023-12-12

    you could give this a try - just an idea, I did not try it because have no device in my hands:

    [CmpBlkDrvUdp]
    MaxInterfaces=1
    itf.0.ipadress=192.168.10.1

     
  • Artur Wiebe - 2023-12-13

    It works!

    MaxInterfaces=0 deactivates the UDP backend

    [CmpBlkDrvUdp]
    MaxInterfaces=0
    

    Thank you!

     

Log in to post a comment.