Thread: pseudo header

  1. #1
    Registered User
    Join Date
    Nov 2008
    Location
    INDIA
    Posts
    64

    pseudo header

    Hi all,
    I know that pseudo headers are used to calculate the checksum in udp and tcp packets.I want to know the exact problem, if we don't use the psudo header for the checksum calculation.

    can any one tell the answer...

    Thanks..

  2. #2
    Registered User
    Join Date
    Apr 2009
    Posts
    66
    Dear friend,
    In a huge networking traffic , there might be a chance of entering the sent packet to the wrong destination ,so we can find the problem at least in the TCP layer.

    For further references : Refer TCP/IP guide

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> I know that pseudo headers are used to calculate the checksum in udp and tcp packets.I want to know the exact problem, if we don't use the psudo header for the checksum calculation.

    The "exact problem" is that you get an incorrect checksum. Simple as that.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM