# Write the header
self.write_header(f)
- # Our SID range is 406000000 - 406999999, because of HTTP Status 406 - Not Acceptable
- sid = 406000000
+ # Our SID range is 12000000 - 12999999, because of HTTP Status 406 - Not Acceptable
+ sid = 12000000
- # Shift the ID of the list to the higher 16 bits and append the offset
- sid |= self.list.id << 16
+ # Shift the ID of the list
+ sid += self.list.id * 100
# Map the priority
# High Priority
),
"classtype" : "policy-violation",
"priority" : priority,
- "sid" : sid | 1,
+ "sid" : sid + 1,
"rev" : "1",
"reference" : (
"url",
),
"classtype" : "policy-violation",
"priority" : priority,
- "sid" : sid | 2,
+ "sid" : sid + 2,
"rev" : "1",
"reference" : (
"url",
),
"classtype" : "policy-violation",
"priority" : priority,
- "sid" : sid | 3,
+ "sid" : sid + 3,
"rev" : "1",
"reference" : (
"url",
),
"classtype" : "policy-violation",
"priority" : priority,
- "sid" : sid | 4,
+ "sid" : sid + 4,
"rev" : "1",
"reference" : (
"url",