From: markp on 28 Mar 2010 21:00 > I think I got to the bottom of it - why this is impossible under > windows, that is. > I had posted the same question in a local (Bulgarian) forum, and today > a guy replied and posted this pointer: > http://en.wikipedia.org/wiki/Raw_socket Raw sockets is the ability to bypass the encapsulation of the lower level OS. All you need to do is send a legitimate UDP broadcast 'enquire' packet and receive uni-cast replies, I can't see why you would want to create your own raw packets and why you can't just use the OS to encapsulate your data normally (?) Mark.
From: markp on 28 Mar 2010 21:17 "markp" <map.nospam(a)f2s.com> wrote in message news:81ac4aF3c3U1(a)mid.individual.net... > >> I think I got to the bottom of it - why this is impossible under >> windows, that is. >> I had posted the same question in a local (Bulgarian) forum, and today >> a guy replied and posted this pointer: > >> http://en.wikipedia.org/wiki/Raw_socket > > Raw sockets is the ability to bypass the encapsulation of the lower level > OS. All you need to do is send a legitimate UDP broadcast 'enquire' packet > and receive uni-cast replies, I can't see why you would want to create > your own raw packets and why you can't just use the OS to encapsulate your > data normally (?) > > Mark. > FYI: http://msdn.microsoft.com/en-us/magazine/cc163648.aspx Mark.
From: Didi on 28 Mar 2010 22:07 On Mar 29, 4:00 am, "markp" <map.nos...(a)f2s.com> wrote: > > I think I got to the bottom of it - why this is impossible under > > windows, that is. > > I had posted the same question in a local (Bulgarian) forum, and today > > a guy replied and posted this pointer: > > http://en.wikipedia.org/wiki/Raw_socket > > Raw sockets is the ability to bypass the encapsulation of the lower level > OS. All you need to do is send a legitimate UDP broadcast 'enquire' packet > and receive uni-cast replies, I can't see why you would want to create your > own raw packets and why you can't just use the OS to encapsulate your data > normally (?) > > Mark. So how do you send an ARP packet via UDP? (FYI: ARP is lower level than UDP). Dimiter
From: markp on 28 Mar 2010 22:23 "Didi" <dp(a)tgi-sci.com> wrote in message news:c89e214e-efb8-43f5-b877-be5dc44378ee(a)i25g2000yqm.googlegroups.com... On Mar 29, 4:00 am, "markp" <map.nos...(a)f2s.com> wrote: > > I think I got to the bottom of it - why this is impossible under > > windows, that is. > > I had posted the same question in a local (Bulgarian) forum, and today > > a guy replied and posted this pointer: > > http://en.wikipedia.org/wiki/Raw_socket > >> Raw sockets is the ability to bypass the encapsulation of the lower level >> OS. All you need to do is send a legitimate UDP broadcast 'enquire' >> packet >> and receive uni-cast replies, I can't see why you would want to create >> your >> own raw packets and why you can't just use the OS to encapsulate your >> data >> normally (?) >> >> Mark. > So how do you send an ARP packet via UDP? (FYI: ARP is lower level >than UDP). > Dimiter I may have got this wrong, but I thought you wanted to find the address of a newly connected web-server on a local network and be able to configure a browser to access it. In which case all that is needed is to do is run a small utility on the browser PC that sends a UDP broadcast packet, the data portion of which contains the PC's IP address. The client, which has been allocated an address by the DHCP server, sees the UDP broadcast packet, and responds by uni-cast to the given address with *its* adddress in the data portion. The utility displays that address, which the user can either copy into the browser or click as a hyperlink. Why do you need ARP?? Mark.
From: JosephKK on 29 Mar 2010 00:37
On Sun, 28 Mar 2010 19:07:27 -0700 (PDT), Didi <dp(a)tgi-sci.com> wrote: >On Mar 29, 4:00 am, "markp" <map.nos...(a)f2s.com> wrote: >> > I think I got to the bottom of it - why this is impossible under >> > windows, that is. >> > I had posted the same question in a local (Bulgarian) forum, and today >> > a guy replied and posted this pointer: >> > http://en.wikipedia.org/wiki/Raw_socket >> >> Raw sockets is the ability to bypass the encapsulation of the lower level >> OS. All you need to do is send a legitimate UDP broadcast 'enquire' packet >> and receive uni-cast replies, I can't see why you would want to create your >> own raw packets and why you can't just use the OS to encapsulate your data >> normally (?) >> >> Mark. > >So how do you send an ARP packet via UDP? (FYI: ARP is lower level >than UDP). > >Dimiter APR lower level than UDP? I don't think so. Same level at best, below UDP is MAC and PHY only. |