Tải bản đầy đủ - 0 (trang)
Appendix A. Solutions to Selected Exercises

Appendix A. Solutions to Selected Exercises

Tải bản đầy đủ - 0trang

AppendixA.Solutionsto

SelectedExercises

Chapter1

Chapter2

Chapter3

Chapter4

Chapter5

Chapter6

Chapter7

Chapter8

Chapter9

Chapter10

Chapter11

Chapter12



Chapter13

Chapter14

Chapter15

Chapter16

Chapter17

Chapter18

Chapter19

Chapter20

Chapter21

Chapter22

Chapter23

Chapter24

Chapter25

Chapter26

Chapter27







Chapter28

Chapter29

Chapter30

Chapter31

Chapter32



Team-Fly









Top



Team-Fly











TCP/IPIllustrated,Volume2:The

ImplementationByGaryR.Wright,

W.RichardStevens

TableofContents



AppendixA.SolutionstoSelected

Exercises



Chapter1





SLIPdriversexecuteatspltty(Figure

1.13),whichmustbeaprioritylower

thanorequaltosplimpandmustbea

1.2

priorityhigherthansplnet.Therefore

theSLIPdriversareblockedfrom

interrupting.



Team-Fly









Top



Team-Fly











TCP/IPIllustrated,Volume2:The

ImplementationByGaryR.Wright,

W.RichardStevens

TableofContents



AppendixA.SolutionstoSelected

Exercises



Chapter2



TheM_EXTflagisapropertyofthe

2.1 mbufitself,notapropertyofthe

packetdescribedbythembuf.



2.2



Thecallerasksformorethan100

(MHLEN)contiguousbytes.





Thisisinfeasiblesinceclusterscanbe

pointedtobymultiplembufs(Section

2.9).Also,thereisnoroomina



2.3 clusterforabackpointer(Exercise

2.4).



InthemacrosMCLALLOCand

MCLFREEinwesee

thatthereferencecountisanarray

2.4

namedmclrefcnt.Thisarrayis

allocatedwhenthekernelisinitialized

inthefilemachdep.c.



Team-Fly









Top



Team-Fly











TCP/IPIllustrated,Volume2:The

ImplementationByGaryR.Wright,

W.RichardStevens

TableofContents



AppendixA.SolutionstoSelected

Exercises



Chapter3



Alargeinteractivequeuewoulddefeat

thepurposeofthequeuebydelaying

3.3

newinteractivetrafficbehindthe

existinginteractivedata.





Sincethesl_softcstructuresareall

3.4 declaredasglobalvariables,theyare

initializedto0whenthekernelstarts.



3.5



Team-Fly









Top



Team-Fly











TCP/IPIllustrated,Volume2:The

ImplementationByGaryR.Wright,

W.RichardStevens

TableofContents



AppendixA.SolutionstoSelected

Exercises



Chapter4



lereadmustexaminethepacketto

decideifitneedstobediscardedafter

itispassedtoBPF.SinceaBPFtap

canenablepromiscuousmodeonthe

interface,packetsmaybeaddressed

4.1 tosomeothersystemontheEthernet

andmustbediscardedafterBPFhas

processedthem.

Whentheinterfaceisnottapped,the

testsmustbedoneinether_input.







Ifthetestswerereversed,the

broadcastflagwouldneverbeset.

4.2 Ifthesecondifwasn'tprecededbyan

else,everybroadcastpacketwould

alsohavethemulticastflagset.



Team-Fly









Top



Team-Fly











TCP/IPIllustrated,Volume2:TheImplementationBy

GaryR.Wright,W.RichardStevens

TableofContents



AppendixA.SolutionstoSelected

Exercises



Chapter5



Theloopbackinterfacedoesnotneedan

inputfunctionbecauseallitspacketsare

5.1

receiveddirectlyfromlooutput,which

performsthe"input"functions.



Thestackallocationisfasterthan

dynamicmemoryallocation.Performance

5.2 isimportantforBPFprocessing,sincethe

codeisexecutedforeachincoming

packet.



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Appendix A. Solutions to Selected Exercises

Tải bản đầy đủ ngay(0 tr)

×