Give ip_len and ip_off more natural, unsigned types.
This commit is contained in:
parent
6744ae8129
commit
4efe54c829
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ip.h 8.2 (Berkeley) 6/1/94
|
||||
* $Id: ip.h,v 1.8 1996/03/14 16:59:20 fenner Exp $
|
||||
* $Id: ip.h,v 1.9 1996/04/18 15:42:50 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NETINET_IP_H_
|
||||
@ -64,9 +64,9 @@ struct ip {
|
||||
#endif
|
||||
#endif /* not _IP_VHL */
|
||||
u_char ip_tos; /* type of service */
|
||||
short ip_len; /* total length */
|
||||
u_short ip_len; /* total length */
|
||||
u_short ip_id; /* identification */
|
||||
short ip_off; /* fragment offset field */
|
||||
u_short ip_off; /* fragment offset field */
|
||||
#define IP_DF 0x4000 /* dont fragment flag */
|
||||
#define IP_MF 0x2000 /* more fragments flag */
|
||||
#define IP_OFFMASK 0x1fff /* mask for fragmenting bits */
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ip_var.h 8.2 (Berkeley) 1/9/95
|
||||
* $Id: ip_var.h,v 1.21 1996/07/10 19:44:27 julian Exp $
|
||||
* $Id: ip_var.h,v 1.22 1996/10/15 16:54:47 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NETINET_IP_VAR_H_
|
||||
@ -85,9 +85,9 @@ struct ipasfrag {
|
||||
u_char ipf_mff; /* XXX overlays ip_tos: use low bit
|
||||
* to avoid destroying tos;
|
||||
* copied from (ip_off&IP_MF) */
|
||||
short ip_len;
|
||||
u_short ip_len;
|
||||
u_short ip_id;
|
||||
short ip_off;
|
||||
u_short ip_off;
|
||||
u_char ip_ttl;
|
||||
u_char ip_p;
|
||||
u_short ip_sum;
|
||||
|
Loading…
x
Reference in New Issue
Block a user