if_ether.c (44e33a075818146eb289c39c3ca2817f54517c9f) | if_ether.c (97021c246444967a8f441a90076fb4f7ef22fb3a) |
---|---|
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 --- 75 unchanged lines hidden (view full) --- 84/* timer values */ 85#ifdef VIMAGE_GLOBALS 86static int arpt_keep; /* once resolved, good for 20 more minutes */ 87static int arp_maxtries; 88static int useloopback; /* use loopback interface for local traffic */ 89static int arp_proxyall; 90#endif 91 | 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 --- 75 unchanged lines hidden (view full) --- 84/* timer values */ 85#ifdef VIMAGE_GLOBALS 86static int arpt_keep; /* once resolved, good for 20 more minutes */ 87static int arp_maxtries; 88static int useloopback; /* use loopback interface for local traffic */ 89static int arp_proxyall; 90#endif 91 |
92SYSCTL_INT(_net_link_ether_inet, OID_AUTO, max_age, CTLFLAG_RW, 93 &arpt_keep, 0, "ARP entry lifetime in seconds"); | 92SYSCTL_V_INT(V_NET, vnet_inet, _net_link_ether_inet, OID_AUTO, max_age, 93 CTLFLAG_RW, arpt_keep, 0, "ARP entry lifetime in seconds"); |
94 95#define rt_expire rt_rmx.rmx_expire 96 97struct llinfo_arp { 98 struct callout la_timer; 99 struct rtentry *la_rt; 100 struct mbuf *la_hold; /* last packet until resolved/timeout */ 101 u_short la_preempt; /* countdown for pre-expiry arps */ --- 990 unchanged lines hidden --- | 94 95#define rt_expire rt_rmx.rmx_expire 96 97struct llinfo_arp { 98 struct callout la_timer; 99 struct rtentry *la_rt; 100 struct mbuf *la_hold; /* last packet until resolved/timeout */ 101 u_short la_preempt; /* countdown for pre-expiry arps */ --- 990 unchanged lines hidden --- |