Skip to content

Commit

Permalink
Fix nasa#2, nasa#3, nasa#48, nasa#80, General Upgrade
Browse files Browse the repository at this point in the history
Major rewrite -
Fix nasa#2: Added 64-bit support
Added big endian payload options (use when LE selected to write BE fields)
Fix nasa#3: Added checksum calculation/overide
Added the rest of the override possible fields (for error checking)
Fix nasa#48: Added standard type options (more clear/consistant sizing)
Fix nasa#80: Added cFS Version 2 header support
Added protocol options
Added raw message generation support
Added test script
Added debug and thirtytwo build options
  • Loading branch information
skliper committed May 26, 2020
1 parent dae41fa commit 3e62ff8
Show file tree
Hide file tree
Showing 5 changed files with 856 additions and 404 deletions.
8 changes: 7 additions & 1 deletion Subsystems/cmdUtil/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
all::
all:
gcc -o cmdUtil SendUdp.c cmdUtil.c

debug:
gcc -o cmdUtil -DDEBUG -g SendUdp.c cmdUtil.c

thirtytwo:
gcc -o cmdUtil -DDEBUG -g -m32 SendUdp.c cmdUtil.c

2 changes: 1 addition & 1 deletion Subsystems/cmdUtil/SendUdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ typedef int socklen_t;
/*
** SendUdp
*/
int SendUdp(char *hostname, char *portNum, char *packetData, int packetSize)
int SendUdp(char *hostname, char *portNum, unsigned char *packetData, int packetSize)
{
SOCKET sd;
int rc;
Expand Down
2 changes: 1 addition & 1 deletion Subsystems/cmdUtil/SendUdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
#ifndef _sendudp_
#define _sendudp_

int SendUdp(char *hostname, char *portNum, char *packetData, int packetSize);
int SendUdp(char *hostname, char *portNum, unsigned char *packetData, int packetSize);

#endif /* _sendudp_ */
Loading

0 comments on commit 3e62ff8

Please sign in to comment.