cowe
haha, funny cowe. upboated
>>5787365
this but unironically
>>5787513
what makes you think i was being ironic
>>5787521
i dont know I'm literally incapable of telling whether someone here is being ironic or sincere anymore, so I just say it to every post I agree with just in case
>>5787527
do you have any idea how hard i lol'd?
I FUGGING LOVE THIS MEME!!!
>>5787556
YOU DIDN'T GET TRIPS!!! LOLE!!!!!
new meme: sed the buffer
int sed_the_buffer(int siz, int* live, int dir) {
int i=0,j=0;
int newsize=0;
int changes=0;
int gotchange=0;
for (i=0;i<siz;) {
gotchange=0;
for (j=0;j<rules;j++) {
if (rule[j].dir != ALL && rule[j].dir !=dir) continue;
if ((!memcmp(&buf[i],rule[j].from,rule[j].fs)) && (live[j]!=0)) {
changes++;
gotchange=1;
printf(" Applying rule s/%s/%s...\n",rule[j].forig,rule[j].torig);
live[j]--;
if (live[j]==0) printf(" (rule just expired)\n");
memcpy(&b2[newsize],rule[j].to,rule[j].ts);
newsize+=rule[j].ts;
i+=rule[j].fs;
break;
}
}
if (!gotchange) {
b2[newsize]=buf[i];
newsize++;
i++;
}
}
if (!changes) printf("[*] Forwarding untouched packet of size %d.\n",siz);
else printf("[*] Done %d replacements, forwarding packet of size %d (orig %d).\n",
changes,newsize,siz);
return newsize;
}