diff options
| author | Michael Brown | 2006-04-28 16:09:31 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-04-28 16:09:31 +0200 |
| commit | 1488cd3b73af55931af8731450369ae04a5d1c90 (patch) | |
| tree | 74a98dd42977290c1185a269bf2bb98cff17ff50 /src/include | |
| parent | Transmit the buffer contents, not the buffer descriptor... (diff) | |
| download | ipxe-1488cd3b73af55931af8731450369ae04a5d1c90.tar.gz ipxe-1488cd3b73af55931af8731450369ae04a5d1c90.tar.xz ipxe-1488cd3b73af55931af8731450369ae04a5d1c90.zip | |
Fix a couple of broken assertions, and align the buffer correctly.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/pkbuff.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gpxe/pkbuff.h b/src/include/gpxe/pkbuff.h index 646b540dc..92244fd59 100644 --- a/src/include/gpxe/pkbuff.h +++ b/src/include/gpxe/pkbuff.h @@ -33,7 +33,7 @@ struct ll_protocol; * This structure is used to represent a network packet within gPXE. */ struct pk_buff { - /** Head of the buffer */ + /** Start of the buffer */ void *head; /** Start of data */ void *data; @@ -87,7 +87,7 @@ static inline void * pkb_push ( struct pk_buff *pkb, size_t len ) { */ static inline void * pkb_pull ( struct pk_buff *pkb, size_t len ) { pkb->data += len; - assert ( pkb->data >= pkb->tail ); + assert ( pkb->data <= pkb->tail ); return pkb->data; } |
