Deleted Added
full compact
if_ether.c (195699) if_ether.c (195727)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1993
3 * The Regents of the University of California. 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

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

31
32/*
33 * Ethernet address resolution protocol.
34 * TODO:
35 * add "inuse/lock" bit (or ref. count) along with valid bit
36 */
37
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1993
3 * The Regents of the University of California. 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

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

31
32/*
33 * Ethernet address resolution protocol.
34 * TODO:
35 * add "inuse/lock" bit (or ref. count) along with valid bit
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/netinet/if_ether.c 195699 2009-07-14 22:48:30Z rwatson $");
39__FBSDID("$FreeBSD: head/sys/netinet/if_ether.c 195727 2009-07-16 21:13:04Z rwatson $");
40
41#include "opt_inet.h"
42#include "opt_carp.h"
43
44#include <sys/param.h>
45#include <sys/kernel.h>
46#include <sys/queue.h>
47#include <sys/sysctl.h>

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

84/* timer values */
85static VNET_DEFINE(int, arpt_keep) = (20*60); /* once resolved, good for 20
86 * minutes */
87static VNET_DEFINE(int, arp_maxtries) = 5;
88static VNET_DEFINE(int, useloopback) = 1; /* use loopback interface for
89 * local traffic */
90static VNET_DEFINE(int, arp_proxyall);
91
40
41#include "opt_inet.h"
42#include "opt_carp.h"
43
44#include <sys/param.h>
45#include <sys/kernel.h>
46#include <sys/queue.h>
47#include <sys/sysctl.h>

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

84/* timer values */
85static VNET_DEFINE(int, arpt_keep) = (20*60); /* once resolved, good for 20
86 * minutes */
87static VNET_DEFINE(int, arp_maxtries) = 5;
88static VNET_DEFINE(int, useloopback) = 1; /* use loopback interface for
89 * local traffic */
90static VNET_DEFINE(int, arp_proxyall);
91
92#define V_arpt_keep VNET_GET(arpt_keep)
93#define V_arp_maxtries VNET_GET(arp_maxtries)
94#define V_useloopback VNET_GET(useloopback)
95#define V_arp_proxyall VNET_GET(arp_proxyall)
92#define V_arpt_keep VNET(arpt_keep)
93#define V_arp_maxtries VNET(arp_maxtries)
94#define V_useloopback VNET(useloopback)
95#define V_arp_proxyall VNET(arp_proxyall)
96
97SYSCTL_VNET_INT(_net_link_ether_inet, OID_AUTO, max_age, CTLFLAG_RW,
98 &VNET_NAME(arpt_keep), 0,
99 "ARP entry lifetime in seconds");
100
101SYSCTL_VNET_INT(_net_link_ether_inet, OID_AUTO, maxtries, CTLFLAG_RW,
102 &VNET_NAME(arp_maxtries), 0,
103 "ARP resolution attempts before returning error");

--- 724 unchanged lines hidden ---
96
97SYSCTL_VNET_INT(_net_link_ether_inet, OID_AUTO, max_age, CTLFLAG_RW,
98 &VNET_NAME(arpt_keep), 0,
99 "ARP entry lifetime in seconds");
100
101SYSCTL_VNET_INT(_net_link_ether_inet, OID_AUTO, maxtries, CTLFLAG_RW,
102 &VNET_NAME(arp_maxtries), 0,
103 "ARP resolution attempts before returning error");

--- 724 unchanged lines hidden ---