From 58512a223c21f764630ea351c9fac80a25e614fe Mon Sep 17 00:00:00 2001 From: Simone Piccardi Date: Mon, 23 Jun 2003 18:48:04 +0000 Subject: [PATCH] Modifiche per le tabelle per Mirko. --- macro.tex | 4 ++++ netlayer.tex | 8 ++++++-- sources/TCP_echo.c | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/macro.tex b/macro.tex index 4432618..41a118e 100644 --- a/macro.tex +++ b/macro.tex @@ -148,6 +148,10 @@ \newcommand{\acr}[1]{\textsl{#1}} % acrostic (for pid, suid, etc.) +% Aggiunte di Mirko per la gestione delle tabelle complicate come immagini +% nella traslazione in HTML +\newenvironment{usepicture}{}{}{}{} + %%% Local Variables: %%% mode: latex %%% TeX-master: "gapil" diff --git a/netlayer.tex b/netlayer.tex index fb4acf2..fa73950 100644 --- a/netlayer.tex +++ b/netlayer.tex @@ -78,6 +78,7 @@ diverse. \begin{table}[htb] \centering \footnotesize + \begin{usepicture} \begin{tabular} {c@{\hspace{1mm}\vrule} p{3mm}@{\vrule}p{3mm}@{\vrule}p{3mm}@{\vrule}p{3mm}@{\vrule} p{3mm}@{\vrule}p{3mm}@{\vrule}p{3mm}@{\vrule}p{3mm}@{\vrule} @@ -140,7 +141,8 @@ diverse. \omit\hfill\vrule &&&&&&&& &&&&&&&& &&&&&&&& &&&&&&&& \\ \cline{2-33} -\end{tabular} + \end{tabular} + \end{usepicture} \caption{Le classi di indirizzi secondo IPv4.} \label{tab:IP_ipv4class} \end{table} @@ -163,6 +165,7 @@ di questi ultimi ed inefficienza nel trasporto. \begin{table}[htb] \centering \footnotesize + \begin{usepicture} \begin{tabular} {c@{\hspace{1mm}\vrule} p{3mm}@{\vrule}p{3mm}@{\vrule}p{3mm}@{\vrule}p{3mm}@{\vrule} p{3mm}@{\vrule}p{3mm}@{\vrule}p{3mm}@{\vrule}p{3mm}@{\vrule} @@ -181,7 +184,8 @@ di questi ultimi ed inefficienza nel trasporto. \multicolumn{20}{@{}c@{\vrule}}{\parbox[c]{60mm}{\centering host Id}} \\ \omit\hfill\vrule &&&&&&&& &&&&&&&& &&&&&&&& &&&&&&&& \\ \cline{2-33} -\end{tabular} + \end{tabular} + \end{usepicture} \caption{Uno esempio di indirizzamento CIDR.} \label{tab:IP_ipv4cidr} \end{table} diff --git a/sources/TCP_echo.c b/sources/TCP_echo.c index be6842b..2a6f921 100644 --- a/sources/TCP_echo.c +++ b/sources/TCP_echo.c @@ -26,7 +26,7 @@ * * Usage: echo -h give all info's * - * $Id: TCP_echo.c,v 1.1 2003/06/23 13:58:36 piccardi Exp $ + * $Id: TCP_echo.c,v 1.2 2003/06/23 18:48:04 piccardi Exp $ * ****************************************************************/ /* @@ -106,6 +106,7 @@ int main(int argc, char *argv[]) } /* check if resetting on close is required */ if (reset) { + printf("Setting reset on close \n"); ling.l_onoff = 1; ling.l_linger = 0; if (setsockopt(sock, SOL_SOCKET, SO_LINGER, &ling, sizeof(ling))) { -- 2.30.2