Life is a crystal maze, it all depends on the perspective.

Saturday, November 11, 2006

Linux Source Code gimmicks

I was browsing the net and bumped into blog of truehacker and got this piece of information- I thought this is worth a mention in my blog as well -atleast AOS guys will enjoy it.
This thing is curtsey truehacker, only thing I did was to check whether this really exists and put only those files which I personally saw in the source code. I tried it on Ubuntu and debian source code. (though I think the kernel would be the same).

In your linux source directory goto following files and see yourself that this code exists or take my word for it, “Following lines are actually there.”

net/ipv4/ip_gre.c
----------------------------------------------------------

static void ipgre_err(struct sk_buff *skb, u32 info)
{
#ifndef I_WISH_WORLD_WERE_PERFECT

/* It is not :-( All the routers (except for Linux) return only
8 bytes of packet payload. It means, that precise relaying of
ICMP in the real Internet is absolutely infeasible.

Moreover, Cisco "wise men" put GRE key to the third word
in GRE header. It makes impossible maintaining even soft state for keyed
GRE tunnels with enabled checksum. Tell them "thank you".

Well, I wonder, rfc1812 was written by Cisco employee,
what the hell these idiots break standrads established
by themself???
*/


arch/mips/kernel/sysirix.c
----------------------------------------------------------

/* 2,191 lines of complete and utter shit coming up... */

extern int max_threads;

/* The sysmp commands supported thus far. */
#define MP_NPROCS 1 /* # processor in complex */
#define MP_NAPROCS 2 /* # active processors in complex */
#define MP_PGSIZE 14 /* Return syste


arch/mips/pci/pci-ip27.c
----------------------------------------------------------
/*
* IOC3 is fucked fucked beyond believe ... Don't try to access
* anything but 32-bit words ...
*/



drivers/net/3c59x.c
----------------------------------------------------------

/* Acknowledge the IRQ. */
iowrite16(AckIntr | IntReq | IntLatch, ioaddr + EL3_CMD);
if (vp->cb_fn_base) /* The PCMCIA people are idiots. */
iowrite32(0x8000, vp->cb_fn_base + 4);

} while ((status = ioread16(ioaddr + EL3_STATUS)) & IntLatch);

1 Comments:

  • Being technical is good but this technical?

    By Anonymous Anonymous, at 3:52 am  

Post a Comment

<< Home