From: Ian Jackson Date: Sun, 19 Jun 2011 11:01:08 +0000 (+0100) Subject: comm, site: pass a new "struct comm_addr" rather than sockaddr_in X-Git-Tag: v0.2.0~24 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/a15faeb2b12e9cc0e3d1352cf4c233fc61c51c1c?hp=a15faeb2b12e9cc0e3d1352cf4c233fc61c51c1c comm, site: pass a new "struct comm_addr" rather than sockaddr_in This abstracts away the fact that the peer address is a sockaddr_in; instead, most of the code in site.c now only handles the peer address as an opaque structure. We put the struct comm_if* in the address structure too, as this will be useful later. Amongst other things, doing this arranges that the comm client knows which comm is notifying about an incoming packet. Previously the client was expected to "just know" because the only actual client in secnet is site which currently only deals with one comm. Also make the relevant arguments const-correct. Contains consequential changes the signatures of many functions but no intentional functional change. Signed-off-by: Ian Jackson ---