Fix warnings and errors in samples

- Use <netipx/ipx.h> from glibc, because Linux 5.15 removes <linux/ipx.h>
- Pack whole structure instead of individual fields
- Network is 32bit value, avoid unsigned long to work on 64bit systems
This commit is contained in:
Dmitry Podgorny
2021-10-31 00:48:33 +03:00
parent 7d71376dca
commit 15526d8c4c
4 changed files with 24 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <linux/ipx.h>
#include <netipx/ipx.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <errno.h>