mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
resized mac sizes from 50 to 18, ip addresses to 16
This commit is contained in:
@ -323,7 +323,7 @@ u_int32_t getDetectorIP() {
|
||||
#ifdef VIRTUAL
|
||||
return 0;
|
||||
#endif
|
||||
char temp[50] = "";
|
||||
char temp[INET_ADDRSTRLEN] = "";
|
||||
u_int32_t res = 0;
|
||||
// execute and get address
|
||||
char output[255];
|
||||
@ -1743,16 +1743,16 @@ int configureMAC() {
|
||||
int dstport2 = udpDetails[0].dstport2;
|
||||
|
||||
LOG(logINFOBLUE, ("Configuring MAC\n"));
|
||||
char src_mac[50], src_ip[INET_ADDRSTRLEN], dst_mac[50],
|
||||
dst_ip[INET_ADDRSTRLEN];
|
||||
getMacAddressinString(src_mac, 50, srcmac);
|
||||
getMacAddressinString(dst_mac, 50, dstmac);
|
||||
char src_mac[MAC_ADDRESS_SIZE], src_ip[INET_ADDRSTRLEN],
|
||||
dst_mac[MAC_ADDRESS_SIZE], dst_ip[INET_ADDRSTRLEN];
|
||||
getMacAddressinString(src_mac, MAC_ADDRESS_SIZE, srcmac);
|
||||
getMacAddressinString(dst_mac, MAC_ADDRESS_SIZE, dstmac);
|
||||
getIpAddressinString(src_ip, srcip);
|
||||
getIpAddressinString(dst_ip, dstip);
|
||||
char src_mac2[50], src_ip2[INET_ADDRSTRLEN], dst_mac2[50],
|
||||
dst_ip2[INET_ADDRSTRLEN];
|
||||
getMacAddressinString(src_mac2, 50, srcmac2);
|
||||
getMacAddressinString(dst_mac2, 50, dstmac2);
|
||||
char src_mac2[MAC_ADDRESS_SIZE], src_ip2[INET_ADDRSTRLEN],
|
||||
dst_mac2[MAC_ADDRESS_SIZE], dst_ip2[INET_ADDRSTRLEN];
|
||||
getMacAddressinString(src_mac2, MAC_ADDRESS_SIZE, srcmac2);
|
||||
getMacAddressinString(dst_mac2, MAC_ADDRESS_SIZE, dstmac2);
|
||||
getIpAddressinString(src_ip2, srcip2);
|
||||
getIpAddressinString(dst_ip2, dstip2);
|
||||
|
||||
|
Reference in New Issue
Block a user