Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/libbb/create_icmp_socket.c

    r1765 r2725  
    33 * Utility routines.
    44 *
    5  * create raw socket for icmp protocol test permission
     5 * create raw socket for icmp protocol
    66 * and drop root privileges if running setuid
    77 *
     8 * Licensed under GPLv2, see file LICENSE in this source tree.
    89 */
    910
    10 //#include <sys/types.h>
    11 //#include <netdb.h>
    12 //#include <sys/socket.h>
    1311#include "libbb.h"
    1412
    15 int create_icmp_socket(void)
     13int FAST_FUNC create_icmp_socket(void)
    1614{
     15    int sock;
     16#if 0
    1717    struct protoent *proto;
    18     int sock;
    19 
    2018    proto = getprotobyname("icmp");
    2119    /* if getprotobyname failed, just silently force
     
    2321    sock = socket(AF_INET, SOCK_RAW,
    2422            (proto ? proto->p_proto : 1)); /* 1 == ICMP */
     23#else
     24    sock = socket(AF_INET, SOCK_RAW, 1); /* 1 == ICMP */
     25#endif
    2526    if (sock < 0) {
    2627        if (errno == EPERM)
Note: See TracChangeset for help on using the changeset viewer.