Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 18 Feb 2002 15:25:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 18 Feb 2002 15:25:03 -0500 Received: from mailhost.cs.tamu.edu ([128.194.130.106]:31878 "EHLO cs.tamu.edu") by vger.kernel.org with ESMTP id ; Mon, 18 Feb 2002 15:24:53 -0500 Date: Mon, 18 Feb 2002 14:24:50 -0600 (CST) From: Xinwen - Fu To: "Richard B. Johnson" cc: linux-kernel@vger.kernel.org Subject: Re: weird ip sequence number In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Richard, > > The sequence numbers for 'ping' come from ping. They are not generated > by the kernel. > > `strace` [snipped] > sendto(3, "\10\0\335\360\360T\0\0@^q<\202\34\v\0\10\t\n\v\f\r\16\17"..., > |________ sequence NR > > sendto(3, "\10\0\237\v\360T\1\0A^q<\277\1\v\0\10\t\n\v\f\r\16\17\20"..., > |___________ sequence NR I want a true ip_id from the kernel and this id will not be used by any other packet. Although there are few chances that our randomly chosen ip_id collides with the other packet's ip_id generated by kernel, I don't want this possibility to happen. So is there any method to get a true ip_id from the kernel? I want this ip_id to do my own fragmentation on a packet. Thanks! Xinwen - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/