Slashdot Mirror


TwIP - An IP Stack In a Tweet

Adam Dunkels writes "Inspired by the Twitter-sized program that crashes Mac OS X, I just wrote a really, really rudimentary IP stack called twIP, small enough to fit in a Twitter tweet. Although twIP is very far away from a real IP stack, it can do the first task of any IP stack: respond to pings. The entire source code can be found in this 128-character-long tweet. For those who are interested in low-level network programming, a code walkthrough with instructions on how to run the code under FreeBSD is available here. The FAQ: Q: why? A: for fun."

5 of 81 comments (clear)

  1. Article mod: -1 Overrated by Looce · · Score: 5, Insightful

    The underlying system must provide a way for user programs to receive and send IP packets.

    This is where I stopped reading. Just... no. This is just a program that echoes every single thing back to the originator.

    1. Re:Article mod: -1 Overrated by something_wicked_thi · · Score: 4, Insightful

      Yeah, I've got a program for the author that fits in a tweet:

      #include
      int main() {
          puts("You're a moron and a braggart.");
      }

  2. Relevance check please by flowerp · · Score: 4, Insightful

    Shit doesn't smell like roses when it is made to fits into a tweet or is in any other way related to Twitter.

    --
    --- Eat my sig.
  3. Re:I hope this isn't a new trend. by pathological+liar · · Score: 4, Insightful

    If you converted Apache into a web browser that might actually be worthy of a story...

  4. It's not an IP stack by k2dbk · · Score: 4, Insightful

    It's not an IP stack at all (and requires one to function). It replies to a packet that is assumed to be a ping without any error checking. In other words, it's a very short, clever, but minimally functional ping function. The fact that it's short is nice, but that's about it.