mrpdclient lib use, step 1

I was on my way to convert the talker/listener pairs to use mrpdclient, but in the process introduced two API changes to it.

I converted to this new API the minimum to pass Travis: mrpctl, mrpl, mrpq, mrpValidate.

The 2 important commits are:

mrpdclient API change: application need not to know the mrpd socket port number
https://github.com/jbmaillet/Open-AVB/commit/1201e3b82907254dcf4d4e4a63368008e3d0835e

mrpdclient: API change, un-globify the socket connection to mrpd
https://github.com/jbmaillet/Open-AVB/commit/3be37c4a5390312c3f1ede00d0dcea3501491630

On 12/01/2014 03:25 PM, andrew-elder wrote:
>>
>> -	msgbuf = malloc(1500);
>> +	msgbuf = malloc(MRPDCLIENT_MAX_FRAME_SIZE);
>
> Is there a commit somewhere that changes MRPDCLIENT_MAX_FRAME_SIZE from 2000 to 1500? Current value of 2000 is in error in my opinion.

Andrew,

You were right - and still are.

Wandering in the code:

./daemons/mrpd/mrpd.h:
119 #define MAX_FRAME_SIZE      2000 <--- goes on the wire
120 #define MRPD_PORT_DEFAULT   7500 <--- local with client
121 #define MAX_MRPD_CMDSZ      (1500) <--- local with client

...so yes, I'll change this back to 1500 in:
examples/mrp_client/mrpdclient.h:38:#define MRPDCLIENT_MAX_MSG_SIZE 2000

To include mrpd.h (and get rid of MRPDCLIENT_MAX_MSG_SIZE in mrpdclient.h) would not be a solution
since it expose some daemon internal stuff as weel as def that may be done elsewhere for clients
(ex: eth_hdr struct)

JBM