Rename pkb_available() to pkb_tailroom() for consistency with Linux's

skb_tailroom().  Add pkb_headroom().
This commit is contained in:
Michael Brown
2007-01-09 20:56:31 +00:00
parent b7fcfe8ece
commit 18e5353bed
4 changed files with 21 additions and 11 deletions

View File

@@ -437,10 +437,10 @@ static void undinet_poll ( struct net_device *netdev ) {
/* Fragment will be dropped */
goto done;
}
if ( frag_len > pkb_available ( pkb ) ) {
if ( frag_len > pkb_tailroom ( pkb ) ) {
DBGC ( undinic, "UNDINIC %p fragment too "
"large\n", undinic );
frag_len = pkb_available ( pkb );
frag_len = pkb_tailroom ( pkb );
}
copy_from_real ( pkb_put ( pkb, frag_len ),
undi_isr.Frame.segment,