Skip to contentSkip to conversation

LOG target with MARK?

DISCUSSION Aaron Lewis 2 participants 3 messages Feb 12, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

Looks like the LOG target doesn't output the mark of a packet?

I checked -j LOG --help and there's no such option, so what should I do to get the mark of each packet and print them?

Signature · 3 lines
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://pgp.mit.edu/ )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
#1 lore raw
Quoted 6 lines · Aaron Lewis

Hi,

Looks like the LOG target doesn't output the mark of a packet?

I checked -j LOG --help and there's no such option, so what should I do to get the mark of each packet and print them?

It will log marks on packets by default. If there is no mark then nothing will be printed; if there is, the value will be printed at the end of the logging line (eg MARK=0x64).

Andy

#2 lore raw

Hi Andrew,

Quoted 11 lines · Andrew Beverley
Quoted 6 lines · Aaron Lewis

Hi,

Looks like the LOG target doesn't output the mark of a packet?

I checked -j LOG --help and there's no such option, so what should I do to get the mark of each packet and print them?

It will log marks on packets by default. If there is no mark then nothing will be printed; if there is, the value will be printed at the end of the logging line (eg MARK=0x64).

Ah, thanks I get it, I did some experiment, if MARK is not set, it won't get printed.

Now it works.

Quoted 4 lines

Andy

Signature · 3 lines
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://pgp.mit.edu/ )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E