This module will provide packet utility functions
#include "cctalk-channel-defs.h"
#include "cctalk-operations.h"
#include "cctalk-channel.h"
#include "cctalk-pkts.h"
#include "cctalk-pkt-utls.h"
Include dependency graph for cctalk-pkt-utls.c:

Functions | |
| unsigned short | crc16 (unsigned char *cp, int len) |
| teCCTALK_ERRORS | cctu_FillOutPktHeader (tsCCTALK_SOCK_PKT_HDR *sPktHdr, unsigned long lPktType, unsigned long lPktSize) |
| Fill out the packet header with the necessary fields. | |
| tCHECKSUM | cctu_ChecksumPacket (void *pvCctPkt, int zlPktLen) |
| Will perform a checksum over a packet. | |
| unsigned char | cctalk_SimpleChecksum (unsigned char *pacData, unsigned char bLen) |
| return the simple checksum of a packet | |
|
||||||||||||
|
return the simple checksum of a packet Given a pointer to a byte array and a lenght return the simple cctalk packet checksum.
History |
|
||||||||||||
|
Will perform a checksum over a packet. This checksum is currently a 16-bitn crc of the packet. If the packet was OK then a value of CRCGOODFCS (0xf0b8) should be return if the packet and the CRC has a CRC calculation performed over it.
History |
|
||||||||||||||||
|
Fill out the packet header with the necessary fields. This fn will create the header for a cctalk packet
History |
1.3.6