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_icmp6_socket.c

    r1765 r2725  
    33 * Utility routines.
    44 *
    5  * create raw socket for icmp (IPv6 version) protocol test permission
     5 * create raw socket for icmp (IPv6 version) 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
    1513#if ENABLE_FEATURE_IPV6
    16 int create_icmp6_socket(void)
     14int FAST_FUNC create_icmp6_socket(void)
    1715{
     16    int sock;
     17#if 0
    1818    struct protoent *proto;
    19     int sock;
    20 
    2119    proto = getprotobyname("ipv6-icmp");
    2220    /* if getprotobyname failed, just silently force
     
    2422    sock = socket(AF_INET6, SOCK_RAW,
    2523            (proto ? proto->p_proto : IPPROTO_ICMPV6));
     24#else
     25    sock = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
     26#endif
    2627    if (sock < 0) {
    2728        if (errno == EPERM)
Note: See TracChangeset for help on using the changeset viewer.