On Mon, Mar 24, 2014 at 09:53:20AM +0100, Jiri Benc wrote: > +/* > + * Send message to the given address. This is intended for management > + * messages only, thus goes always to the general port.
There are a couple of unicast options for PTP. We should try to make this new interface in a way that will be useful later on to support unicast, which includes events, IIRC. Thanks, Richard > + * @param t The transport. > + * @param fda Array of file descriptors to use. > + * @param buf Buffer with the message. > + * @param buflen Length of the buffer. > + * @param addr Destination address. > + * @param addrlen Length of the destination address. > + * @return Number of bytes sent or -1 in case of error. > + */ > +int transport_sendto(struct transport *t, struct fdarray *fda, > + void *buf, int buflen, uint8_t *addr, int addrlen); > + ------------------------------------------------------------------------------ _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel