Changeset ce452f7 in rtems


Ignore:
Timestamp:
Nov 1, 2002, 6:43:57 PM (18 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
02059376
Parents:
022fcc07
Message:

* empty log message *

Location:
cpukit/libnetworking/rtems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/rtems/rtems_bsdnet.h

    r022fcc07 rce452f7  
    3636extern char *rtems_bsdnet_bootp_server_name;
    3737extern char *rtems_bsdnet_bootp_boot_file_name;
     38extern char *rtems_bsdnet_bootp_cmdline;
    3839extern struct in_addr rtems_bsdnet_ntpserver[];
    3940extern int rtems_bsdnet_ntpserver_count;
  • cpukit/libnetworking/rtems/rtems_glue.c

    r022fcc07 rce452f7  
    7979 * BOOTP values
    8080 */
    81 struct in_addr rtems_bsdnet_log_host_address;
    82 struct in_addr rtems_bsdnet_bootp_server_address;
    83 char *rtems_bsdnet_bootp_boot_file_name;
    84 char *rtems_bsdnet_bootp_server_name;
    85 char *rtems_bsdnet_domain_name;
     81struct in_addr rtems_bsdnet_log_host_address = {0};
     82struct in_addr rtems_bsdnet_bootp_server_address = {0};
     83char *rtems_bsdnet_bootp_boot_file_name = 0;
     84char *rtems_bsdnet_bootp_server_name = 0;
     85char *rtems_bsdnet_domain_name = 0;
     86char *rtems_bsdnet_bootp_cmdline = 0;
    8687struct in_addr rtems_bsdnet_nameserver[sizeof rtems_bsdnet_config.name_server /
    8788                        sizeof rtems_bsdnet_config.name_server[0]];
    88 int rtems_bsdnet_nameserver_count;
     89int rtems_bsdnet_nameserver_count = 0;
    8990struct in_addr rtems_bsdnet_ntpserver[sizeof rtems_bsdnet_config.ntp_server /
    9091                        sizeof rtems_bsdnet_config.ntp_server[0]];
    91 int rtems_bsdnet_ntpserver_count;
    92 long rtems_bsdnet_timeoffset;
     92int rtems_bsdnet_ntpserver_count = 0;
     93long rtems_bsdnet_timeoffset = 0;
    9394
    9495/*
     
    874875                                        address.sin_addr.s_addr | ~netmask.sin_addr.s_addr;
    875876                        if (rtems_bsdnet_ifconfig (ifp->name, SIOCSIFBRDADDR, &broadcast) < 0) {
    876                                 struct in_addr in_addr;
     877                                struct in_addr  in_addr;
     878                                char                    buf[20];
    877879                                in_addr.s_addr = broadcast.sin_addr.s_addr;
     880                                if (!inet_ntop(AF_INET, &in_addr, buf, sizeof(buf)))
     881                                                strcpy(buf,"?.?.?.?");
    878882                                printf ("Can't set %s broadcast address %s: %s\n",
    879                                         ifp->name, inet_ntoa (in_addr), strerror (errno));
     883                                        ifp->name, buf, strerror (errno));
    880884                        }
    881885                }
Note: See TracChangeset for help on using the changeset viewer.