home *** CD-ROM | disk | FTP | other *** search
- /**************************************************************************/
- /* Copyright(c) 1987, 1992 by BBN Systems and Technologies, */
- /* A Division of Bolt Beranek and Newman Inc. */
- /* */
- /* RDP implementation for 4.2/4.3bsd by Craig Partridge */
- /* */
- /* Permission to use, copy, modify, distribute, and sell this software */
- /* and its documentation for any purpose is hereby granted without fee, */
- /* provided that the above copyright notice and this permission appear */
- /* in all copies and in supporting documentation, and that the name of */
- /* Bolt Beranek and Newman Inc. not be used in advertising or */
- /* publicity pertaining to distribution of the software without */
- /* specific, written prior permission. BBN makes no representations */
- /* about the suitability of this software for any purposes. It is */
- /* provided "AS IS" without express or implied warranties. */
- /**************************************************************************/
-
-
- #define RI_SIZE 38
-
- struct rdpip {
- struct ip ri_ip;
- struct rdphdr ri_rdp;
- } ;
-
- #define ri_pr ri_ip.ip_p
- #define ri_len ri_ip.ip_len
- #define ri_hl ri_ip.ip_hl
- #define ri_src ri_ip.ip_src
- #define ri_dst ri_ip.ip_dst
- #define ri_ttl ri_ip.ip_ttl
-
- #define ri_flags ri_rdp.rh_flags
- #define ri_hlen ri_rdp.rh_hlen
- #define ri_sport ri_rdp.rh_sp
- #define ri_dport ri_rdp.rh_dp
- #define ri_dlen ri_rdp.rh_len
- #define ri_sn ri_rdp.rh_sn
- #define ri_an ri_rdp.rh_an
- #define ri_sum ri_rdp.rh_sum
-