欢迎来到天天文库
浏览记录
ID:39779536
大小:168.25 KB
页数:26页
时间:2019-07-11
《Understanding and Programming with Netlink Sockets》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、UnderstandingAndProgrammingWithNetlinkSocketsNeilHormanVersion0.3December6,20041Contents1Introduction32TheNetlinkAddressFamily42.1SocketCreation..........................42.2SendingandReceivingDatagrams................42.3TheNetlinkSocketAddressStructure.
2、............53TheNetlinkMessageFormat73.1TheNetlinkHeader........................73.2NetlinkUtilityMacros......................93.3AVisualOverview........................104TheNETLINKFIREWALLprotocol114.1CreationandUse.........................114.2Message
3、Types..........................124.2.1IPQMMODE.......................124.2.2IPQMPACKET.....................134.2.3IPQMVERDICT.....................144.3ExampleuseoftheNETLINKFILTERprotocol........165TheNETLINKROUTEProtocol185.1CreationandUse...............
4、..........185.2theNETLINKROUTEmessagemacros............185.3AnotherVisualOverview.....................195.4MessageTypes..........................195.4.1TheLINKmessages...................205.4.2TheADDRmessages...................215.4.3TheROUTEmessages.....
5、.............235.4.4TheNEIGHmessages..................245.4.5TheRULEmessages...................245.4.6TheQDISCmessages...................245.4.7TheCLASSmessages...................245.4.8TheFILTERmessages..................246AddingNetlinkProtocolsintheKern
6、el251ListofFigures1Netlinkmessagelayoutandnetlinkmacrointeraction.....102Netlinkrouteprotocolmessagelayoutandmacrointeraction.2021IntroductionNetworkconfigurationinLinux,andinvariousimplementationsofUnixingeneral,hasalwaysbeensomethingofanafterthoughtfromt
7、heprogrammerspointofview.Addingroutes,neighbortableentries,orinterfaceconfigura-tionoptionsrequiredasomewhathaphazardcombinationofrawsockets,ioctlcallsandspecializedpseudo-networkprotocols.Inthe2.4Linuxker-nel,developersbegananefforttocreateamorestandardint
8、erfacefortheconfigurationofthenetworkcontrolplane1.Thisconfigurationinterfaceandprotocol,knownasnetlinksocketsaimstocreateacommunicationframe-worksuitableforsettingallaspectsofthenetworkcontrolplane.Whilethebuildoutof
此文档下载收益归作者所有