Get raw text for this example (you can click any command below to see its doc)
/* Set of examples about using strings. run: anettest -d eth0 -f this_file.fws */INCLUDEtcpPARAMETERS: <name of file>Starts processing the content of given file. The search of file will be performed in the current directory, all search paths (see option -I). For every path the content of samples, headers, traces folders will be also examined.// symbol \ before a new line causes that the new line will be ignored// otherwise LF symbol will be insertedtd = "\ FIRSTPARAMETERS: no commandThis special value retrieves field's value from the first packet in trace file.line SECONDPARAMETERS: no commandThis special value retrieves field's value from the first packet in trace file.PARAMETERS: no commandThis special value retrieves field's value from the second packet in trace file.line " SENDPARAMETERS: no commandThis special value retrieves field's value from the second packet in trace file.PARAMETERS: {accept | drop | any }In common regime generates the packet defined above. In other regimes (testing packet filter, see command FASTTESTand option -c) may simply separate packets one from another, so by this command the current content of buffer will be fixed and the new packet will be registered. The requests after command don't make sense in common regime (only while testing packet filter).PARAMETERS: no parametersEnables fasttest regime for packet filter test. See "samples/fasttest".PARAMETERS: {accept | drop | any }In common regime generates the packet defined above. In other regimes (testing packet filter, see command FASTTESTand option -c) may simply separate packets one from another, so by this command the current content of buffer will be fixed and the new packet will be registered. The requests after command don't make sense in common regime (only while testing packet filter).PARAMETERS: no parametersEnables fasttest regime for packet filter test. See "samples/fasttest".// CRLF symbol may be implemented by adding \r sequencetd = "\ FIRSTPARAMETERS: no commandThis special value retrieves field's value from the first packet in trace file.line\r SECONDPARAMETERS: no commandThis special value retrieves field's value from the first packet in trace file.PARAMETERS: no commandThis special value retrieves field's value from the second packet in trace file.line" SENDPARAMETERS: no commandThis special value retrieves field's value from the second packet in trace file.PARAMETERS: {accept | drop | any }In common regime generates the packet defined above. In other regimes (testing packet filter, see command FASTTESTand option -c) may simply separate packets one from another, so by this command the current content of buffer will be fixed and the new packet will be registered. The requests after command don't make sense in common regime (only while testing packet filter).PARAMETERS: no parametersEnables fasttest regime for packet filter test. See "samples/fasttest".NEWLINEISPARAMETERS: {accept | drop | any }In common regime generates the packet defined above. In other regimes (testing packet filter, see command FASTTESTand option -c) may simply separate packets one from another, so by this command the current content of buffer will be fixed and the new packet will be registered. The requests after command don't make sense in common regime (only while testing packet filter).PARAMETERS: no parametersEnables fasttest regime for packet filter test. See "samples/fasttest".PARAMETERS: <string>Sets the string which must replace any original LF symbol while working with strings. See "samples/strings.fws""\r\n"// indicates to replace a new line by the specified sequencetd = "first line SECONDPARAMETERS: no commandThis special value retrieves field's value from the second packet in trace file.line " SENDPARAMETERS: no commandThis special value retrieves field's value from the second packet in trace file.PARAMETERS: {accept | drop | any }In common regime generates the packet defined above. In other regimes (testing packet filter, see command FASTTESTand option -c) may simply separate packets one from another, so by this command the current content of buffer will be fixed and the new packet will be registered. The requests after command don't make sense in common regime (only while testing packet filter).PARAMETERS: no parametersEnables fasttest regime for packet filter test. See "samples/fasttest".PARAMETERS: {accept | drop | any }In common regime generates the packet defined above. In other regimes (testing packet filter, see command FASTTESTand option -c) may simply separate packets one from another, so by this command the current content of buffer will be fixed and the new packet will be registered. The requests after command don't make sense in common regime (only while testing packet filter).PARAMETERS: no parametersEnables fasttest regime for packet filter test. See "samples/fasttest".