Deleted Added
sdiff udiff text old ( 6216:2f4020838149 ) new ( 7777:369f90d32e2e )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 133 unchanged lines hidden (view full) ---

142 operator bool() const { return p; }
143 int off() const { return 0; }
144 int pstart() const { return off() + ((const EthHdr*)p->data)->size(); }
145};
146
147/*
148 * IP Stuff
149 */
150struct IpOpt;
151struct IpHdr : public ip_hdr
152{
153 uint8_t version() const { return ip_v; }
154 uint8_t hlen() const { return ip_hl * 4; }
155 uint8_t tos() const { return ip_tos; }
156 uint16_t len() const { return ntohs(ip_len); }
157 uint16_t id() const { return ntohs(ip_id); }

--- 259 unchanged lines hidden ---