# mark set ip saddr map { 10.2.3.2 : 0x0000002a, 10.2.3.1 : 0x00000017} [ { "mangle": { "key": { "meta": { "key": "mark" } }, "value": { "map": { "key": { "payload": { "field": "saddr", "protocol": "ip" } }, "data": { "set": [ [ "10.2.3.2", "0x0000002a" ], [ "10.2.3.1", "0x00000017" ] ] } } } } } ] # mark set ip hdrlength map { 5 : 0x00000017, 4 : 0x00000001} [ { "mangle": { "key": { "meta": { "key": "mark" } }, "value": { "map": { "key": { "payload": { "field": "hdrlength", "protocol": "ip" } }, "data": { "set": [ [ 5, "0x00000017" ], [ 4, "0x00000001" ] ] } } } } } ]