route.c (139978) | route.c (186119) |
---|---|
1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/usr.sbin/ppp/route.c 139978 2005-01-10 11:12:36Z brian $ | 28 * $FreeBSD: head/usr.sbin/ppp/route.c 186119 2008-12-15 06:10:57Z qingli $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/socket.h> 33#include <net/if_types.h> 34#include <net/route.h> 35#include <net/if.h> 36#include <netinet/in.h> --- 115 unchanged lines hidden (view full) --- 152} bits[] = { 153 { RTF_UP, 'U' }, 154 { RTF_GATEWAY, 'G' }, 155 { RTF_HOST, 'H' }, 156 { RTF_REJECT, 'R' }, 157 { RTF_DYNAMIC, 'D' }, 158 { RTF_MODIFIED, 'M' }, 159 { RTF_DONE, 'd' }, | 29 */ 30 31#include <sys/param.h> 32#include <sys/socket.h> 33#include <net/if_types.h> 34#include <net/route.h> 35#include <net/if.h> 36#include <netinet/in.h> --- 115 unchanged lines hidden (view full) --- 152} bits[] = { 153 { RTF_UP, 'U' }, 154 { RTF_GATEWAY, 'G' }, 155 { RTF_HOST, 'H' }, 156 { RTF_REJECT, 'R' }, 157 { RTF_DYNAMIC, 'D' }, 158 { RTF_MODIFIED, 'M' }, 159 { RTF_DONE, 'd' }, |
160 { RTF_CLONING, 'C' }, | |
161 { RTF_XRESOLVE, 'X' }, | 160 { RTF_XRESOLVE, 'X' }, |
162 { RTF_LLINFO, 'L' }, | 161#ifdef RTF_CLONING 162 { RTF_CLONING, 'C' }, 163#endif |
163 { RTF_STATIC, 'S' }, 164 { RTF_PROTO1, '1' }, 165 { RTF_PROTO2, '2' }, 166 { RTF_BLACKHOLE, 'B' }, | 164 { RTF_STATIC, 'S' }, 165 { RTF_PROTO1, '1' }, 166 { RTF_PROTO2, '2' }, 167 { RTF_BLACKHOLE, 'B' }, |
168 169#ifdef RTF_LLINFO 170 { RTF_LLINFO, 'L' }, 171#endif 172#ifdef RTF_CLONING 173 { RTF_CLONING, 'C' }, 174#endif |
|
167#ifdef RTF_WASCLONED 168 { RTF_WASCLONED, 'W' }, 169#endif 170#ifdef RTF_PRCLONING 171 { RTF_PRCLONING, 'c' }, 172#endif 173#ifdef RTF_PROTO3 174 { RTF_PROTO3, '3' }, --- 755 unchanged lines hidden --- | 175#ifdef RTF_WASCLONED 176 { RTF_WASCLONED, 'W' }, 177#endif 178#ifdef RTF_PRCLONING 179 { RTF_PRCLONING, 'c' }, 180#endif 181#ifdef RTF_PROTO3 182 { RTF_PROTO3, '3' }, --- 755 unchanged lines hidden --- |