How to "replay" wireshark c-array in perl or C -


How will it be known about moving the hex data into the program and sending it back?

  four peer0_0 [] = {0x00, 0x00, 0x10, 0x01, 0xbf, 0x8b, 0xf9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x07}; Four peer0_1 [] = {0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04}; Four peer0_2 [] = {0x02, 0x00, 0x00, 0x00};  

If you already have the code in the format you posted, then There is not much to do You have not really specified that you want to play it again. Depending on how you want to do it, you send the array directly, which works with real dispatch. For example, if you want to send this data to the existing socket, you can do something like:

  send (my_socket, peer0_0, sizeof (peer0_0), 0);  

Comments