Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

m_string.h File Reference

#include <stdarg.h>

Go to the source code of this file.

Defines

#define __USE_GNU
#define memcpy(d, s, n)   bcopy ((s), (d), (n))
#define memset(A, C, B)   bfill((A),(B),(C))
#define memmove(d, s, n)   bmove ((d), (s), (n))
#define bfill(A, B, C)   memset((A),(C),(B))
#define bmove_align(A, B, C)   memcpy((A),(B),(C))
#define bcopy(s, d, n)   memcpy((d), (s), (n))
#define bcmp(A, B, C)   memcmp((A),(B),(C))
#define bzero(A, B)   memset((A),0,(B))
#define bmove_align(A, B, C)   memcpy((A),(B),(C))
#define strmov_overlapp(A, B)   strmov(A,B)
#define strmake_overlapp(A, B, C)   strmake(A,B,C)
#define memcpy_fixed(A, B, C)   memcpy((A),(B),(C))
#define bmove512(A, B, C)   memcpy(A,B,C)
#define memcpy_overlap(A, B, C)   memcpy((A), (B), (C))
#define longlong2str(A, B, C)   int2str((A),(B),(C),1)
#define longlong10_to_str(A, B, C)   int10_to_str((A),(B),(C))
#define strtoll(A, B, C)   strtol((A),(B),(C))
#define strtoull(A, B, C)   strtoul((A),(B),(C))

Functions

void bmove (char *dst, const char *src, uint len)
void bmove_upp (char *dst, const char *src, uint len)
void bchange (char *dst, uint old_len, const char *src, uint new_len, uint tot_len)
void strappend (char *s, uint len, pchar fill)
char * strend (const char *s)
char * strcend (const char *, pchar)
char * strfield (char *src, int fields, int chars, int blanks, int tabch)
char * strfill (my_string s, uint len, pchar fill)
uint strinstr (const char *str, const char *search)
uint r_strinstr (reg1 my_string str, int from, reg4 my_string search)
char * strkey (char *dst, char *head, char *tail, char *flags)
char * strmake (char *dst, const char *src, uint length)
char * strmov (char *dst, const char *src)
char * strnmov (char *dst, const char *src, uint n)
char * strsuff (const char *src, const char *suffix)
char * strcont (const char *src, const char *set)
char *strxcat _VARARGS ((char *dst, const char *src,...))
char *strxncat _VARARGS ((char *dst, uint len, const char *src,...))
uint strnlen (const char *s, uint n)
char * strpbrk (const char *, const char *)
char * strstr (const char *, const char *)
int is_prefix (const char *, const char *)
double my_strtod (const char *str, char **end, int *error)
double my_atof (const char *nptr)
char * llstr (longlong value, char *buff)
long strtol (const char *str, char **ptr, int base)
ulong strtoul (const char *str, char **ptr, int base)
char * int2str (long val, char *dst, int radix, int upcase)
char * int10_to_str (long val, char *dst, int radix)
char * str2int (const char *src, int radix, long lower, long upper, long *val)
longlong my_strtoll10 (const char *nptr, char **endptr, int *error)
int my_vsnprintf (char *str, size_t n, const char *format, va_list ap)
int my_snprintf (char *to, size_t n, const char *fmt,...)

Variables

char NEAR _dig_vec_upper []
char NEAR _dig_vec_lower []


Define Documentation

#define __USE_GNU
 

Definition at line 25 of file m_string.h.

#define bcmp A,
B,
 )     memcmp((A),(B),(C))
 

Definition at line 82 of file m_string.h.

#define bcopy s,
d,
 )     memcpy((d), (s), (n))
 

Definition at line 81 of file m_string.h.

#define bfill A,
B,
 )     memset((A),(C),(B))
 

Definition at line 76 of file m_string.h.

#define bmove512 A,
B,
 )     memcpy(A,B,C)
 

Definition at line 122 of file m_string.h.

#define bmove_align A,
B,
 )     memcpy((A),(B),(C))
 

Definition at line 84 of file m_string.h.

#define bmove_align A,
B,
 )     memcpy((A),(B),(C))
 

Definition at line 84 of file m_string.h.

#define bzero A,
 )     memset((A),0,(B))
 

Definition at line 83 of file m_string.h.

#define longlong10_to_str A,
B,
 )     int10_to_str((A),(B),(C))
 

Definition at line 234 of file m_string.h.

#define longlong2str A,
B,
 )     int2str((A),(B),(C),1)
 

Definition at line 233 of file m_string.h.

#define memcpy d,
s,
 )     bcopy ((s), (d), (n))
 

Definition at line 65 of file m_string.h.

Referenced by __pyx_f_4dnet___memcpy(), __pyx_f_4dnet_ip_checksum(), __pyx_f_4dnet_ip_ntoa(), _add_ip_intf(), _arp_get_entry(), _ifrow_to_entry(), _intf_get_aliases(), _match_intf_src(), acsmAddKey2(), acsmAddPattern(), acsmAddPattern2(), acsmCompile2(), AddFragNode(), AddMatchListEntry(), addr_bcast(), addr_net(), addr_ntos(), addr_pton(), addr_ston(), arp_add(), arp_loop(), arp_main(), arp_msg(), blob_delete(), blob_insert(), blob_read(), blob_write(), BuildPacket(), Conv_Full_DFA_To_Sparse(), CopyMatchListEntry(), DecodePPPoEPkt(), DupFragNode(), eth_get(), eth_main(), eth_send(), eth_set(), flowps_init(), flowps_init_pkt(), flowps_mkpacket(), Frag3HandleIPOptions(), Frag3NewTracker(), GetNewSession(), hbm_prepx(), InitIgnorePorts(), InsertFrag(), intf_get_src(), intf_set(), ip4_parse(), ip_get(), ip_send(), ip_set(), ipset_add(), KMapAddKeyNode(), KTrieNewPattern(), MakePortscanPkt(), mSplit(), mwmAddPatternEx(), mwmPrepPatterns(), OldUnifiedLogPacketAlert(), ParsePattern(), PortscanPacketInit(), PrintEapolKey(), PrintTcpOptions(), rand_shuffle(), RealUnifiedLogPacketAlert(), RealUnifiedLogStreamAlert(), resolve_host(), route_add(), route_delete(), route_get(), SafeMemcpy(), scoreboard_move(), server_stats_load(), server_stats_save(), sfghash_add(), sfmemcap_dupmem(), sfxhash_add(), sfxhash_get_node(), START_TEST(), StoreStreamPkt(), and UnifiedLogData().

#define memcpy_fixed A,
B,
 )     memcpy((A),(B),(C))
 

Definition at line 112 of file m_string.h.

#define memcpy_overlap A,
B,
 )     memcpy((A), (B), (C))
 

Definition at line 130 of file m_string.h.

#define memmove d,
s,
 )     bmove ((d), (s), (n))
 

Definition at line 67 of file m_string.h.

Referenced by blob_delete(), blob_insert(), and ip_add_option().

#define memset A,
C,
 )     bfill((A),(B),(C))
 

Definition at line 66 of file m_string.h.

Referenced by __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_4intf_set(), _ifrow_to_entry(), _intf_add_aliases(), _intf_delete_addrs(), _intf_delete_aliases(), acsmCompile(), acsmCompile2(), acsmNew(), acsmNew2(), addr_btom(), addr_btos(), addr_net(), addr_ntos(), addr_ston(), AddReference(), arg_to_fr(), arp_add(), arp_delete(), arp_get(), arp_main(), ascii(), asn1_decode_type(), Asn1Init(), boInitStaticBITOP(), boResetBITOP(), ConvInit(), CreateServerList(), Database(), eth_main(), eth_open(), flowcache_init(), flowcache_newflow(), flowkey_make(), flowps_mkconfig(), flowstat_clear(), fpInitDetectionEngine(), fr_to_fwc(), fr_to_ipfw(), fr_to_pr(), Frag3Defrag(), Frag3NewTracker(), fw_add(), fw_delete(), fw_loop(), fwc_to_fr(), GetNewSession(), hi_client_init(), hi_norm_init(), hi_ui_config_init_global_conf(), hi_ui_config_reset_server(), hi_ui_parse_iis_unicode_map(), icmp_main(), InitFlowStats(), InitIgnoreHosts(), intf_loop(), intf_main(), intf_set(), ip_add_option(), ip_open(), ip_send(), ipf_to_rule(), ipfw_to_fr(), IsIgnored(), IsServer(), KMapAddKeyNode(), KMapCreateNode(), KMapNew(), KTRIE_MALLOC(), KTrieCreateNode(), KTrieNew(), List_ConvToFull(), LoadStateTable(), LogScanInfoToSeparateFile(), mktcpflag_str(), mwmAnalyzePattens(), OldUnifiedLogPacketAlert(), parse_rule(), ParseClassificationConfig(), ParseConvArgs(), ParsePattern(), ParseReplacePattern(), ParseSFSuppress(), ParseSFThreshold(), ParseStream4Args(), ParseThreshold2(), PortscanAlertTcp(), PortscanDetect(), pr_to_fr(), print_thd_node(), PrintConfig(), PrintNetData(), PrintPortscanConf(), PrintServerConf(), ProcessFlowStats(), ProcessUniqueServerConf(), ps_proto_update_window(), ps_tracker_init(), ReferenceSystemAdd(), route_add(), route_delete(), route_get(), route_msg(), route_open(), rule_to_ipf(), sb_init_entry(), Scan2Init(), scoreboard_init(), server_stats_init(), server_stats_init_entry(), sfghash_new(), sfInitPerformanceStatistics(), SnortMain(), START_TEST(), StatelessInspection(), Stream4InitReassembler(), tcp_main(), tun_open(), udp_main(), UnifiedLogData(), ut_init(), ut_init_entry(), XLINK2STATE_Setup(), and xmalloc().

#define strmake_overlapp A,
B,
 )     strmake(A,B,C)
 

Definition at line 106 of file m_string.h.

#define strmov_overlapp A,
 )     strmov(A,B)
 

Definition at line 105 of file m_string.h.

#define strtoll A,
B,
 )     strtol((A),(B),(C))
 

Definition at line 236 of file m_string.h.

#define strtoull A,
B,
 )     strtoul((A),(B),(C))
 

Definition at line 237 of file m_string.h.


Function Documentation

char *strxncpy _VARARGS (char *dst, uint len, const char *src,...)   ) 
 

char *strxcpy _VARARGS (char *dst, const char *src,...)   ) 
 

void bchange char *  dst,
uint  old_len,
const char *  src,
uint  new_len,
uint  tot_len
 

void bmove char *  dst,
const char *  src,
uint  len
 

void bmove_upp char *  dst,
const char *  src,
uint  len
 

char* int10_to_str long  val,
char *  dst,
int  radix
 

char* int2str long  val,
char *  dst,
int  radix,
int  upcase
 

int is_prefix const char *  ,
const char * 
 

char* llstr longlong  value,
char *  buff
 

double my_atof const char *  nptr  ) 
 

int my_snprintf char *  to,
size_t  n,
const char *  fmt,
  ...
 

double my_strtod const char *  str,
char **  end,
int *  error
 

longlong my_strtoll10 const char *  nptr,
char **  endptr,
int *  error
 

int my_vsnprintf char *  str,
size_t  n,
const char *  format,
va_list  ap
 

uint r_strinstr reg1 my_string  str,
int  from,
reg4 my_string  search
 

char* str2int const char *  src,
int  radix,
long  lower,
long  upper,
long *  val
 

void strappend char *  s,
uint  len,
pchar  fill
 

char* strcend const char *  ,
pchar 
 

char* strcont const char *  src,
const char *  set
 

char* strend const char *  s  ) 
 

char* strfield char *  src,
int  fields,
int  chars,
int  blanks,
int  tabch
 

char* strfill my_string  s,
uint  len,
pchar  fill
 

uint strinstr const char *  str,
const char *  search
 

char* strkey char *  dst,
char *  head,
char *  tail,
char *  flags
 

char* strmake char *  dst,
const char *  src,
uint  length
 

char* strmov char *  dst,
const char *  src
 

uint strnlen const char *  s,
uint  n
 

char* strnmov char *  dst,
const char *  src,
uint  n
 

char* strpbrk const char *  ,
const char * 
 

Referenced by eth_open(), and fr_to_ipfw_device().

char* strstr const char *  ,
const char * 
 

Referenced by Connect(), ip4_parse(), OpenPcap(), parse_rule(), ParseCmdLine(), and ProcessFileOption().

char* strsuff const char *  src,
const char *  suffix
 

long strtol const char *  str,
char **  ptr,
int  base
 

Referenced by addr_pton(), arg_to_fr(), blob_fmt(), ByteJumpParse(), ByteTestParse(), eth_pton(), FindCodePage(), ip6_pton(), ip_pton(), IsDataAtParse(), MapCodePoints(), off_aton(), parse_icmpspec(), ParseCmdLine(), ParseConfig(), ParseDsize(), ParseIpTos(), ParsePattern(), ParsePerfMonitorArgs(), ParseReplacePattern(), ParseTcpWin(), PayloadSearchDepth(), PayloadSearchDistance(), PayloadSearchOffset(), PayloadSearchWithin(), ProcessChunkLength(), ProcessFlowbitsSize(), ProcessFlowDepth(), ProcessIISUnicodeMap(), ProcessMaxPipeline(), ProcessNonRfcChar(), ProcessOversizeDir(), ProcessPorts(), SetRpcPorts(), SetTelnetPorts(), and str2int().

ulong strtoul const char *  str,
char **  ptr,
int  base
 

Referenced by ByteJumpParse(), ByteTestParse(), ParseARPspoofHostArgs(), ParseCmdLine(), ParseRpc(), ParseSFSuppress(), ParseTcpAck(), ParseTcpSeq(), ProcessResetMac(), seq_aton(), string_extract(), and xatou().


Variable Documentation

char NEAR _dig_vec_lower[]
 

char NEAR _dig_vec_upper[]
 


Generated on Sun May 14 14:51:28 2006 by  doxygen 1.4.2