Patch: cmsg_nxthdr.c (0.9.28)]

Steve Finney sfinney at healthhero.com
Tue Oct 10 18:25:27 PDT 2006


uClibc contains two versions of __cmsg_nxthdr; one is inline code in
socket.h and the other is in cmsg_nxthdr.c. The two do not match, and
the C version is incorrect. A symptom is that the bluez "hcidump"
program does not correctly provide timestamps when run with a library
using cmsg_nxthdr.c; the problem occurs with the retrieval of multiple
CMSG options. The cmsg_nxthdr.c version of the function contains 2
instances of ">=" which should simply be ">"; ">" is used in both the
uClibc socket.h version of __cmsg_nxthdr and in the FSF 2.5 glibc
version of cmsg_nxthdr.c. The attached is a (hopefully correctly 
formatted) patch that fixes this.

sf



-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmsg_nxthdr.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20061010/36ba9b02/attachment.bin 


More information about the uClibc mailing list