Merge lp:~hipl-core/hipl/hip-checksum into lp:hipl

Proposed by Miika Komu
Status: Superseded
Proposed branch: lp:~hipl-core/hipl/hip-checksum
Merge into: lp:hipl
Diff against target: 200 lines (+64/-19)
8 files modified
Makefile.am (+2/-2)
hipfw/reinject.c (+1/-1)
hipfw/rewrite.c (+2/-2)
hipfw/user_ipsec_esp.c (+2/-2)
libcore/builder.c (+1/-1)
libcore/checksum.c (+53/-8)
libhipl/output.c (+1/-1)
test/libcore/checksum.c (+2/-2)
To merge this branch: bzr merge lp:~hipl-core/hipl/hip-checksum
Reviewer Review Type Date Requested Status
Diego Biurrun Needs Fixing
Review via email: mp+166947@code.launchpad.net

This proposal has been superseded by a proposal from 2013-06-01.

Description of the change

In order to change the copyright of checksum.c, should we retain the copyright boilerplates in a single file or should we split the checksum file (articially) into multiple files each with different copyright information?

To post a comment you must log in.
Revision history for this message
Diego Biurrun (diego-biurrun) wrote :

 review needs-fixing

On Sat, Jun 01, 2013 at 06:39:25PM -0000, Miika Komu wrote:
>
> For more details, see:
> https://code.launchpad.net/~hipl-core/hipl/hip-checksum/+merge/166947
>
> In order to change the copyright of checksum.c, should we retain
> the copyright boilerplates in a single file or should we split the
> checksum file (articially) into multiple files each with different
> copyright information?

Whatever you prefer.

What is the WIDE project? Also note that the last two copyright statements
are the same BSD 3-clause license.

> --- Makefile.am 2013-03-25 06:43:57 +0000
> +++ Makefile.am 2013-06-01 18:38:25 +0000
> @@ -158,7 +158,7 @@
> libcore/straddr.c \
> libcore/transform.c \
> - libcore/gpl/checksum.c \
> + libcore/checksum.c \
> libcore/gpl/nlink.c \
> libcore/gpl/pk.c \
> @@ -233,7 +233,7 @@
> test/libcore/solve.c \
> test/libcore/straddr.c \
> - test/libcore/gpl/checksum.c \
> + test/libcore/checksum.c \
> test/libcore/gpl/pk.c \
> test/libcore/modules/midauth_builder.c

These were previously in alphabetical order.

> --- hipfw/reinject.c 2012-05-12 06:54:33 +0000
> +++ hipfw/reinject.c 2013-06-01 18:38:25 +0000
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (c) 2010 Aalto University and RWTH Aachen University.
> + * Copyright (c) 2010, 2013 Aalto University and RWTH Aachen University.
> *
> * Permission is hereby granted, free of charge, to any person
> * obtaining a copy of this software and associated documentation
> @@ -45,7 +45,7 @@
> #include "libcore/debug.h"
> #include "libcore/ife.h"
> #include "libcore/prefix.h"
> -#include "libcore/gpl/checksum.h"
> +#include "libcore/checksum.h"
> #include "reinject.h"

I wouldn't bother changing the copyright statement for such silly
mechanical changes that are not copyrightable anyway.

> --- hipfw/rewrite.c 2012-05-12 06:54:33 +0000
> +++ hipfw/rewrite.c 2013-06-01 18:38:25 +0000
> @@ -54,7 +54,6 @@
> * more thoroughly, these optimizations should be considered hacks (and
> * are thus not used here).
> *
> - * @author Christof Mroz <email address hidden>
> */

This seems unrelated.

> --- hipfw/user_ipsec_esp.c 2013-01-27 15:57:14 +0000
> +++ hipfw/user_ipsec_esp.c 2013-06-01 18:38:25 +0000
> @@ -42,7 +42,7 @@
> #include "libcore/ife.h"
> #include "libcore/keylen.h"
> #include "libcore/prefix.h"
> -#include "libcore/gpl/checksum.h"
> +#include "libcore/checksum.h"
> #include "esp_prot_api.h"
> #include "hipfw_defines.h"
> #include "user_ipsec_sadb.h"

Here you don't change the copyright statement.

Diego

review: Needs Fixing
lp:~hipl-core/hipl/hip-checksum updated
6418. By Miika Komu

Minor fixes according to the code review

Some clean ups to the code according to the mailing list code review:
* Join the two BSD copyright statements into a single one
* Files are now again in alphabetical order in Makefile.am
* Removed some unrelated changes
* Updated the year in the ipsec copyright statement

6419. By Miika Komu

Updated the year in the ipsec copyright statement

Forgot to commit this in the previous commit

6420. By Miika Komu

Synchronized with trunk revision 6419.

6421. By Miika Komu

Synchronized with trunk revision 6425

6422. By Miika Komu

Fixed a copyright in boilerplate

Fixed an unneccessary copyright change (just minor changes in the file)

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile.am'
2--- Makefile.am 2013-03-25 06:43:57 +0000
3+++ Makefile.am 2013-06-01 20:15:30 +0000
4@@ -135,6 +135,7 @@
5 libcore/capability.c \
6 libcore/cert.c \
7 libcore/certtools.c \
8+ libcore/checksum.c \
9 libcore/conf.c \
10 libcore/crypto.c \
11 libcore/debug.c \
12@@ -158,7 +159,6 @@
13 libcore/statistics.c \
14 libcore/straddr.c \
15 libcore/transform.c \
16- libcore/gpl/checksum.c \
17 libcore/gpl/nlink.c \
18 libcore/gpl/pk.c \
19 libcore/gpl/xfrmapi.c \
20@@ -233,7 +233,7 @@
21 test/libcore/hostid.c \
22 test/libcore/solve.c \
23 test/libcore/straddr.c \
24- test/libcore/gpl/checksum.c \
25+ test/libcore/checksum.c \
26 test/libcore/gpl/pk.c \
27 test/libcore/modules/midauth_builder.c
28
29
30=== modified file 'hipfw/reinject.c'
31--- hipfw/reinject.c 2012-05-12 06:54:33 +0000
32+++ hipfw/reinject.c 2013-06-01 20:15:30 +0000
33@@ -45,7 +45,7 @@
34 #include "libcore/debug.h"
35 #include "libcore/ife.h"
36 #include "libcore/prefix.h"
37-#include "libcore/gpl/checksum.h"
38+#include "libcore/checksum.h"
39 #include "reinject.h"
40
41 static int firewall_raw_sock_tcp_v4 = 0;
42
43=== modified file 'hipfw/rewrite.c'
44--- hipfw/rewrite.c 2012-05-12 06:54:33 +0000
45+++ hipfw/rewrite.c 2013-06-01 20:15:30 +0000
46@@ -1,5 +1,5 @@
47 /*
48- * Copyright (c) 2011 Aalto University and RWTH Aachen University.
49+ * Copyright (c) 2011, 2013 Aalto University and RWTH Aachen University.
50 *
51 * Permission is hereby granted, free of charge, to any person
52 * obtaining a copy of this software and associated documentation
53@@ -68,7 +68,7 @@
54
55 #include "libcore/builder.h"
56 #include "libcore/debug.h"
57-#include "libcore/gpl/checksum.h"
58+#include "libcore/checksum.h"
59 #include "rewrite.h"
60
61 // static configuration
62
63=== modified file 'hipfw/user_ipsec_esp.c'
64--- hipfw/user_ipsec_esp.c 2013-01-27 15:57:14 +0000
65+++ hipfw/user_ipsec_esp.c 2013-06-01 20:15:30 +0000
66@@ -1,6 +1,6 @@
67 /*
68 * Host Identity Protocol
69- * Copyright (c) 2004-2012 the Boeing Company
70+ * Copyright (c) 2004-2013 the Boeing Company
71 *
72 * Permission is hereby granted, free of charge, to any person obtaining a copy
73 * of this software and associated documentation files (the "Software"), to deal
74@@ -42,7 +42,7 @@
75 #include "libcore/ife.h"
76 #include "libcore/keylen.h"
77 #include "libcore/prefix.h"
78-#include "libcore/gpl/checksum.h"
79+#include "libcore/checksum.h"
80 #include "esp_prot_api.h"
81 #include "hipfw_defines.h"
82 #include "user_ipsec_sadb.h"
83
84=== modified file 'libcore/builder.c'
85--- libcore/builder.c 2012-07-13 13:16:17 +0000
86+++ libcore/builder.c 2013-06-01 20:15:30 +0000
87@@ -94,7 +94,7 @@
88 #include <arpa/inet.h>
89 #include <openssl/md5.h>
90
91-#include "libcore/gpl/checksum.h"
92+#include "libcore/checksum.h"
93 #include "common.h"
94 #include "config.h"
95 #include "crypto.h"
96
97=== renamed file 'libcore/gpl/checksum.c' => 'libcore/checksum.c'
98--- libcore/gpl/checksum.c 2013-06-01 18:15:24 +0000
99+++ libcore/checksum.c 2013-06-01 20:15:30 +0000
100@@ -1,11 +1,56 @@
101-/**
102- * @file
103- *
104- * Distributed under <a href="http://www.gnu.org/licenses/gpl2.txt">GNU/GPL</a>
105- *
106- * @brief Checksum functions
107- *
108- * @note check if some of the checksum algos are redundant
109+/*
110+ * Host Identity Protocol
111+ * Copyright (c) 2002-2013 the Boeing Company
112+ *
113+ * Permission is hereby granted, free of charge, to any person obtaining a copy
114+ * of this software and associated documentation files (the "Software"), to deal
115+ * in the Software without restriction, including without limitation the rights
116+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
117+ * copies of the Software, and to permit persons to whom the Software is
118+ * furnished to do so, subject to the following conditions:
119+ *
120+ * The above copyright notice and this permission notice shall be included in
121+ * all copies or substantial portions of the Software.
122+ *
123+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
125+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
126+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
127+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
128+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
129+ * THE SOFTWARE.
130+ *
131+ */
132+
133+/*-
134+ * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
135+ * Copyright (c) 1988, 1992, 1993 the Regents of the University of California.
136+ * All rights reserved.
137+ *
138+ * Redistribution and use in source and binary forms, with or without
139+ * modification, are permitted provided that the following conditions
140+ * are met:
141+ * 1. Redistributions of source code must retain the above copyright
142+ * notice, this list of conditions and the following disclaimer.
143+ * 2. Redistributions in binary form must reproduce the above copyright
144+ * notice, this list of conditions and the following disclaimer in the
145+ * documentation and/or other materials provided with the distribution.
146+ * 3. Neither the name of the project nor the names of its contributors
147+ * may be used to endorse or promote products derived from this software
148+ * without specific prior written permission.
149+ *
150+ * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
151+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
152+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
153+ * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
154+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
155+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
156+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
157+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
158+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
159+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
160+ * SUCH DAMAGE.
161+ *
162 */
163
164 #define _BSD_SOURCE
165
166=== renamed file 'libcore/gpl/checksum.h' => 'libcore/checksum.h'
167=== modified file 'libhipl/output.c'
168--- libhipl/output.c 2012-06-07 12:45:16 +0000
169+++ libhipl/output.c 2013-06-01 20:15:30 +0000
170@@ -53,7 +53,7 @@
171 #include "libcore/prefix.h"
172 #include "libcore/protodefs.h"
173 #include "libcore/solve.h"
174-#include "libcore/gpl/checksum.h"
175+#include "libcore/checksum.h"
176 #include "libcore/gpl/xfrmapi.h"
177 #include "config.h"
178 #include "cookie.h"
179
180=== renamed file 'test/libcore/gpl/checksum.c' => 'test/libcore/checksum.c'
181--- test/libcore/gpl/checksum.c 2012-05-12 06:54:33 +0000
182+++ test/libcore/checksum.c 2013-06-01 20:15:30 +0000
183@@ -33,7 +33,7 @@
184 #include <netinet/ip.h>
185 #include <netinet/udp.h>
186
187-#include "libcore/gpl/checksum.h"
188+#include "libcore/checksum.h"
189 #include "test/libcore/test_suites.h"
190
191 inline static void *ipv4_payload(struct ip *const ipv4)
192@@ -107,7 +107,7 @@
193
194 Suite *libcore_gpl_checksum(void)
195 {
196- Suite *s = suite_create("libcore/gpl/checksum");
197+ Suite *s = suite_create("libcore/checksum");
198
199 TCase *tc_core = tcase_create("Core");
200 tcase_add_test(tc_core, test_ipv4_checksum_udp_hip_encap);

Subscribers

People subscribed via source and target branches

to all changes: