|
|
@ -30,15 +30,15 @@ void nas_pcap::enable()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
enable_write = true;
|
|
|
|
enable_write = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void nas_pcap::open(const char* filename, uint32_t ue_id)
|
|
|
|
void nas_pcap::open(const char* filename, uint32_t ue_id_)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pcap_file = LTE_PCAP_Open(NAS_LTE_DLT, filename);
|
|
|
|
pcap_file = LTE_PCAP_Open(NAS_LTE_DLT, filename);
|
|
|
|
ue_id = ue_id;
|
|
|
|
ue_id = ue_id_;
|
|
|
|
enable_write = true;
|
|
|
|
enable_write = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void nas_pcap::close()
|
|
|
|
void nas_pcap::close()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
fprintf(stdout, "Saving NAS PCAP file\n");
|
|
|
|
fprintf(stdout, "Saving NAS PCAP file (DLT=%d)\n", NAS_LTE_DLT);
|
|
|
|
LTE_PCAP_Close(pcap_file);
|
|
|
|
LTE_PCAP_Close(pcap_file);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|