\def\pubdate#1{\gdef\@pubdate{#1}}
\def\address#1{\gdef\@address{#1}}
\def\expires#1{\gdef\@expires{#1}}
\def\status#1{\gdef\@status{#1}}
\def\copyright#1{\gdef\@copyright{#1}}
\def\filename#1{\gdef\@filename{#1.ps}}
\def\wg#1{\gdef\@wg{#1}}
% this should really be an [] option to title
\def\shorttitle#1{\gdef\@shorttitle{#1}}
\gdef\@wg{}

% default status
\gdef\@status{\subsection*{Status of this Memo}
%\vspace{-12pt}
This document is an Internet-Draft and is in full conformance with all
provisions of Section 10 of RFC2026.

Internet-Drafts are working documents of the Internet Engineering Task
Force (IETF), its areas, and its working groups.  Note that other groups
may also distribute working documents as Internet-Drafts.

Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time.  It is inappropriate to use Internet-Drafts as reference material
or to cite them other than as ``work in progress.''

The list of current Internet-Drafts can be accessed at
http://www.ietf.org/ietf/1id-abstracts.txt

To view the list Internet-Draft Shadow Directories, see
{\sf http://www.ietf.org/shadow.html}.
}
% default copyright
\gdef\@copyright{\subsection*{Copyright Notice}
Copyright (c) The Internet Society (\number\year).  All Rights Reserved.
}
\def\maketitle{\par
 \begingroup
 \newpage \global\@topnum\z@
 \@maketitle 
 \@makeheadings
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
}
\def\@maketitle{\newpage
 \null
\vspace{-48pt}
\noindent\begin{tabular*}{\textwidth}{@{}l@{\extracolsep{\fill}}r}
Internet Engineering Task Force & \@wg\\
INTERNET-DRAFT & {\footnotesize \@author}\\
\@filename & {\footnotesize \@address}\\
& \@pubdate\\
& Expires: \@expires
 \end{tabular*}
 \begin{center}
  \Large\bf\@title
 \end{center}
\@status
\@copyright
\def\@makeheadings{
 \null
 % Generate RFC page headings
 \gdef\@oddhead {\rm INTERNET-DRAFT \hfil \@filename \hfil \@pubdate}
 \gdef\@evenhead{\rm INTERNET-DRAFT \hfil \@shorttitle \hfil \@pubdate}
 \gdef\@oddfoot {\rm {\scriptsize \@author}\hfil Expires \@expires \hfil [Page \thepage ]}
 \gdef\@evenfoot{\rm {\scriptsize \@author}\hfil Expires \@expires \hfil [Page \thepage ]}
 }
}

\evensidemargin 0in
\oddsidemargin  0in
\topmargin      0pt
\textwidth      6.5in
\textheight     8.5in
%\footheight     0.3in
%\parindent      0in
\parskip        0pt

\thispagestyle{empty}
\def\verbatim{\parskip 0pt\topsep 12pt\@verbatim \frenchspacing\@vobeyspaces \@xverbatim}
\def\itemize{\parskip 0pt\topsep 0pt\ifnum \@itemdepth >3 \@toodeep\else \advance\@itemdepth \@ne 
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}{\def\makelabel##1{\hss\llap{##1}}}\fi}
\def\enumerate{\parskip 0pt\topsep 0pt\ifnum \@enumdepth >3 \@toodeep\else
      \advance\@enumdepth \@ne 
      \edef\@enumctr{enum\romannumeral\the\@enumdepth}\list
      {\csname label\@enumctr\endcsname}{\usecounter
        {\@enumctr}\def\makelabel##1{\hss\llap{##1}}}\fi}

\newcommand{\MUST}{\textsc{must}}
\newcommand{\MUSTNOT}{\textsc{must not}}
\newcommand{\REQUIRED}{\textsc{required}}
\newcommand{\SHALL}{\textsc{shall}}
\newcommand{\SHALLNOT}{\textsc{shall not}}
\newcommand{\SHOULD}{\textsc{should}}
\newcommand{\SHOULDNOT}{\textsc{should not}}
\newcommand{\MAY}{\textsc{may}}
\newcommand{\OPTIONAL}{\textsc{optional}}
\newcommand{\RECOMMENDED}{\textsc{recommended}}
\newcommand{\NOTRECOMMENDED}{\textsc{not recommended}}

\newcommand{\motivation}[1]{{\footnotesize\begin{quotation}#1\end{quotation}}}
\newcommand{\see}{$\rightarrow$}
\newenvironment{syntax}{\begin{quotation}\begin{sf}\begin{tabular}{lcll}}{\end{tabular}\end{sf}\end{quotation}}
