ptp.c
uint64_t ntohll(uint64_t in)
{
    unsigned char out[8] = { in >> 56, in >> 48, in >> 40, in >> 32, in >> 24, in >> 16, in >> 8, in };
    return *(uint64_t*) out;
}
// Network->Host byte order conversion for 64-bit values
Network->Host byte order conversion for 64-bit values
Network - > Host byte order conversion for 64 - bit values
uint64_t ntohll(uint64_t in)
{
    unsigned char out[8] = { in >> 56, in >> 48, in >> 40, in >> 32, in >> 24, in >> 16, in >> 8, in };
    return *(uint64_t*) out;
}
uint64_t ntohll ( uint64_t in ) { unsigned char out [ 8 ] = { in >> 56 , in >> 48 , in >> 40 , in >> 32 , in >> 24 , in >> 16 , in >> 8 , in } ; return * ( uint64_t * ) out ; }
Network->Host byte order conversion for 64-bit values
Network - > Host byte order conversion for 64 - bit values