| Class | Racket::L5::BOOTP |
| In: |
lib/racket/l5/bootp.rb
(CVS)
|
| Parent: | RacketPart |
Bootstrap Protocol — BOOTP
RFC951 (www.faqs.org/rfcs/rfc951.html)
| BOOTP_REQUEST | = | 1 |
| BOOTP_REPLY | = | 2 |
| chaddr | Client hardware address | |
| cip | Client IP address | |
| file | Boot file name | |
| flags | Flags. Generally unused | |
| gip | Gateway IP address | |
| hops | Hops between client and server | |
| hwlen | Hardware adddress length | |
| hwtype | Hardware address type | |
| id | Transaction ID | |
| payload | Payload | |
| secs | Seceonds elapsed since client started trying to boot | |
| server | Optional server host name | |
| sip | Server IP address | |
| type | Message type | |
| yip | "Your" (client) IP address. |
# File lib/racket/l5/bootp.rb, line 96 def initialize(*args) @options = [] @options << "\x63\x82\x53\x63" # magic super @autofix = false end
# File lib/racket/l5/bootp.rb, line 68 def add_option(number, value) o = Racket::Misc::TLV.new(1,1) o.type = number o.value = value o.length = value.length @options << o.encode end