datatype msg =
Rreq nat rreqid ip sqn k ip sqn ip
| Rrep nat ip sqn ip ip
| Rerr "ip ⇀ sqn" ip
| Newpkt data ip
| Pkt data ip ip
instantiation msg :: msg begin definition newpkt_def [simp]: "newpkt ≡ λ(d, dip). Newpkt d dip" definition eq_newpkt_def: "eq_newpkt m ≡ case m of Newpkt d dip ==> True | _ ==> False"
instanceby intro_classes (simp add: eq_newpkt_def) end
text‹The @{type msg} type models the different messages used within AODV.
The instantiation as a @{class msg} is a technicality due to the special
treatment of @{term newpkt} messages in the AWN SOS rules.
This use of classes allows a clean separation of the AWN-specific definitions
and these AODV-specific definitions.›
definition rreq :: "nat × rreqid × ip × sqn × k × ip × sqn × ip ==> msg" where"rreq ≡ λ(hops, rreqid, dip, dsn, dsk, oip, osn, sip). Rreq hops rreqid dip dsn dsk oip osn sip"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.