and other non-portable functions on all systems.
*/
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include "nest/bird.h"
#include "lib/resource.h"
+#include "lib/string.h"
#include "client/client.h"
static char *opt_list = "s:v";
*/
#include <stdio.h>
-#include <string.h>
#include <ctype.h>
#include "nest/bird.h"
#include "lib/resource.h"
+#include "lib/string.h"
#include "client/client.h"
struct cmd_info {
*/
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <stdlib.h>
-#include <string.h>
#include <stdarg.h>
#include "nest/bird.h"
#include "lib/resource.h"
#include "lib/socket.h"
#include "lib/timer.h"
+#include "lib/string.h"
#include "nest/protocol.h"
#include "nest/iface.h"
#include "nest/route.h"
CF_HDR
-#include "nest/bird.h"
-#include "lib/resource.h"
-#include "lib/socket.h"
-#include "lib/timer.h"
-#include "nest/protocol.h"
-#include "nest/iface.h"
-#include "nest/route.h"
-#include <string.h>
-
#define P(a,b) ((a<<8) | b)
CF_DECLS
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
#include <stdlib.h>
#include "nest/bird.h"
#include "lib/ip.h"
+#include "lib/string.h"
char *
ip_scope_text(unsigned scope)
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
#include <stdlib.h>
#include "nest/bird.h"
* (c) 1999 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
- *
*/
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
#include "nest/bird.h"
#include "lib/ip.h"
#include "lib/bitops.h"
#include "lib/endian.h"
+#include "lib/string.h"
/*
* See RFC 2373 for explanation of IPv6 addressing issues.
#define _BIRD_IPV6_H_
#include <netinet/in.h>
-#include <string.h>
+#include "lib/string.h"
typedef struct ipv6_addr {
u32 addr[4];
* Adapted for BIRD by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
*/
-#include <string.h> /* for memcpy() */
#include "nest/bird.h"
+#include "lib/string.h"
#include "md5.h"
#ifdef CPU_LITTLE_ENDIAN
*/
#include <stdlib.h>
-#include <string.h>
#include "nest/bird.h"
#include "lib/resource.h"
+#include "lib/string.h"
struct lp_chunk {
struct lp_chunk *next;
#include "string.h"
#include <errno.h>
-#include <string.h>
/* we use this so that we can do without the ctype library */
#define is_digit(c) ((c) >= '0' && (c) <= '9')
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include "nest/bird.h"
#include "lib/resource.h"
+#include "lib/string.h"
struct pool {
resource r;
*/
#include <stdlib.h>
-#include <string.h>
#include "nest/bird.h"
#include "lib/resource.h"
+#include "lib/string.h"
#undef FAKE_SLAB /* Turn on if you want to debug memory allocations */
#define _BIRD_STRING_H_
#include <stdarg.h>
+#include <string.h>
int bsprintf(char *str, const char *fmt, ...);
int bvsprintf(char *str, const char *fmt, va_list args);
* if possible.
*/
-#include <string.h>
+#include "lib/string.h"
static inline u16
get_u16(void *p)
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
-
#include "nest/bird.h"
#include "nest/cli.h"
#include "conf/conf.h"
#undef LOCAL_DEBUG
-#include <string.h>
-
#include "nest/bird.h"
#include "nest/protocol.h"
#include "lib/resource.h"
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
#include <alloca.h>
#include "nest/bird.h"
#include "nest/iface.h"
#include "nest/cli.h"
#include "lib/resource.h"
+#include "lib/string.h"
static slab *rta_slab;
static pool *rta_pool;
#undef LOCAL_DEBUG
-#include <string.h>
-
#include "nest/bird.h"
#include "nest/iface.h"
#include "nest/protocol.h"
#include "nest/rt-dev.h"
#include "conf/conf.h"
#include "lib/resource.h"
+#include "lib/string.h"
static void
dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad)
#undef LOCAL_DEBUG
-#include <string.h>
-
#include "nest/bird.h"
#include "nest/route.h"
+#include "lib/string.h"
#define HASH_DEF_ORDER 10
#define HASH_HI_MARK *4
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
-
#undef LOCAL_DEBUG
#include "nest/bird.h"
#include "lib/string.h"
#include "conf/conf.h"
#include "filter/filter.h"
+#include "lib/string.h"
static slab *rte_slab;
static linpool *rte_update_pool;
#define SIPH 64 /* FIXME Size Of IP header */
-#include <string.h>
-
#include "nest/bird.h"
#include "lib/checksum.h"
#define LOCAL_DEBUG
-#include <string.h>
-
#include "nest/bird.h"
+#include "lib/string.h"
#include "ospf.h"
#define LOCAL_DEBUG
-#include <string.h>
#include <stdlib.h>
#include "nest/bird.h"
#include "lib/lists.h"
#include "lib/timer.h"
#include "lib/md5.h"
+#include "lib/string.h"
#include "rip.h"
#define LOCAL_DEBUG
-#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "lib/resource.h"
#include "lib/lists.h"
#include "lib/timer.h"
+#include "lib/string.h"
#include "rip.h"
#undef LOCAL_DEBUG
-#include <string.h>
-
#include "nest/bird.h"
#include "nest/iface.h"
#include "nest/protocol.h"
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <fcntl.h>
#include "lib/timer.h"
#include "lib/unix.h"
#include "lib/krt.h"
+#include "lib/string.h"
static int krt_scan_fd = -1;
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <net/if.h>
#include "lib/unix.h"
#include "lib/krt.h"
#include "lib/socket.h"
+#include "lib/string.h"
#include "conf/conf.h"
#include <asm/types.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "nest/protocol.h"
#include "lib/timer.h"
#include "lib/krt.h"
+#include "lib/string.h"
#include "unix.h"
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "nest/protocol.h"
#include "lib/unix.h"
#include "lib/krt.h"
+#include "lib/string.h"
int
krt_capable(rte *e)
#define LOCAL_DEBUG
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include "lib/resource.h"
#include "lib/socket.h"
#include "lib/event.h"
+#include "lib/string.h"
#include "nest/route.h"
#include "nest/protocol.h"
#include "nest/iface.h"