[PATCH][TRIVIAL] warnings removal in some ip6 patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

this patch adds casts to some ipv6 patches to remove warnings.

Best Regards,
Maciej Soltysiak

diff -ru netfilter.orig/patch-o-matic/base/ahesp6.patch.ipv6 netfilter/patch-o-matic/base/ahesp6.patch.ipv6
--- netfilter.orig/patch-o-matic/base/ahesp6.patch.ipv6	2003-01-07 19:49:12.000000000 +0100
+++ netfilter/patch-o-matic/base/ahesp6.patch.ipv6	2003-01-07 19:52:51.000000000 +0100
@@ -101,7 +101,7 @@
 +                     break;
 +              }
 +
-+              hdr=skb->data+ptr;
++              hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +              /* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {
@@ -320,7 +320,7 @@
 +			break;
 +		}
 +
-+		hdr=skb->data+ptr;
++		hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +		/* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {
diff -ru netfilter.orig/patch-o-matic/base/frag6.patch.ipv6 netfilter/patch-o-matic/base/frag6.patch.ipv6
--- netfilter.orig/patch-o-matic/base/frag6.patch.ipv6	2003-01-07 19:49:12.000000000 +0100
+++ netfilter/patch-o-matic/base/frag6.patch.ipv6	2003-01-07 19:53:00.000000000 +0100
@@ -115,7 +115,7 @@
 +                     break;
 +              }
 +
-+              hdr=skb->data+ptr;
++              hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +              /* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {
diff -ru netfilter.orig/patch-o-matic/base/ipv6header.patch.ipv6 netfilter/patch-o-matic/base/ipv6header.patch.ipv6
--- netfilter.orig/patch-o-matic/base/ipv6header.patch.ipv6	2003-01-07 19:49:12.000000000 +0100
+++ netfilter/patch-o-matic/base/ipv6header.patch.ipv6	2003-01-07 19:53:07.000000000 +0100
@@ -120,7 +120,7 @@
 +			break;
 +		}
 +
-+		hdr=skb->data+ptr;
++		hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +		/* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {
diff -ru netfilter.orig/patch-o-matic/base/route6.patch.ipv6 netfilter/patch-o-matic/base/route6.patch.ipv6
--- netfilter.orig/patch-o-matic/base/route6.patch.ipv6	2003-01-07 19:49:12.000000000 +0100
+++ netfilter/patch-o-matic/base/route6.patch.ipv6	2003-01-07 19:53:23.000000000 +0100
@@ -139,7 +139,7 @@
 +                     break;
 +              }
 +
-+              hdr=skb->data+ptr;
++              hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +              /* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {




-----BEGIN GEEK CODE BLOCK-----
VERSION: 3.1
GIT/MU d-- s:- a-- C++ UL++++$ P L++++ E- W- N- K- w--- O! M- V- PS+ PE++
Y+ PGP- t+ 5-- X+ R tv- b DI+ D---- G e+++> h! y?
-----END GEEK CODE BLOCK-----
diff -ru netfilter.orig/patch-o-matic/base/ahesp6.patch.ipv6 netfilter/patch-o-matic/base/ahesp6.patch.ipv6
--- netfilter.orig/patch-o-matic/base/ahesp6.patch.ipv6	2003-01-07 19:49:12.000000000 +0100
+++ netfilter/patch-o-matic/base/ahesp6.patch.ipv6	2003-01-07 19:52:51.000000000 +0100
@@ -101,7 +101,7 @@
 +                     break;
 +              }
 +
-+              hdr=skb->data+ptr;
++              hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +              /* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {
@@ -320,7 +320,7 @@
 +			break;
 +		}
 +
-+		hdr=skb->data+ptr;
++		hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +		/* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {
diff -ru netfilter.orig/patch-o-matic/base/frag6.patch.ipv6 netfilter/patch-o-matic/base/frag6.patch.ipv6
--- netfilter.orig/patch-o-matic/base/frag6.patch.ipv6	2003-01-07 19:49:12.000000000 +0100
+++ netfilter/patch-o-matic/base/frag6.patch.ipv6	2003-01-07 19:53:00.000000000 +0100
@@ -115,7 +115,7 @@
 +                     break;
 +              }
 +
-+              hdr=skb->data+ptr;
++              hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +              /* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {
diff -ru netfilter.orig/patch-o-matic/base/ipv6header.patch.ipv6 netfilter/patch-o-matic/base/ipv6header.patch.ipv6
--- netfilter.orig/patch-o-matic/base/ipv6header.patch.ipv6	2003-01-07 19:49:12.000000000 +0100
+++ netfilter/patch-o-matic/base/ipv6header.patch.ipv6	2003-01-07 19:53:07.000000000 +0100
@@ -120,7 +120,7 @@
 +			break;
 +		}
 +
-+		hdr=skb->data+ptr;
++		hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +		/* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {
diff -ru netfilter.orig/patch-o-matic/base/route6.patch.ipv6 netfilter/patch-o-matic/base/route6.patch.ipv6
--- netfilter.orig/patch-o-matic/base/route6.patch.ipv6	2003-01-07 19:49:12.000000000 +0100
+++ netfilter/patch-o-matic/base/route6.patch.ipv6	2003-01-07 19:53:23.000000000 +0100
@@ -139,7 +139,7 @@
 +                     break;
 +              }
 +
-+              hdr=skb->data+ptr;
++              hdr=(struct ipv6_opt_hdr *)skb->data+ptr;
 +
 +              /* Calculate the header length */
 +                if (nexthdr == NEXTHDR_FRAGMENT) {

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux