mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
15 lines
228 B
C
15 lines
228 B
C
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/ip.h>
|
|
#include <netinet/udp.h>
|
|
|
|
int main() {
|
|
if (socket(PF_INET, SOCK_RAW, IPPROTO_UDP) == -1) {
|
|
perror("socket");
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|