Deleted Added
full compact
relay.c (145554) relay.c (153881)
1/* $FreeBSD: head/contrib/ipfilter/samples/relay.c 145554 2005-04-26 15:18:45Z darrenr $ */
1/* $FreeBSD: head/contrib/ipfilter/samples/relay.c 153881 2005-12-30 11:52:26Z guido $ */
2
3/*
4 * Sample program to be used as a transparent proxy.
5 *
6 * Must be executed with permission enough to do an ioctl on /dev/ipl
7 * or equivalent. This is just a sample and is only alpha quality.
8 * - Darren Reed (8 April 1996)
9 */
10#include <unistd.h>
11#include <stdio.h>
12#include <fcntl.h>
13#include <errno.h>
14#include <sys/types.h>
15#include <sys/time.h>
16#include <sys/syslog.h>
17#include <sys/socket.h>
18#include <sys/ioctl.h>
19#include <netinet/in.h>
20#include <net/if.h>
2
3/*
4 * Sample program to be used as a transparent proxy.
5 *
6 * Must be executed with permission enough to do an ioctl on /dev/ipl
7 * or equivalent. This is just a sample and is only alpha quality.
8 * - Darren Reed (8 April 1996)
9 */
10#include <unistd.h>
11#include <stdio.h>
12#include <fcntl.h>
13#include <errno.h>
14#include <sys/types.h>
15#include <sys/time.h>
16#include <sys/syslog.h>
17#include <sys/socket.h>
18#include <sys/ioctl.h>
19#include <netinet/in.h>
20#include <net/if.h>
21#include "ip_compat.h"
22#include "ip_fil.h"
23#include "ip_nat.h"
21#include "netinet/ip_compat.h"
22#include "netinet/ip_fil.h"
23#include "netinet/ip_nat.h"
24#include "netinet/ipl.h"
25
26#define RELAY_BUFSZ 8192
27
28char ibuff[RELAY_BUFSZ];
29char obuff[RELAY_BUFSZ];
30
31int relay(ifd, ofd, rfd)

--- 165 unchanged lines hidden ---
24#include "netinet/ipl.h"
25
26#define RELAY_BUFSZ 8192
27
28char ibuff[RELAY_BUFSZ];
29char obuff[RELAY_BUFSZ];
30
31int relay(ifd, ofd, rfd)

--- 165 unchanged lines hidden ---