Deleted Added
full compact
alias_util.c (59031) alias_util.c (77701)
1/*-
2 * Copyright (c) 2001 Charles Mott <cmott@scientech.com>
3 * 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
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/netinet/libalias/alias_util.c 77701 2001-06-04 15:09:51Z brian $
27 */
28
1/*
2 Alias_util.c contains general utilities used by other functions
3 in the packet aliasing module. At the moment, there are functions
4 for computing IP header and TCP packet checksums.
5
6 The checksum routines are based upon example code in a Unix networking
7 text written by Stevens (sorry, I can't remember the title -- but
8 at least this is a good author).
9
10 Initial Version: August, 1996 (cjm)
11
12 Version 1.7: January 9, 1997
13 Added differential checksum update function.
29/*
30 Alias_util.c contains general utilities used by other functions
31 in the packet aliasing module. At the moment, there are functions
32 for computing IP header and TCP packet checksums.
33
34 The checksum routines are based upon example code in a Unix networking
35 text written by Stevens (sorry, I can't remember the title -- but
36 at least this is a good author).
37
38 Initial Version: August, 1996 (cjm)
39
40 Version 1.7: January 9, 1997
41 Added differential checksum update function.
14
15 $FreeBSD: head/sys/netinet/libalias/alias_util.c 59031 2000-04-05 07:45:39Z ru $
16*/
17
18/*
19Note: the checksum routines assume that the actual checksum word has
20been zeroed out. If the checksum word is filled with the proper value,
21then these routines will give a result of zero (useful for testing
22purposes);
23*/

--- 118 unchanged lines hidden ---
42*/
43
44/*
45Note: the checksum routines assume that the actual checksum word has
46been zeroed out. If the checksum word is filled with the proper value,
47then these routines will give a result of zero (useful for testing
48purposes);
49*/

--- 118 unchanged lines hidden ---