christgau / wsdd

A Web Service Discovery host daemon.
MIT License
841 stars 99 forks source link

Making the script work on MacOS #139

Closed gershnik closed 2 years ago

gershnik commented 2 years ago

FreeBSD code path works just fine on Mac. The only changes necessary were:

christgau commented 2 years ago

@gershnik Could you please verify that wsdd still works on MacOS after my changes?

gershnik commented 2 years ago

@christgau Nice - love this change! At the first run - doesn't work - something is wrong. I'll investigate and update.

gershnik commented 2 years ago

@christgau The definition of the struct was off by a few bytes. I fixed it and the comment explains what is going on. (timeval32 is actually 2 uint32_ts and the whole if_data is under #pragma pack(4)). Runs great now. (You also need my other PR for it to fully work with IPv6)