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

Proposed by Miika Komu
Status: Merged
Merged at revision: 6426
Proposed branch: lp:~hipl-core/hipl/hip-checksum
Merge into: lp:hipl
Diff against target: 185 lines (+62/-17)
8 files modified
Makefile.am (+2/-2)
hipfw/reinject.c (+1/-1)
hipfw/rewrite.c (+1/-1)
hipfw/user_ipsec_esp.c (+1/-1)
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 Pending
Review via email: mp+166952@code.launchpad.net

This proposal supersedes a proposal from 2013-06-01.

Description of the change

Moving checksum.c under new licenses (under a single file). Diego's previous comments should be now addressed.

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

 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
Revision history for this message
Miika Komu (miika-iki) wrote :

I am going to merge the code on Tuesday 12th of June unless there are further comments.

Revision history for this message
Diego Biurrun (diego-biurrun) wrote :

On 2013-06-09 11:20, Miika Komu wrote:
> I am going to merge the code on Tuesday 12th of June unless there are further comments.

It still appears to contain some of the silly copyright year changes..

Diego

lp:~hipl-core/hipl/hip-checksum updated
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)

Revision history for this message
Miika Komu (miika-iki) wrote :

Fixed, going to merge now.

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

Subscribers

People subscribed via source and target branches

to all changes: