riebl / vanetza

Open-source implementation of the ETSI C-ITS protocol stack
Other
204 stars 156 forks source link

Autogenerate StationID #165

Closed Sanjaer closed 2 years ago

Sanjaer commented 2 years ago

Is there a way to autogenerate the field StationID? In Cohda this field is autogenerated based on the MAC of the station.

riebl commented 2 years ago

We currently have no specific function for this purpose, i.e. setting the StationID has to be handled by the software using Vanetza. I would be happy if you provide such a function via a pull request extending Vanetza's facilities layer. This function could be used for https://github.com/riebl/vanetza/blob/b78665fe6f48343996a50bc0010b675dab71adaa/tools/socktap/cam_application.cpp#L72 then as well.

Sanjaer commented 2 years ago

Ok thanks! If I develop something worth it I'll surely push it