Skip to content

Commit c44cdfd

Browse files
committed
Fix #2, #3, #48, #80, General Upgrade
Major rewrite - Fix #2: Added 64-bit support Added big endian payload options (use when LE selected to write BE fields) Fix #3: Added checksum calculation/overide Added the rest of the override possible fields (for error checking) Fix #48: Added standard type options (more clear/consistant sizing) Fix #80: Added cFS Version 2 header support Added protocol options Added raw message generation support Added test script Added debug and thirtytwo build options
1 parent dae41fa commit c44cdfd

File tree

5 files changed

+839
-404
lines changed

5 files changed

+839
-404
lines changed

Subsystems/cmdUtil/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
all::
1+
all:
22
gcc -o cmdUtil SendUdp.c cmdUtil.c
33

4+
debug:
5+
gcc -o cmdUtil -DDEBUG -g SendUdp.c cmdUtil.c
6+
7+
thirtytwo:
8+
gcc -o cmdUtil -DDEBUG -g -m32 SendUdp.c cmdUtil.c
9+

Subsystems/cmdUtil/SendUdp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef int socklen_t;
4545
/*
4646
** SendUdp
4747
*/
48-
int SendUdp(char *hostname, char *portNum, char *packetData, int packetSize)
48+
int SendUdp(char *hostname, char *portNum, unsigned char *packetData, int packetSize)
4949
{
5050
SOCKET sd;
5151
int rc;

Subsystems/cmdUtil/SendUdp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
#ifndef _sendudp_
2121
#define _sendudp_
2222

23-
int SendUdp(char *hostname, char *portNum, char *packetData, int packetSize);
23+
int SendUdp(char *hostname, char *portNum, unsigned char *packetData, int packetSize);
2424

2525
#endif /* _sendudp_ */

0 commit comments

Comments
 (0)