Re: Two questions

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Fri Jun 02 2000 - 06:49:40 EST


On Fri, 2 Jun 2000, Chris Wedgwood wrote:

> On Thu, Jun 01, 2000 at 04:05:22PM -0400, Richard B. Johnson wrote:
>
> (1) How do I turn off console blanking, i.e., what IOCTL. I need to
> make sure that the last crash is showing on the screen.
>
> Does "setterm -blank 0" work?

Sure, but this is hard in an embedded system. `strace` shows that this
just sends an escape-sequence out to the terminal.

>
> (2) Alexy, you probably know this by heart. I thought that the port number
> used in response to a TCP/IP connection request, was supposed to be a
> "random short int with a value above 1000".
> This is what I get:
>
> 204.178.40.224:32790 -> 204.178.40.137:23
> 204.178.40.224:32789 -> 204.178.40.137:23
> 204.178.40.224:32788 -> 204.178.40.137:23
> 204.178.40.224:32787 -> 204.178.40.137:23
>
> No, port numbers for outbound connections are normally allocated
> linearly. TCP sequence numbers are pseudo-random.
>

Okay. Thanks.
 

Cheers,
Dick Johnson

Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:14 EST