mirror of
https://github.com/fluencelabs/musl
synced 2025-07-03 00:22:11 +00:00
arch
crt
dist
include
arpa
net
netinet
netpacket
packet.h
sys
aio.h
alloca.h
ar.h
assert.h
byteswap.h
complex.h
cpio.h
crypt.h
ctype.h
dirent.h
dlfcn.h
elf.h
endian.h
err.h
errno.h
fcntl.h
features.h
fenv.h
float.h
fnmatch.h
ftw.h
getopt.h
glob.h
grp.h
iconv.h
inttypes.h
iso646.h
langinfo.h
lastlog.h
libgen.h
libintl.h
limits.h
locale.h
malloc.h
math.h
memory.h
mntent.h
monetary.h
mqueue.h
netdb.h
nl_types.h
paths.h
poll.h
pthread.h
pty.h
pwd.h
regex.h
resolv.h
sched.h
search.h
semaphore.h
setjmp.h
shadow.h
signal.h
spawn.h
stdalign.h
stdarg.h
stdbool.h
stddef.h
stdint.h
stdio.h
stdio_ext.h
stdlib.h
stdnoreturn.h
string.h
strings.h
stropts.h
syscall.h
sysexits.h
syslog.h
tar.h
termios.h
tgmath.h
time.h
ucontext.h
ulimit.h
unistd.h
utime.h
utmp.h
utmpx.h
wchar.h
wctype.h
wordexp.h
lib
src
tools
.gitignore
COPYRIGHT
INSTALL
Makefile
README
WHATSNEW
configure
45 lines
852 B
C
45 lines
852 B
C
![]() |
#ifndef _NETPACKET_PACKET_H
|
||
|
#define _NETPACKET_PACKET_H
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
struct sockaddr_ll {
|
||
|
unsigned short sll_family, sll_protocol;
|
||
|
int sll_ifindex;
|
||
|
unsigned short sll_hatype;
|
||
|
unsigned char sll_pkttype, sll_halen;
|
||
|
unsigned char sll_addr[8];
|
||
|
};
|
||
|
|
||
|
struct packet_mreq {
|
||
|
int mr_ifindex;
|
||
|
unsigned short int mr_type, mr_alen;
|
||
|
unsigned char mr_address[8];
|
||
|
};
|
||
|
|
||
|
#define PACKET_HOST 0
|
||
|
#define PACKET_BROADCAST 1
|
||
|
#define PACKET_MULTICAST 2
|
||
|
#define PACKET_OTHERHOST 3
|
||
|
#define PACKET_OUTGOING 4
|
||
|
#define PACKET_LOOPBACK 5
|
||
|
#define PACKET_FASTROUTE 6
|
||
|
|
||
|
#define PACKET_ADD_MEMBERSHIP 1
|
||
|
#define PACKET_DROP_MEMBERSHIP 2
|
||
|
#define PACKET_RECV_OUTPUT 3
|
||
|
#define PACKET_RX_RING 5
|
||
|
#define PACKET_STATISTICS 6
|
||
|
|
||
|
#define PACKET_MR_MULTICAST 0
|
||
|
#define PACKET_MR_PROMISC 1
|
||
|
#define PACKET_MR_ALLMULTI 2
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|