On Sun, Jun 20, 2021 at 11:57 AM Dave Taht <dave.t...@gmail.com> wrote: > > is there a sane library or go library extension for getting to the cmsg > information on a udp socket from go? In our case (bufferbloat.net) we are > trying to get the "irtt" tool capable of seeing the SO_TIMESTAMP_NS > information from the linux kernel on receipt of it's udp packets from across > the Internet so as to better measure one way delay (OWD). > > Just filed a bug and a fuller description here: > > https://github.com/golang/go/issues/46831 > > some info on cmsg: > > https://www.man7.org/linux/man-pages/man3/cmsg.3.html > > some info on irtt: > > https://github.com/heistp/irtt
I think you are looking for https://pkg.go.dev/syscall#ParseSocketControlMessage. It may help to look at the test code in https://golang.org/src/syscall/creds_test.go. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWN%2BoQPd8SutsJb2w0B_VPAfeW7CqbeZWA0dN2AHiZQeg%40mail.gmail.com.