Messages in this thread Patch in this message | | | From | kuznet@ms2 ... | Subject | Re: [2.2.8] undefined reference __skb_push in ethertap.c | Date | Wed, 12 May 1999 23:19:33 +0400 (MSK DST) |
| |
Hello!
> grepping the complete kernel source tree, I can find no other > reference of __skb_push.
Wow! It's my fault and it is pretty offensive :-(
Delete the underscores or apply the patch.
Alexey Kuznetsov
--- ../orig/linux/include/linux/skbuff.h Sat Oct 17 21:59:39 1998 +++ linux/include/linux/skbuff.h Wed May 12 21:30:49 1999 @@ -449,6 +449,14 @@ * Add data to an sk_buff */ +extern __inline__ unsigned char *__skb_put(struct sk_buff *skb, unsigned int len) +{ + unsigned char *tmp=skb->tail; + skb->tail+=len; + skb->len+=len; + return tmp; +} + extern __inline__ unsigned char *skb_put(struct sk_buff *skb, unsigned int len) { unsigned char *tmp=skb->tail; @@ -461,6 +469,13 @@ here: ; } return tmp; +} + +extern __inline__ unsigned char *__skb_push(struct sk_buff *skb, unsigned int len) +{ + skb->data-=len; + skb->len+=len; + return skb->data; } extern __inline__ unsigned char *skb_push(struct sk_buff *skb, unsigned int len)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |