steve-o / openpgm

Automatically exported from code.google.com/p/openpgm
57 stars 44 forks source link

Allow clients to specify addresses to be used for send and receive in… #40

Closed banburybill closed 8 years ago

banburybill commented 8 years ago

Add an extra field ir_address to pgm_interface_req_t and define preprocessor symbol PGM_HAS_IR_ADDRESS so a client can know it is present. Also add the address to the information returned by pgm_getaddrinfo(), so that different addresses on a single network device can be specified.

Also modify interface name parsing to allow for interfaces to have more than one address.

When binding, if the address family is not AF_UNDEF, the address will be used for underlying socket binding, rather than using the first address on the interface indexed by ir_interface.

To match this, define pgm_group_source_req, add gsr_addr and use that in pgm_addrinfo_t instead of group_source_req.

steve-o commented 8 years ago

Interesting that an IP family agnostic version of ip_mreq_source never appeared, that would replace the now effectively obsolete group_source_req.