home *** CD-ROM | disk | FTP | other *** search
/ ftp.sustworks.com 2018 / ftp.sustworks.com.zip / ftp.sustworks.com / USBAx8817x_101.dmg / src / Source / mbufPanther.c < prev    next >
C/C++ Source or Header  |  2005-10-08  |  735b  |  54 lines

  1. //
  2. //  mbufPanther.c
  3. //
  4. //  Created by Peter Sichel on Wed May 11 2005.
  5. //  Copyright (c) 2005 Peter Siche & Daniel Sumorok
  6. //
  7. //  Shim to simplify coding to Tiger's stable KPI functions
  8. //
  9. #if !TIGER
  10. #include "mbufPanther.h"
  11.  
  12. void* mbuf_data(mbuf_t mbuf)
  13. {
  14.     return mbuf->m_data;
  15. }
  16.     
  17. size_t mbuf_pkthdr_len(mbuf_t mbuf)
  18. {
  19.     return mbuf->m_pkthdr.len;
  20. }
  21.  
  22. size_t mbuf_len(mbuf_t mbuf)
  23. {
  24.     return mbuf->m_len;
  25. }
  26.  
  27. mbuf_t mbuf_next(mbuf_t mbuf)
  28. {
  29.     return mbuf->m_next;
  30. }
  31.  
  32. mbuf_t mbuf_nextpkt(mbuf_t mbuf)
  33. {
  34.     return mbuf->m_nextpkt;
  35. }
  36.  
  37. void mbuf_setnextpkt(mbuf_t mbuf, mbuf_t nextpkt)
  38. {
  39.     mbuf->m_nextpkt = nextpkt;
  40. }
  41.  
  42. void mbuf_freem(mbuf_t mbuf)
  43. {
  44.     m_freem(mbuf);
  45. }
  46.  
  47. int mbuf_freem_list(mbuf_t mbuf)
  48. {
  49.     return m_freem_list(mbuf);
  50. }
  51.  
  52. #endif
  53.  
  54.