Help for this page

Select Code to Download


  1. or download this
                    XS(XS_Net__LibnetRaw_libnet_init_packet)
                    [...]
    ...
                    [...]
                            RETVAL = libnet_init_packet(p_size, &buf);
                            sv_setpv((SV*)ST(1), buf);
    
  2. or download this
    int libnet_init_packet(size_t p_size, u_char **buf);
    
  3. or download this
    int libnet_build_ip([...], u_char *buf);
    
  4. or download this
    u_char *buf;
    
    libnet_init_packet(IP_H + TCP_H, &buf); /* This calls malloc() and set
    +s buf as a pointer to that new memory */
    [...]
    libnet_build_ip([...], buf); /* The pointer value is the same, but dat
    +a pointed to is altered */