Changeset a078d6f0 in rtems


Ignore:
Timestamp:
05/22/12 10:06:20 (11 years ago)
Author:
Sebastien Bourdeauducq <sebastien@…>
Branches:
4.10
Children:
17fa7d6
Parents:
89dd2ec4
git-author:
Sebastien Bourdeauducq <sebastien@…> (05/22/12 10:06:20)
git-committer:
Gedare Bloom <gedare@…> (01/11/18 17:13:21)
Message:

network/bootp: PR2031: Add and use header file

Location:
cpukit/libnetworking
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/Makefile.am

    r89dd2ec4 ra078d6f0  
    99
    1010EXTRA_DIST = README
     11EXTRA_DIST += rtems/bootp.h
    1112
    1213# poll is not supported
  • cpukit/libnetworking/nfs/bootp_subr.c

    r89dd2ec4 ra078d6f0  
    7575#include <inttypes.h>
    7676
     77#include "rtems/bootp.h"
     78
    7779#define BOOTP_MIN_LEN           300     /* Minimum size of bootp udp packet */
    7880
     
    138140void bootpboot_p_iflist(void);
    139141#endif
    140 
    141 int  bootpc_call(struct bootp_packet *call,
    142                  struct bootp_packet *reply,
    143                  struct proc *procp);
    144 
    145 int bootpc_fakeup_interface(struct ifreq *ireq,struct socket *so,
    146                         struct proc *procp);
    147 
    148 int
    149 bootpc_adjust_interface(struct ifreq *ireq,struct socket *so,
    150                         struct sockaddr_in *myaddr,
    151                         struct sockaddr_in *netmask,
    152                         struct sockaddr_in *gw,
    153                         struct proc *procp);
    154142
    155143#ifdef BOOTP_DEBUG
  • cpukit/libnetworking/rtems/rtems_bootp.c

    r89dd2ec4 ra078d6f0  
    1212#include <rtems/rtems_bsdnet.h>
    1313#include <rtems/rtems_bsdnet_internal.h>
     14
     15#include "rtems/bootp.h"
    1416
    1517/*
  • cpukit/libnetworking/rtems/rtems_bsdnet_internal.h

    r89dd2ec4 ra078d6f0  
    180180void ipintr (void);
    181181void arpintr (void);
    182 bool bootpc_init(bool, bool);
    183182int socket (int, int, int);
    184183int ioctl (int, ioctl_command_t, ...);
  • cpukit/libnetworking/rtems/rtems_dhcp.c

    r89dd2ec4 ra078d6f0  
    100100
    101101#include "rtems/dhcp.h"
     102#include "rtems/bootp.h"
    102103
    103104#ifndef EALEN
     
    166167  unsigned char  vend[312];
    167168};
    168 
    169 /*
    170  * External Declarations for Functions found in
    171  * rtems/c/src/libnetworking/nfs/
    172  */
    173 extern int bootpc_call (struct dhcp_packet *call,
    174                         struct dhcp_packet *reply,
    175                         struct proc *procp);
    176 extern int bootpc_fakeup_interface (struct ifreq *ireq,
    177                                     struct socket *so,
    178                                     struct proc *procp);
    179 extern int bootpc_adjust_interface (struct ifreq *ireq,
    180                                     struct socket *so,
    181                                     struct sockaddr_in *myaddr,
    182                                     struct sockaddr_in *netmask,
    183                                     struct sockaddr_in *gw,
    184                                     struct proc *procp);
    185 extern void *bootp_strdup_realloc (char *dst,
    186                                    const char *src);
    187169
    188170/*
     
    758740       * Send the Request.
    759741       */
    760       error = bootpc_call (&call, &dhcp_req, procp);
     742      error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&dhcp_req, procp);
    761743      if (error) {
    762744        rtems_bsdnet_semaphore_release ();
     
    964946   * Send the Discover.
    965947   */
    966   error = bootpc_call (&call, &reply, procp);
     948  error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&reply, procp);
    967949  if (error) {
    968950    printf ("BOOTP call failed -- %s\n", strerror(error));
     
    993975  dhcp_request_req (&call, &reply, sdl, true);
    994976
    995   error = bootpc_call (&call, &reply, procp);
     977  error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&reply, procp);
    996978  if (error) {
    997979    printf ("BOOTP call failed -- %s\n", strerror(error));
Note: See TracChangeset for help on using the changeset viewer.