文章列表
本次列出使用PCC负载均衡实例
网上看到过教程,感觉脚本来的快点,下面就是PCC4个ADSL的负载均衡的脚本:
/ip firewall address-listadd address=192.168.88.0/24 disabled=no list=local/ip firewall mangleadd action=mark-connection chain=input disabled=no in-interface=pppoe-out1 \new-connection-mark=pppoe-out1 passthrough=yesadd action=mark-connectio ...
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#define stack_init_size 100
#define stackincrement 10
typedef struct sqstack
{
int *base;
int *top;
int stacksize;
} sqstack;
int StackInit(sqstack *s)
{
s->base=(int *)malloc(stack_init_size *sizeof(int) ...