~ubuntu-branches/ubuntu/lucid/tftp-hpa/lucid-proposed

« back to all changes in this revision

Viewing changes to tftpd/recvfrom.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2006-07-04 11:11:20 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060704111120-04nmfw8hmj6c6x8u
Tags: 0.42-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: recvfrom.c,v 1.9 2002/11/09 02:22:59 hpa Exp $ */
2
1
/* ----------------------------------------------------------------------- *
3
2
 *   
4
 
 *   Copyright 2001 H. Peter Anvin - All Rights Reserved
 
3
 *   Copyright 2001-2006 H. Peter Anvin - All Rights Reserved
5
4
 *
6
5
 *   This program is free software available under the same license
7
6
 *   as the "OpenBSD" operating system, distributed at
110
109
    for ( cmptr = CMSG_FIRSTHDR(&msg) ; cmptr != NULL ;
111
110
          cmptr = CMSG_NXTHDR(&msg, cmptr) ) {
112
111
 
113
 
#ifdef IP_RECVSTDADDR
 
112
#ifdef IP_RECVDSTADDR
114
113
      if ( cmptr->cmsg_level == IPPROTO_IP &&
115
114
           cmptr->cmsg_type == IP_RECVDSTADDR ) {
116
115
        memcpy(&myaddr->sin_addr, CMSG_DATA(cmptr),