- or download this
XS(XS_Net__LibnetRaw_libnet_init_packet)
[...]
...
[...]
RETVAL = libnet_init_packet(p_size, &buf);
sv_setpv((SV*)ST(1), buf);
- or download this
int libnet_init_packet(size_t p_size, u_char **buf);
- or download this
int libnet_build_ip([...], u_char *buf);
- 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 */