Hi Then, On Tue, Jan 03, 2017 at 02:47:44PM +0800, then yon wrote: > Beside this, i have a question on the os_msys_get_pkthdr function > parameters; because no matter how i changed the param doesn't make any > changes to the result and by looking into some examples eg: > Ble_adaptor.c it just put m = os_msys_get_pkthdr(0, 0) ; > > Can you elaborate more on this so i know how to assign the values to it.
Msys is documented fairly well here: http://mynewt.apache.org/latest/os/core_os/msys/msys I didn't know we had msys documentation until just now, so don't feel bad if you didn't either :). The os_msys_get functions have slightly odd semantics, but I think that page does a pretty good job of explaining it. Please just shout if something doesn't make sense. Regarding the usrhdr_len parameter (second parameter) - I think this page does a good job of explaining what an mbuf user header is: http://mynewt.apache.org/latest/os/core_os/mbuf/mbuf . The general rule is: if you aren't sure, just specify 0. Thanks, Chris
