#include "bits.h"#include <stdio.h>Go to the source code of this file.
Functions | |
| int | GetBit (unsigned char *BitField, int BitFieldLen, int BitNum) |
| void | SetBit (unsigned char *BitField, int BitFieldLen, int BitNum, char Value) |
| void | SetBits (unsigned char *BitField, int BitFieldLen, int StartBit, int EndBit, char Value) |
| void | NotAndBitFields (unsigned char *BitField1, unsigned char *BitField2, unsigned char *TargetBitField, int BitFieldLen) |
| void | AndBitFields (unsigned char *BitField1, unsigned char *BitField2, unsigned char *TargetBitField, int BitFieldLen) |
| void | OrBitFields (unsigned char *BitField1, unsigned char *BitField2, unsigned char *TargetBitField, int BitFieldLen) |
| int | CountBits (unsigned char *BitField, int BitFieldLen) |
| int | CountBitsNot (unsigned char *BitField, int BitFieldLen) |
| int | BitFieldIsEmpty (unsigned char *BitField, int BitFieldLen) |
| void AndBitFields | ( | unsigned char * | BitField1, | |
| unsigned char * | BitField2, | |||
| unsigned char * | TargetBitField, | |||
| int | BitFieldLen | |||
| ) | [inline] |
| int BitFieldIsEmpty | ( | unsigned char * | BitField, | |
| int | BitFieldLen | |||
| ) |
| int CountBits | ( | unsigned char * | BitField, | |
| int | BitFieldLen | |||
| ) |
| int CountBitsNot | ( | unsigned char * | BitField, | |
| int | BitFieldLen | |||
| ) |
| int GetBit | ( | unsigned char * | BitField, | |
| int | BitFieldLen, | |||
| int | BitNum | |||
| ) | [inline] |
Definition at line 7 of file bits.c.
References FALSE.
Referenced by BitFieldIsEmpty(), CountBits(), IPDstAddNode(), IPSrcAddNode(), IPTTLAddNode(), RuleIsActive(), TCPDstAddNode(), TCPFlagsAddNode(), and UDPSrcAddNode().
| void NotAndBitFields | ( | unsigned char * | BitField1, | |
| unsigned char * | BitField2, | |||
| unsigned char * | TargetBitField, | |||
| int | BitFieldLen | |||
| ) | [inline] |
Definition at line 121 of file bits.c.
Referenced by Decode(), TestIPDst(), TestIPSrc(), TestIPTTL(), TestTCPDst(), TestTCPFlags(), and TestUDPSrc().
| void OrBitFields | ( | unsigned char * | BitField1, | |
| unsigned char * | BitField2, | |||
| unsigned char * | TargetBitField, | |||
| int | BitFieldLen | |||
| ) | [inline] |
| void SetBit | ( | unsigned char * | BitField, | |
| int | BitFieldLen, | |||
| int | BitNum, | |||
| char | Value | |||
| ) | [inline] |
Definition at line 42 of file bits.c.
Referenced by AddToTree(), AddToTreeSorted(), DecoderSetDependency(), IPDstAddNode(), IPSrcAddNode(), IPTTLAddNode(), MatchStrings(), MatchStringTree(), SetRuleInactive(), TCPDstAddNode(), TCPFlagsAddNode(), TestSetDependency(), and UDPSrcAddNode().
| void SetBits | ( | unsigned char * | BitField, | |
| int | BitFieldLen, | |||
| int | StartBit, | |||
| int | EndBit, | |||
| char | Value | |||
| ) | [inline] |
1.5.2