~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to include/recvbuff.h

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 */
40
40
 
41
41
/*
42
 
 *  the maximum length NTP packet is a full length NTP control message with
43
 
 *  the maximum length message authenticator.  I hate to hard-code 468 and 12,
44
 
 *  but only a few modules include ntp_control.h...
 
42
 *  the maximum length NTP packet contains the NTP header, one Autokey
 
43
 *  request, one Autokey response and the MAC. Assuming certificates don't
 
44
 *  get too big, the maximum packet length is set arbitrarily at 1000.
45
45
 */   
46
 
#define RX_BUFF_SIZE    (468+12+MAX_MAC_LEN)
 
46
#define RX_BUFF_SIZE    1000            /* hail Mary */
47
47
 
48
48
struct recvbuf {
49
49
        struct recvbuf *next;           /* next buffer in chain */
50
50
        union {
51
 
                struct sockaddr_in X_recv_srcadr;
 
51
                struct sockaddr_storage X_recv_srcadr;
52
52
                caddr_t X_recv_srcclock;
53
53
                struct peer *X_recv_peer;
54
54
        } X_from_where;
60
60
        WSABUF          wsabuff;
61
61
        DWORD           AddressLength;
62
62
#else
63
 
        struct sockaddr_in srcadr;      /* where packet came from */
 
63
        struct sockaddr_storage srcadr; /* where packet came from */
64
64
#endif
65
65
        struct interface *dstadr;       /* interface datagram arrived thru */
66
 
        int fd;                         /* fd on which it was received */
 
66
        SOCKET  fd;                     /* fd on which it was received */
67
67
        l_fp recv_time;                 /* time of arrival */
68
68
        void (*receiver) P((struct recvbuf *)); /* routine to receive buffer */
69
69
        int recv_length;                /* number of octets received */