diff options
author | Armin Kuster <akuster808@gmail.com> | 2018-04-07 23:26:20 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-04-13 12:43:43 -0700 |
commit | a0cbe9f308356a712eaae426818abcf41f44f29e (patch) | |
tree | 85590f03e3cc31c06a90e9b5bed008dfd5b8bac8 | |
parent | a03645865e53bbe393211bc5d8b2a55505217085 (diff) | |
download | meta-openembedded-a0cbe9f308356a712eaae426818abcf41f44f29e.tar.gz |
libnetfilter-cthelper: refresh patches
WARNING: libnetfilter-cthelper-1.0.0-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:
devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>
Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch libnetfilter-cthelper-visibility-hidden.patch
patching file doxygen.cfg.in
patching file src/internal.h
patching file src/libnetfilter_cthelper.c
Hunk #2 succeeded at 118 with fuzz 2.
Now at patch libnetfilter-cthelper-visibility-hidden.patch
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-networking/recipes-filter/libnetfilter/files/libnetfilter-cthelper-visibility-hidden.patch | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/meta-networking/recipes-filter/libnetfilter/files/libnetfilter-cthelper-visibility-hidden.patch b/meta-networking/recipes-filter/libnetfilter/files/libnetfilter-cthelper-visibility-hidden.patch index 9377f57cb0..e717d5b0e3 100644 --- a/meta-networking/recipes-filter/libnetfilter/files/libnetfilter-cthelper-visibility-hidden.patch +++ b/meta-networking/recipes-filter/libnetfilter/files/libnetfilter-cthelper-visibility-hidden.patch | |||
@@ -20,10 +20,10 @@ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | |||
20 | src/libnetfilter_cthelper.c | 83 ++++++++++++++++++--------------------------- | 20 | src/libnetfilter_cthelper.c | 83 ++++++++++++++++++--------------------------- |
21 | 3 files changed, 36 insertions(+), 54 deletions(-) | 21 | 3 files changed, 36 insertions(+), 54 deletions(-) |
22 | 22 | ||
23 | diff --git a/doxygen.cfg.in b/doxygen.cfg.in | 23 | Index: libnetfilter_cthelper-1.0.0/doxygen.cfg.in |
24 | index cac9b05..190b7cd 100644 | 24 | =================================================================== |
25 | --- a/doxygen.cfg.in | 25 | --- libnetfilter_cthelper-1.0.0.orig/doxygen.cfg.in |
26 | +++ b/doxygen.cfg.in | 26 | +++ libnetfilter_cthelper-1.0.0/doxygen.cfg.in |
27 | @@ -72,7 +72,7 @@ RECURSIVE = YES | 27 | @@ -72,7 +72,7 @@ RECURSIVE = YES |
28 | EXCLUDE = | 28 | EXCLUDE = |
29 | EXCLUDE_SYMLINKS = NO | 29 | EXCLUDE_SYMLINKS = NO |
@@ -33,10 +33,10 @@ index cac9b05..190b7cd 100644 | |||
33 | EXAMPLE_PATH = | 33 | EXAMPLE_PATH = |
34 | EXAMPLE_PATTERNS = | 34 | EXAMPLE_PATTERNS = |
35 | EXAMPLE_RECURSIVE = NO | 35 | EXAMPLE_RECURSIVE = NO |
36 | diff --git a/src/internal.h b/src/internal.h | 36 | Index: libnetfilter_cthelper-1.0.0/src/internal.h |
37 | index 3a88d1a..5d78171 100644 | 37 | =================================================================== |
38 | --- a/src/internal.h | 38 | --- libnetfilter_cthelper-1.0.0.orig/src/internal.h |
39 | +++ b/src/internal.h | 39 | +++ libnetfilter_cthelper-1.0.0/src/internal.h |
40 | @@ -3,10 +3,9 @@ | 40 | @@ -3,10 +3,9 @@ |
41 | 41 | ||
42 | #include "config.h" | 42 | #include "config.h" |
@@ -50,10 +50,10 @@ index 3a88d1a..5d78171 100644 | |||
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #endif | 52 | #endif |
53 | diff --git a/src/libnetfilter_cthelper.c b/src/libnetfilter_cthelper.c | 53 | Index: libnetfilter_cthelper-1.0.0/src/libnetfilter_cthelper.c |
54 | index f8f58e6..af543a1 100644 | 54 | =================================================================== |
55 | --- a/src/libnetfilter_cthelper.c | 55 | --- libnetfilter_cthelper-1.0.0.orig/src/libnetfilter_cthelper.c |
56 | +++ b/src/libnetfilter_cthelper.c | 56 | +++ libnetfilter_cthelper-1.0.0/src/libnetfilter_cthelper.c |
57 | @@ -99,17 +99,16 @@ struct nfct_helper { | 57 | @@ -99,17 +99,16 @@ struct nfct_helper { |
58 | * In case of success, this function returns a valid pointer, otherwise NULL | 58 | * In case of success, this function returns a valid pointer, otherwise NULL |
59 | * s returned and errno is appropriately set. | 59 | * s returned and errno is appropriately set. |
@@ -74,9 +74,9 @@ index f8f58e6..af543a1 100644 | |||
74 | { | 74 | { |
75 | int i; | 75 | int i; |
76 | 76 | ||
77 | @@ -119,7 +118,6 @@ void nfct_helper_free(struct nfct_helper *h) | 77 | @@ -119,7 +118,6 @@ void nfct_helper_free(struct nfct_helper |
78 | free(h->expect_policy[i]); | ||
78 | } | 79 | } |
79 | free(h); | ||
80 | } | 80 | } |
81 | -EXPORT_SYMBOL(nfct_helper_free); | 81 | -EXPORT_SYMBOL(nfct_helper_free); |
82 | 82 | ||
@@ -115,7 +115,7 @@ index f8f58e6..af543a1 100644 | |||
115 | nfct_helper_policy_attr_set(struct nfct_helper_policy *p, | 115 | nfct_helper_policy_attr_set(struct nfct_helper_policy *p, |
116 | enum nfct_helper_policy_attr_type type, | 116 | enum nfct_helper_policy_attr_type type, |
117 | const void *data) | 117 | const void *data) |
118 | @@ -170,7 +166,6 @@ nfct_helper_policy_attr_set(struct nfct_helper_policy *p, | 118 | @@ -170,7 +166,6 @@ nfct_helper_policy_attr_set(struct nfct_ |
119 | break; | 119 | break; |
120 | } | 120 | } |
121 | } | 121 | } |
@@ -123,7 +123,7 @@ index f8f58e6..af543a1 100644 | |||
123 | 123 | ||
124 | /** | 124 | /** |
125 | * nfct_helper_attr_set_str - set one attribute the helper object | 125 | * nfct_helper_attr_set_str - set one attribute the helper object |
126 | @@ -178,23 +173,21 @@ EXPORT_SYMBOL(nfct_helper_policy_attr_set); | 126 | @@ -178,23 +173,21 @@ EXPORT_SYMBOL(nfct_helper_policy_attr_se |
127 | * \param type attribute type you want to set | 127 | * \param type attribute type you want to set |
128 | * \param name string that will be used to set this attribute | 128 | * \param name string that will be used to set this attribute |
129 | */ | 129 | */ |
@@ -149,7 +149,7 @@ index f8f58e6..af543a1 100644 | |||
149 | 149 | ||
150 | /** | 150 | /** |
151 | * nfct_helper_attr_set - set one attribute of the helper object | 151 | * nfct_helper_attr_set - set one attribute of the helper object |
152 | @@ -202,7 +195,7 @@ EXPORT_SYMBOL(nfct_helper_policy_attr_set_u32); | 152 | @@ -202,7 +195,7 @@ EXPORT_SYMBOL(nfct_helper_policy_attr_se |
153 | * \param type attribute type you want to set | 153 | * \param type attribute type you want to set |
154 | * \param data pointer to data that will be used to set this attribute | 154 | * \param data pointer to data that will be used to set this attribute |
155 | */ | 155 | */ |
@@ -158,7 +158,7 @@ index f8f58e6..af543a1 100644 | |||
158 | nfct_helper_attr_set(struct nfct_helper *h, | 158 | nfct_helper_attr_set(struct nfct_helper *h, |
159 | enum nfct_helper_attr_type type, const void *data) | 159 | enum nfct_helper_attr_type type, const void *data) |
160 | { | 160 | { |
161 | @@ -250,7 +243,6 @@ nfct_helper_attr_set(struct nfct_helper *h, | 161 | @@ -250,7 +243,6 @@ nfct_helper_attr_set(struct nfct_helper |
162 | break; | 162 | break; |
163 | } | 163 | } |
164 | } | 164 | } |
@@ -216,7 +216,7 @@ index f8f58e6..af543a1 100644 | |||
216 | nfct_helper_attr_unset(struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type) | 216 | nfct_helper_attr_unset(struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type) |
217 | { | 217 | { |
218 | switch(type) { | 218 | switch(type) { |
219 | @@ -307,7 +295,6 @@ nfct_helper_attr_unset(struct nfct_helper *nfct_helper, enum nfct_helper_attr_ty | 219 | @@ -307,7 +295,6 @@ nfct_helper_attr_unset(struct nfct_helpe |
220 | break; | 220 | break; |
221 | } | 221 | } |
222 | } | 222 | } |
@@ -236,7 +236,7 @@ index f8f58e6..af543a1 100644 | |||
236 | { | 236 | { |
237 | const void *ret = NULL; | 237 | const void *ret = NULL; |
238 | 238 | ||
239 | @@ -358,7 +346,6 @@ const void *nfct_helper_attr_get(struct nfct_helper *helper, | 239 | @@ -358,7 +346,6 @@ const void *nfct_helper_attr_get(struct |
240 | } | 240 | } |
241 | return ret; | 241 | return ret; |
242 | } | 242 | } |
@@ -321,7 +321,7 @@ index f8f58e6..af543a1 100644 | |||
321 | { | 321 | { |
322 | int ret; | 322 | int ret; |
323 | 323 | ||
324 | @@ -454,7 +441,6 @@ int nfct_helper_snprintf(char *buf, size_t size, | 324 | @@ -454,7 +441,6 @@ int nfct_helper_snprintf(char *buf, size |
325 | 325 | ||
326 | return ret; | 326 | return ret; |
327 | } | 327 | } |
@@ -338,7 +338,7 @@ index f8f58e6..af543a1 100644 | |||
338 | nfct_helper_nlmsg_build_hdr(char *buf, uint8_t cmd, | 338 | nfct_helper_nlmsg_build_hdr(char *buf, uint8_t cmd, |
339 | uint16_t flags, uint32_t seq) | 339 | uint16_t flags, uint32_t seq) |
340 | { | 340 | { |
341 | @@ -509,7 +495,6 @@ nfct_helper_nlmsg_build_hdr(char *buf, uint8_t cmd, | 341 | @@ -509,7 +495,6 @@ nfct_helper_nlmsg_build_hdr(char *buf, u |
342 | 342 | ||
343 | return nlh; | 343 | return nlh; |
344 | } | 344 | } |
@@ -346,7 +346,7 @@ index f8f58e6..af543a1 100644 | |||
346 | 346 | ||
347 | static void | 347 | static void |
348 | nfct_helper_nlmsg_build_policy(struct nlmsghdr *nlh, | 348 | nfct_helper_nlmsg_build_policy(struct nlmsghdr *nlh, |
349 | @@ -530,7 +515,7 @@ nfct_helper_nlmsg_build_policy(struct nlmsghdr *nlh, | 349 | @@ -530,7 +515,7 @@ nfct_helper_nlmsg_build_policy(struct nl |
350 | * \param nlh: netlink message that you want to use to add the payload. | 350 | * \param nlh: netlink message that you want to use to add the payload. |
351 | * \param nfct_helper: pointer to a helper object | 351 | * \param nfct_helper: pointer to a helper object |
352 | */ | 352 | */ |
@@ -355,7 +355,7 @@ index f8f58e6..af543a1 100644 | |||
355 | nfct_helper_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfct_helper *h) | 355 | nfct_helper_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfct_helper *h) |
356 | { | 356 | { |
357 | struct nlattr *nest; | 357 | struct nlattr *nest; |
358 | @@ -593,7 +578,6 @@ nfct_helper_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfct_helper *h) | 358 | @@ -593,7 +578,6 @@ nfct_helper_nlmsg_build_payload(struct n |
359 | if (h->bitset & (1 << NFCTH_ATTR_STATUS)) | 359 | if (h->bitset & (1 << NFCTH_ATTR_STATUS)) |
360 | mnl_attr_put_u32(nlh, NFCTH_STATUS, ntohl(h->status)); | 360 | mnl_attr_put_u32(nlh, NFCTH_STATUS, ntohl(h->status)); |
361 | } | 361 | } |
@@ -363,7 +363,7 @@ index f8f58e6..af543a1 100644 | |||
363 | 363 | ||
364 | static int | 364 | static int |
365 | nfct_helper_nlmsg_parse_tuple_cb(const struct nlattr *attr, void *data) | 365 | nfct_helper_nlmsg_parse_tuple_cb(const struct nlattr *attr, void *data) |
366 | @@ -795,7 +779,7 @@ nfct_helper_nlmsg_parse_attr_cb(const struct nlattr *attr, void *data) | 366 | @@ -795,7 +779,7 @@ nfct_helper_nlmsg_parse_attr_cb(const st |
367 | * This function returns -1 in case that some mandatory attributes are | 367 | * This function returns -1 in case that some mandatory attributes are |
368 | * missing. On sucess, it returns 0. | 368 | * missing. On sucess, it returns 0. |
369 | */ | 369 | */ |
@@ -372,7 +372,7 @@ index f8f58e6..af543a1 100644 | |||
372 | nfct_helper_nlmsg_parse_payload(const struct nlmsghdr *nlh, | 372 | nfct_helper_nlmsg_parse_payload(const struct nlmsghdr *nlh, |
373 | struct nfct_helper *h) | 373 | struct nfct_helper *h) |
374 | { | 374 | { |
375 | @@ -832,7 +816,6 @@ nfct_helper_nlmsg_parse_payload(const struct nlmsghdr *nlh, | 375 | @@ -832,7 +816,6 @@ nfct_helper_nlmsg_parse_payload(const st |
376 | } | 376 | } |
377 | return 0; | 377 | return 0; |
378 | } | 378 | } |
@@ -380,6 +380,3 @@ index f8f58e6..af543a1 100644 | |||
380 | 380 | ||
381 | /** | 381 | /** |
382 | * @} | 382 | * @} |
383 | -- | ||
384 | cgit v1.1 | ||
385 | |||