Deleted Added
full compact
accf_data_attach.c (256281) accf_data_attach.c (281974)
1/*-
2 * Copyright (c) 2004 Robert N. M. Watson
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

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2004 Robert N. M. Watson
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

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/10/tools/regression/sockets/accf_data_attach/accf_data_attach.c 197432 2009-09-23 14:23:09Z jhb $
26 * $FreeBSD: stable/10/tools/regression/sockets/accf_data_attach/accf_data_attach.c 281974 2015-04-25 05:31:52Z ngie $
27 */
28
29#include <sys/types.h>
30#include <sys/socket.h>
31
32#include <netinet/in.h>
33
34#include <err.h>

--- 18 unchanged lines hidden (view full) ---

53 * - That we can attach an accept filter to a socket that is in the listen
54 * state.
55 * - That once an accept filter is attached, we can query to make sure it is
56 * attached.
57 * - That once an accept filter is attached, we can remove it and query to
58 * make sure it is removed.
59 */
60int
27 */
28
29#include <sys/types.h>
30#include <sys/socket.h>
31
32#include <netinet/in.h>
33
34#include <err.h>

--- 18 unchanged lines hidden (view full) ---

53 * - That we can attach an accept filter to a socket that is in the listen
54 * state.
55 * - That once an accept filter is attached, we can query to make sure it is
56 * attached.
57 * - That once an accept filter is attached, we can remove it and query to
58 * make sure it is removed.
59 */
60int
61main(int argc, char *argv[])
61main(void)
62{
63 struct accept_filter_arg afa;
64 struct sockaddr_in sin;
65 socklen_t len;
66 int lso, ret;
67
68 printf("1..11\n");
69

--- 147 unchanged lines hidden ---
62{
63 struct accept_filter_arg afa;
64 struct sockaddr_in sin;
65 socklen_t len;
66 int lso, ret;
67
68 printf("1..11\n");
69

--- 147 unchanged lines hidden ---