>> >>> + ctx->msg_ports.src_port = ntohs(saddr6->sin6_port); >>> + } >> Some of the socket_wrapper functions fit in very well here. > > Didn't get your point, which function? I meant get_port_from_saddr() -- https://code.launchpad.net/~hipl-core/hipl/libhip/+merge/93782 Your team HIPL core team is subscribed to branch lp:hipl.