資源簡介
4.4BSD-Lite2/TCP_IP詳解使用的是其中的棧
代碼片段和文件信息
/*-
?*?Copyright?(c)?1991?1993
?* The?Regents?of?the?University?of?California.??All?rights?reserved.
?*
?*?This?code?is?derived?from?software?contributed?to?Berkeley?by
?*?Matt?Bishop?of?Dartmouth?College.
?*
?*?The?United?States?Government?has?rights?in?this?work?pursuant
?*?to?contract?no.?NAG?2-680?between?the?National?Aeronautics?and
?*?Space?Administration?and?Dartmouth?College.
?*
?*?Redistribution?and?use?in?source?and?binary?forms?with?or?without
?*?modification?are?permitted?provided?that?the?following?conditions
?*?are?met:
?*?1.?Redistributions?of?source?code?must?retain?the?above?copyright
?*????notice?this?list?of?conditions?and?the?following?disclaimer.
?*?2.?Redistributions?in?binary?form?must?reproduce?the?above?copyright
?*????notice?this?list?of?conditions?and?the?following?disclaimer?in?the
?*????documentation?and/or?other?materials?provided?with?the?distribution.
?*?3.?All?advertising?materials?mentioning?features?or?use?of?this?software
?*????must?display?the?following?acknowledgement:
?* This?product?includes?software?developed?by?the?University?of
?* California?Berkeley?and?its?contributors.
?*?4.?Neither?the?name?of?the?University?nor?the?names?of?its?contributors
?*????may?be?used?to?endorse?or?promote?products?derived?from?this?software
?*????without?specific?prior?written?permission.
?*
?*?THIS?SOFTWARE?IS?PROVIDED?BY?THE?REGENTS?AND?CONTRIBUTORS?‘‘AS?IS‘‘?AND
?*?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE
?*?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE
?*?ARE?DISCLAIMED.??IN?NO?EVENT?SHALL?THE?REGENTS?OR?CONTRIBUTORS?BE?LIABLE
?*?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL
?*?DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS
?*?OR?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)
?*?HOWEVER?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT
?*?LIABILITY?OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY
?*?OUT?OF?THE?USE?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF
?*?SUCH?DAMAGE.
?*/
#ifndef?lint
static?char?copyright[]?=
“@(#)?Copyright?(c)?1991?1993\n\
The?Regents?of?the?University?of?California.??All?rights?reserved.\n“;
#endif?/*?not?lint?*/
#ifndef?lint
static?char?sccsid[]?=?“@(#)bdes.c 8.1?(Berkeley)?6/6/93“;
#endif?/*?not?lint?*/
/*
?*?BDES?--?DES?encryption?package?for?Berkeley?Software?Distribution?4.4
?*?options:
?* -a key?is?in?ASCII
?* -b use?ECB?(electronic?code?book)?mode
?* -d invert?(decrypt)?input
?* -f?b use?b-bit?CFB?(cipher?feedback)?mode
?* -F?b use?b-bit?CFB?(cipher?feedback)?alternative?mode
?* -k?key use?key?as?the?cryptographic?key
?* -m?b generate?a?MAC?of?length?b
?* -o?b use?b-bit?OFB?(output?feedback)?mode
?* -p don‘t?reset?the?parity?bit
?* -v?v use?v?as?the?initialization?vector?(ignored?for?ECB)
?*?note:?the?last?character?of?the?last?block?is?the?integer?indicating
?*?how?many?characters?of?that?block?are?to?be
- 上一篇:VTK-8.1.0.zip
- 下一篇:龍兵企業版5.99.8.zip
評論
共有 條評論