// copy the context into struct so we cant reference bad memory
// print the components of the struct, prove that it works!
all_context_t if_context;
- memcpy(((uint32_t*)&if_context) + 5, payload, sizeof(uint32_t)*n32_bit_words);//FIXME
+ memcpy(&if_context, payload, sizeof(uint32_t)*n32_bit_words);//FIXME
fprintf(stderr, "\nIF-Context-Components:\n");
if_context.beamformer.rf_ref_freq = ntohll(if_context.beamformer.rf_ref_freq);
fprintf(stderr, "Ref Freq %f Hz\n", vrt_freq_to_double(if_context.beamformer.rf_ref_freq));
#include "expanded_header_switch_body.h"
}
+ /* is this a if context packet? */
+ if (ntohl(p[0]) & VRTH_PT_IF_CONTEXT){
+ *payload = p;
+ *n32_bit_words_payload = n32_bit_words_packet;
+ }
+
return true;
}