From: Jonas Berlin Subject: Re: [PATCH] new 'tcpack' match Date: Mon, 11 Apr 2005 11:26:27 +0000 Message-ID: <425A5EE3.8060208@outerspace.dyndns.org> References: <42464598.9040707@outerspace.dyndns.org> <425032D5.2010302@trash.net> <878113493.20050403233059@dns.toxicfilms.tv> <4250848E.5040207@outerspace.dyndns.org> <5810131003.20050404153025@dns.toxicfilms.tv> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Maciej Soltysiak , Patrick McHardy In-Reply-To: <5810131003.20050404153025@dns.toxicfilms.tv> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Quoting Maciej Soltysiak on 2005-04-04 13:30 UTC: ~ > I agree the best way to go would be to extend the tcp match with | the proposed semantics: | --datalen [!] A[,B:C[,D]] I think [!] A[:B] should suffice :) | It also might be useful to match the sole header length. | --headerlen [!] A[,B:C[,D]] Maybe [!] A[:B] here also.. Patric McHardy, what do you think, should I implement --headerlen also? | And the lenght of tcp+data | --len This should be done with the "length" match IMO. -m length - --layer2-length maybe ? I could implement this too while at it.. | Possibly the similar for udp: | --datalen, --headerlen, --len The udp header length is fixed (8 bytes), and thus --headerlen is unneeded and --datalen N[:M] could maybe implemented as -m length - --layer2-length N+8[:M+8] ? I do agree that it would be a bit unaesthetic :) | And ICMP: | --datalen, --len (icmp headers have fixed size) Same situation as udp, except maybe if the timestamps of the Timestamp message would be considered a part of the header, in which case the header size would no longer be fixed.. Anyway I guess --layer2-length should suffice for icmp.. - -- - - xkr47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCWl7dxyF48ZTvn+4RAiKlAJ9ngZw5WUOvn14AFl5sthU6tUHWHQCfUR/z yxHXlrMHAI+eHryfG1RSuT4= =nJX2 -----END PGP SIGNATURE-----