Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: IP_HDRINCL, SOCK_RAW


  • Subject: Re: lug-bg: IP_HDRINCL, SOCK_RAW
  • From: vasil@xxxxxxxxxxxxxxx (vasil@xxxxxxxxxxxxxxx)
  • Date: Thu, 12 Aug 1999 17:55:40 +0300 (EEST)



On Thu, 12 Aug 1999, skk wrote:
> btw, za tezi, kojto ne wiarwat che windows moje da
> raboti w RAW rejim e slednata chast ot source:
> 
> ...
> if (WSAStartup(MAKEWORD(2,1),&wsaData) != 0)
> { //on error go to hell :)))
> };
> SOCKET sockRaw = WSASocket(AF_INET, SOCK_RAW,
> IPPROTO_ICMP, NULL,0,0);
E dobre de,ama tva e samo za ICMP...mozhesh li da mi napishesh
nestea2 za windows ?togava shte mi pokazhesh che ima instinski
raw socket-i
> if(sockRaw == INVALID_SOCKET) 
> { //on error go to hell :)))
> };
> BOOL value;
> if
> (setsockopt(sockRaw,IPPROTO_IP,IP_HDRINC,(char*)&value,
> sizeof(value)) == SOCKET_ERROR) 
> { // tuk winagi dawa greshka!!!
>   // probwah i s drugite opcii - niakoj sushto
>   // nemogat da se promeniat, no drugi mogat :(((((((
> }
> ....
> 
> moga da izpratia pulnia compiliruem cod na programkata
> na wseki, kojto se zainteresuwa
ISKAM:))) edno nestea2 deto da raboti pod windows i da ne pishe direktno
na link layer :)))

==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
For more send to lug-bg-request@xxxxxxxxxxxx a single word 'info'
==================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.