patch-2.1.112 linux/include/linux/skbuff.h

Next file: linux/include/linux/smp.h
Previous file: linux/include/linux/simp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.111/linux/include/linux/skbuff.h linux/include/linux/skbuff.h
@@ -151,6 +151,8 @@
 extern int			skb_tailroom(struct sk_buff *skb);
 extern void			skb_reserve(struct sk_buff *skb, unsigned int len);
 extern void 			skb_trim(struct sk_buff *skb, unsigned int len);
+extern void	skb_over_panic(struct sk_buff *skb, int len, void *here);
+extern void	skb_under_panic(struct sk_buff *skb, int len, void *here);
 
 /* Internal */
 extern __inline__ atomic_t *skb_datarefp(struct sk_buff *skb)
@@ -437,10 +439,6 @@
 	return result;
 }
 
-
-extern const char skb_put_errstr[];
-extern const char skb_push_errstr[];
-
 /*
  *	Add data to an sk_buff
  */
@@ -452,9 +450,9 @@
 	skb->len+=len;
 	if(skb->tail>skb->end)
 	{
-		__label__ here;
-		panic(skb_put_errstr,&&here,len);
-here:          ;
+		__label__ here; 
+		skb_over_panic(skb, len, &&here); 
+here:		;
 	}
 	return tmp;
 }
@@ -466,8 +464,8 @@
 	if(skb->data<skb->head)
 	{
 		__label__ here;
-		panic(skb_push_errstr, &&here,len);
-here:          ;
+		skb_under_panic(skb, len, &&here);
+here: 		;
 	}
 	return skb->data;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov