src:
package main
import "fmt"
type A struct {
Name string
Number int
src:
package main
import "fmt"
type A struct {
Name string
Number int
require 'socket' | |
ETH_P_ALL = 0x0300 # linux/if_ether.h(network byte order) | |
SIOCGIFINDEX = 0x8933 # bits/ioctls.h | |
SOL_PACKET = 0x0107 # bits/socket.h | |
PACKET_ADD_MEMBERSHIP = 0x0001 # netpacket/packet.h | |
PACKET_MR_PROMISC = 0x0001 # netpacket/packet.h | |
IFREQ_SIZE = 0x0028 # sizeof(ifreq) on 64bit | |
IFINDEX_SIZE = 0x0004 # sizeof(ifreq.ifr_ifindex) on 64bit | |
SOCKADDR_LL_SIZE = 0x0014 # sizeof(sockaddr_ll) on 64bit |