Re: Raw sockets and bootp



Roger wrote:

For the low ports (UDP/67 and UDP/68) you'll need superuser privileges.


I am running the part of the app that has the bootp via sudo



Is your problem to listen for the request or to return
the response to the client?



So far listning. Doing a normal UDP bind to the the port I can bind to
67 and show up in netstat, but while etherreal shows the incoming
packets arriving, select and recv get nothing. A web search on the
problem shows me I need raw sockets for both send and receive.

That takes more code than the rest of the bootp server put together.

I found code for a basic bootp server, but non of them use raw sockets
and presumably only work on other systems or with pre 2.2 kernels.

Oh well, if I do end up having to write my own then I suppose I could
(should!) write it up for others!

Did you remember that receiving from a non-connected socket
needs recvfrom()?

--

Tauno Voipio
tauno voipio (at) iki fi


.



Relevant Pages

  • Re: Raw sockets and bootp
    ... That takes more code than the rest of the bootp server put together. ... I found code for a basic bootp server, but non of them use raw sockets ... citing the need to use raw sockets and that 2.2+ kernels broke old ... tauno voipio iki fi ...
    (comp.os.linux.development.apps)
  • Re: Raw sockets and bootp
    ... For the low ports you'll need superuser privileges. ... That takes more code than the rest of the bootp server put together. ... I found code for a basic bootp server, but non of them use raw sockets ... citing the need to use raw sockets and that 2.2+ kernels broke old ...
    (comp.os.linux.development.apps)
  • Re: Raw sockets and bootp
    ... For the low ports you'll need superuser privileges. ... That takes more code than the rest of the bootp server put together. ... I found code for a basic bootp server, but non of them use raw sockets ...
    (comp.os.linux.development.apps)
  • Re: What makes BOOTP routable, but RARP isnt?
    ... not know their IP address and they both send out broadcast messages ... BOOTP runs on top of UDP which runs on top of IP, ... and this is subject to normal IP routing rules. ... tauno voipio iki fi ...
    (comp.os.linux.networking)
  • Network issue windows CE 4.2
    ... the idle time our networked peripherals use a "keep alive" to test for the ... in the failure mode the peripheral devices eventually ... attempt to BootP to resolve their loss of connectivity and this BootP also ... The BootP server is on the CE device. ...
    (microsoft.public.windowsce.platbuilder)