Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: bigendian-littleendian

bigendian-littleendian 14 years 10 months ago #206

The structure of IP-header is like this in /usr/include/netinet/ip.h.Can somebody explain me why the header length and version fields are interchanged in bigendian and little endian.I know that bigendian means Higher order byte will come first.But here he is interchanging the nibbles(4-bit fields).
struct iphdr
unsigned int ihl:4;
unsigned int version:4;
unsigned int version:4;
unsigned int ihl:4;
# error "Please fix <bits/endian.h>"
u_int8_t tos;
u_int16_t tot_len;
u_int16_t id;
u_int16_t frag_off;
u_int8_t ttl;
u_int8_t protocol;
u_int16_t check;
u_int32_t saddr;
u_int32_t daddr;
/*The options start here. */
The administrator has disabled public write access.
Time to create page: 0.114 seconds


Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V


  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup