You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Work is provided "as is". Any express or implied warranties, including but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the United States Government be liable for any direct, indirect, incidental, special, exemplary or consequential damages (including, but not limited to, procurement of substitute goods or services, loss of use, data or profits, or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this Work, even if advised of the possibility of such damage.
3
+
4
+
The User of this Work agrees to hold harmless and indemnify the United States Government, its agents and employees from every claim or liability (whether in tort or in contract), including attorneys' fees, court costs, and expenses, arising in direct consequence of Recipient's use of the item, including but not limited to, claims or liabilities made for injury to or death of personnel of User or third parties, damage to or destruction of property of User or third parties, infringement or other violations of intellectual property or technical data rights.
5
+
6
+
Nothing in this Work is intended to constitute an endorsement, explicit or implied, by the United States Government of any particular manufacturer's product or service.
7
+
8
+
## Disclaimer of Endorsement
9
+
Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise, in this Work does not constitute an endorsement, recommendation, or favoring by the United States Government and shall not be used for advertising or product endorsement purposes.
This Work was prepared by a United States Government employee and, therefore, is excluded from copyright by Section 105 of the Copyright Act of 1976.
2
+
3
+
Copyright and Related Rights in the Work worldwide are waived through the [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)[Universal license](https://creativecommons.org/publicdomain/zero/1.0/legalcode).
#if there is any callback data then write it to disk
62
+
ifcallbackdataisnotNone:
63
+
filehandle.write(callbackdata)
64
+
65
+
#finally write the actual data to disk
66
+
filehandle.write(databuffer)
67
+
68
+
#flush the data to make sure it hits disk
69
+
filehandle.flush()
70
+
71
+
#this function is used when used with libserial2pcap - it is responsible for taking identified packets from BufferOutput and storing them in a shared PCAP buffer
72
+
#pcapbuffer - internal buffer used to store processed packets and header information
73
+
#data - actual packet data that will be stored in the pcapbuffer
74
+
#CallBackFunction - function pointer from a processing plugin that needs to be called before storing data
75
+
#datalinktype - the data link type as provided from the processing plugin
0 commit comments