HerzogGallus_96
Patrick
Bayern, Germany
Just an average game-playing Guy. :steamhappy: Don't feed the troll(s).
------------------
bool RawSocket::open(const char* adapter)
{
// Open socket
socket = ::socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
if(socket == -1)
{
return false;
}

// Retrive current flags
int flags = fcntl(socket, F_GETFL);
if(flags == -1)
{
close();
return false;
}

// Add non blocking
flags |= O_NONBLOCK;
int result = fcntl(socket, F_SETFL, flags);
if(result == -1)
{
close();
return false;
}

// Bind to adapter
result = setsockopt(socket, SOL_SOCKET, SO_BINDTODEVICE, adapter, strlen(adapter));
if(result == -1)
{
close();
return false;
}

return true;
}
------------------
:steamthis: "HIER KÖNNTE IHRE WERBUNG STEHEN." :steamthis:
Just an average game-playing Guy. :steamhappy: Don't feed the troll(s).
------------------
bool RawSocket::open(const char* adapter)
{
// Open socket
socket = ::socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
if(socket == -1)
{
return false;
}

// Retrive current flags
int flags = fcntl(socket, F_GETFL);
if(flags == -1)
{
close();
return false;
}

// Add non blocking
flags |= O_NONBLOCK;
int result = fcntl(socket, F_SETFL, flags);
if(result == -1)
{
close();
return false;
}

// Bind to adapter
result = setsockopt(socket, SOL_SOCKET, SO_BINDTODEVICE, adapter, strlen(adapter));
if(result == -1)
{
close();
return false;
}

return true;
}
------------------
:steamthis: "HIER KÖNNTE IHRE WERBUNG STEHEN." :steamthis:
当前离线
最新动态
总时数 435 小时
最后运行日期:5 月 27 日
100 点经验值
成就进度   87 / 276
总时数 131 小时
最后运行日期:4 月 25 日
100 点经验值
成就进度   23 / 27
总时数 0 小时
最后运行日期:4 月 5 日
成就进度   0 / 32
Создатель секса 4 月 15 日 下午 12:46 
- rep (fails all skillcheck) + ♥♥♥♥♥♥
mks 4 月 10 日 下午 2:05 
⣿⠃⠀⡸⡇⠄⠀⢰⠘⠉⠀⠀⢰⠀⡀⠀⠀⠀⠀⠀⠀⠓⢻⣿
⡇⢀⠀⠀⠰⡀⠀⠘⢰⠁⠀⠘⢸⠰⠐⠀⠀⠀⠀⠀⠀⠀⣸⣿
⠃⣸⠧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠏⠂⠀⠀⠀⠀⠀⠀⠀⢰⡷⣿
⣧⢸⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠘
⣿⠰⡷⠀⣿⣿⣶⣶⣶⣶⣶⣶⣶⣶⣿⣿⣿⣿⣿
⣿⡇⡁⠁⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠀⠀
⣿⣇⠀⡄⠹⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠁⠀⠀⠀⠀
⣿⣿⡇⠀⢀⠀⠀⠀⠈⠉⠉⠙⠿⠀⠀⠀⠀
⣿⣿⡇⢊⢺⣦⠈⠀⠀⠀⠀⢀⣾⡆⣀⣀⣀⣤
⣿⣿⣿⣦⡁⠿⣿⣤⣤⣤⡶⢿⣿⡠⡟⠻⣿⣿⡇
⣿⣿⣿⣿⣷⠉⢽⣿⣿⠋⣀⠻⢿⣧⠟⢠⣿⣿
⣿⣿⣿⣿⠛⠀⠀⠹⣿⠋⠙⠷⢦⣀⡠⠿⠟⡻
⣿⣿⡿⡃⠀⠀⠀⠀⠈⢣⣿⣧⠒⠐⠒⢀⣿⡇
⣿⡿⡽⠃⠀⠆⠄⠀⠀⠀⠻⢿⣷⣿⣿⣿⡿⠀
⡟⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀
seven minutes is all i can spare to play with you.
O-Robi 4 月 8 日 下午 2:09 
-rep how can a survy be so ungratefull and be signailg where i am hiding to the killer, shameon u :3dsephiroth:
I hate you. 3 月 20 日 下午 2:12 
-rep normally ate so much ♥♥♥♥ and was offended by my style of play :D
sophiamiller 3 月 20 日 上午 10:08 
+rep np bestie
hatemode 3 月 13 日 下午 4:03 
-rep nazi!!!