udp_pingpong.c (312296) | udp_pingpong.c (338617) |
---|---|
1/*- 2 * Copyright (c) 2017 Maksym Sobolyev <sobomax@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30 * in the payload and time of the arrival is either determined by 31 * reading clock after recv() completes or using kernel-supplied 32 * via recvmsg(). End-to-end time t(A->B->A) is then calculated 33 * and compared against time for both t(A->B) + t(B->A) to make 34 * sure it makes sense. 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2017 Maksym Sobolyev <sobomax@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30 * in the payload and time of the arrival is either determined by 31 * reading clock after recv() completes or using kernel-supplied 32 * via recvmsg(). End-to-end time t(A->B->A) is then calculated 33 * and compared against time for both t(A->B) + t(B->A) to make 34 * sure it makes sense. 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/tools/regression/sockets/udp_pingpong/udp_pingpong.c 312296 2017-01-16 17:46:38Z sobomax $"); | 38__FBSDID("$FreeBSD: stable/11/tools/regression/sockets/udp_pingpong/udp_pingpong.c 312296 2017-01-16 17:46:38Z sobomax $"); |
39 40#include <sys/types.h> 41#include <sys/socket.h> 42#include <sys/wait.h> 43#include <sys/time.h> 44#include <netinet/in.h> 45#include <arpa/inet.h> 46#include <err.h> --- 605 unchanged lines hidden --- | 39 40#include <sys/types.h> 41#include <sys/socket.h> 42#include <sys/wait.h> 43#include <sys/time.h> 44#include <netinet/in.h> 45#include <arpa/inet.h> 46#include <err.h> --- 605 unchanged lines hidden --- |