[Devel] [PATCH] checkpoint: fix net/checkpoint.c for 64-bit
Nathan Lynch
ntl at pobox.com
Thu Dec 3 11:50:07 PST 2009
When NET_SKBUFF_DATA_USES_OFFSET is defined:
net/checkpoint.c:100: error: invalid operands to binary - (have
'sk_buff_data_t' and 'unsigned char *')
net/checkpoint.c:106: error: 'struct sk_buff' has no member named
'transport_hdr'
Signed-off-by: Nathan Lynch <ntl at pobox.com>
---
net/checkpoint.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/checkpoint.c b/net/checkpoint.c
index 56bb026..c1c3e29 100644
--- a/net/checkpoint.c
+++ b/net/checkpoint.c
@@ -97,13 +97,13 @@ static void sock_record_header_info(struct sk_buff *skb,
h->mac_len = skb->mac_len;
h->skb_len = skb->len;
h->hdr_len = skb->data - skb->head;
- h->lin_len = (skb->tail - skb->head);
+ h->lin_len = ((unsigned long)skb->tail - (unsigned long)skb->head);
h->frg_len = skb->data_len;
h->data_offset = (skb->data - skb->head);
#ifdef NET_SKBUFF_DATA_USES_OFFSET
- h->transport_header = skb->transport_hdr;
+ h->transport_header = skb->transport_header;
h->network_header = skb->network_header;
h->mac_header = skb->mac_header;
#else
--
1.6.0.6
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list