List Info

Thread: Re: Change Packet Payload




Re: Change Packet Payload
country flaguser name
France
2007-02-14 03:47:10
Hi Pablo,

I wrote this simple patch.
Any comment on it, naming conventions, better approach,
etc.. appreciated


Pablo Neira Ayuso wrote:
> I would accept a patch to introduce a function that
computes the
> checksum. I think that the library should provide as
much helper
> functions as possible. We can group such helper
functions by protocols
> in different files inside the libnetfilter_queue tree.
I have already
> seen several post in the mailing list on how to
retrieve data from the
> header and such.
>
>   


  
Re: Change Packet Payload
country flaguser name
Germany
2007-02-14 03:52:59
Sebastien Tricaud wrote:

> Index: src/protocol_any_helper.c
>
============================================================
=======
> --- src/protocol_any_helper.c	(revision 0)
> +++ src/protocol_any_helper.c	(revision 0)
>  -0,0 +1,53 
> +/* 
> + *  This program is free software; you can
redistribute it and/or modify
> + *  it under the terms of the GNU General Public
License version 2 
> + *  as published by the Free Software Foundation
> + */


> +/* (c) Richard W. Stevens */
> +unsigned short nfq_compute_cksum(unsigned short *data,
int len)

Do you have permission to put this under the GPL?




[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )