ip_frag.c (60855) | ip_frag.c (63523) |
---|---|
1/* 2 * Copyright (C) 1993-2000 by Darren Reed. 3 * 4 * Redistribution and use in source and binary forms are permitted 5 * provided that this notice is preserved and due credit is given 6 * to the original author and the contributors. 7 */ 8#if !defined(lint) 9static const char sccsid[] = "@(#)ip_frag.c 1.11 3/24/96 (C) 1993-1995 Darren Reed"; | 1/* 2 * Copyright (C) 1993-2000 by Darren Reed. 3 * 4 * Redistribution and use in source and binary forms are permitted 5 * provided that this notice is preserved and due credit is given 6 * to the original author and the contributors. 7 */ 8#if !defined(lint) 9static const char sccsid[] = "@(#)ip_frag.c 1.11 3/24/96 (C) 1993-1995 Darren Reed"; |
10/*static const char rcsid[] = "@(#)$Id: ip_frag.c,v 2.4.2.4 1999/11/28 04:52:10 darrenr Exp $";*/ 11static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/ip_frag.c 60855 2000-05-24 04:21:35Z darrenr $"; | 10/*static const char rcsid[] = "@(#)$Id: ip_frag.c,v 2.10.2.4 2000/06/06 15:49:15 darrenr Exp $";*/ 11static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/ip_frag.c 63523 2000-07-19 14:02:09Z darrenr $"; |
12#endif 13 14#if defined(KERNEL) && !defined(_KERNEL) 15# define _KERNEL 16#endif 17 18#include <sys/errno.h> 19#include <sys/types.h> --- 120 unchanged lines hidden (view full) --- 140ip_t *ip; 141fr_info_t *fin; 142u_int pass; 143ipfr_t *table[]; 144{ 145 ipfr_t **fp, *fra, frag; 146 u_int idx; 147 | 12#endif 13 14#if defined(KERNEL) && !defined(_KERNEL) 15# define _KERNEL 16#endif 17 18#include <sys/errno.h> 19#include <sys/types.h> --- 120 unchanged lines hidden (view full) --- 140ip_t *ip; 141fr_info_t *fin; 142u_int pass; 143ipfr_t *table[]; 144{ 145 ipfr_t **fp, *fra, frag; 146 u_int idx; 147 |
148 if (ipfr_inuse >= IPFT_SIZE) 149 return NULL; 150 |
|
148 frag.ipfr_p = ip->ip_p; 149 idx = ip->ip_p; 150 frag.ipfr_id = ip->ip_id; 151 idx += ip->ip_id; 152 frag.ipfr_tos = ip->ip_tos; 153 frag.ipfr_src.s_addr = ip->ip_src.s_addr; 154 idx += ip->ip_src.s_addr; 155 frag.ipfr_dst.s_addr = ip->ip_dst.s_addr; --- 396 unchanged lines hidden --- | 151 frag.ipfr_p = ip->ip_p; 152 idx = ip->ip_p; 153 frag.ipfr_id = ip->ip_id; 154 idx += ip->ip_id; 155 frag.ipfr_tos = ip->ip_tos; 156 frag.ipfr_src.s_addr = ip->ip_src.s_addr; 157 idx += ip->ip_src.s_addr; 158 frag.ipfr_dst.s_addr = ip->ip_dst.s_addr; --- 396 unchanged lines hidden --- |