christoph2 / pyxcp

ASAM XCP in Python
http://pyxcp.rtfd.org
GNU Lesser General Public License v3.0
207 stars 64 forks source link

Transport ETH socket bind #132

Open PeterGondek opened 1 year ago

PeterGondek commented 1 year ago

Hi All,

is it possible to add in transport/eth.py the possibility to bind the socket to concrete IP address defined in config?

For IPv6 when You have multiple IPs assigned to the ETH adapter, sometimes You need to pick up concrete IP. pyxcp_transport_eth_py.zip

Best Regard,

Peter

christoph2 commented 1 year ago

Yep, patch accepted, but I changed the names of the configuration parameters to IPV6_BIND_TO_ADDRESS resp. IPV6_BIND_TO_PORT.

I will integrate it in the main-line ASAP -- file eth.py is also affected by a comprehensive change not finished yet.