[pso] [Tema5](windows)no of rules

Laura Cristina laura.cristina04 at gmail.com
Thu Jun 5 22:34:51 EEST 2008


Am facut cu:
RtlCopyMemory (buffer+1,pachet_reguli,numar_reg*sizeof(struct fwr));
si a mers. Am afisat bufferul si contine ceea ce trebuie: intai numarul de
reguli, apoi regulile. Dar in test imi da:
test: no of rules.................................................failed:
The operation completed successfully.

2008/6/5 Laura Cristina <laura.cristina04 at gmail.com>:

> Problema apare cand din user se cere o regula, si firewall-ul are o regula.
> In acest caz ar trebui sa se copieze in buffer intai dimensiunea listei de
> reguli si apoi regulile.
> Codul este urmatorul:
> RtlCopyMemory (buffer,&numar_reg,sizeof(unsigned int));//copiaza numarul de
> reguli in userspace
> RtlCopyMemory (buffer+sizeof(unsigned
> int),pachet_reguli,numar_reg*sizeof(struct fwr));
> Copierea numarului de reguli in buffer merge, dar la a doua copiere(a
> regulilor) moare. Daca copiez doar regulile nu moare, dar "no of rules" nu
> returneaza ceea ce trebuie", la fel si daca copiez doar numarul de reguli.
>
> --
> Ruse Laura 344C3
>



-- 
Ruse Laura 344C3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080605/cab8b6f0/attachment-0001.htm 


More information about the pso mailing list