kern/125003: incorrect EtherIP header format.

Andrew Thompson thompsa at FreeBSD.org
Thu Jun 26 15:10:03 UTC 2008


The following reply was made to PR kern/125003; it has been noted by GNATS.

From: Andrew Thompson <thompsa at FreeBSD.org>
To: Shunsuke SHINOMIYA <shino at fornext.org>
Cc: bug-followup at FreeBSD.org
Subject: Re: kern/125003: incorrect EtherIP header format.
Date: Thu, 26 Jun 2008 07:34:24 -0700

 Hi,
 
 
 It is unclear where the interoperability problem comes in.
 
 struct etherip_header { 
      u_int8_t eip_ver;       /* version/reserved */
      u_int8_t eip_pad;       /* required padding byte
 			*/
 };              
 #define ETHERIP_VER_VERS_MASK   0x0f
 #define ETHERIP_VERSION         0x03
 
 From rfc3378,
  1. Prepend the 16-bit EtherIP header to the MAC frame.  The EtherIP
     Version field MUST be set to 3 (three), and the EtherIP Reserved
     field MUST be set to 0 (zero).
 
 
 And the outgoing header is set to.
    eiphdr.eip_ver = ETHERIP_VERSION & ETHERIP_VER_VERS_MASK;
    eiphdr.eip_pad = 0;
 
 Which would conform to the requirement. Can you describe the problem you
 are seeing.
 
 
 regards,
 Andrew


More information about the freebsd-net mailing list