<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tcpip &#8211; 悠然居</title>
	<atom:link href="https://wordpress.youran.me/tag/tcpip/feed/" rel="self" type="application/rss+xml" />
	<link>https://wordpress.youran.me</link>
	<description>极客技术博客</description>
	<lastBuildDate>Tue, 22 Mar 2016 11:59:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.8</generator>
	<item>
		<title>初试Python raw socket编程</title>
		<link>https://wordpress.youran.me/python-raw-socket-programming/</link>
					<comments>https://wordpress.youran.me/python-raw-socket-programming/#comments</comments>
		
		<dc:creator><![CDATA[youran]]></dc:creator>
		<pubDate>Fri, 15 Aug 2014 16:04:12 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[socket]]></category>
		<category><![CDATA[tcpip]]></category>
		<guid isPermaLink="false">https://wordpress.youran.me/?p=488</guid>

					<description><![CDATA[前两天在hacker news看到有人尝试用python构建一个简单的tcp stack，里面为了绕过内核的干扰而采用了ARP spoofing这种奇葩的方式。然后评论里有人说是因为作者没有使用raw socket的缘故。 Raw socket允许用户自定义tcp/ip数据包的header，赋予用户创建自定义数据包的能力，不使用底层操作系统生成的header。一般程序很少用到此项技术，主要是一些网络安全相关的软件，比如firewall、sniffer、port scanner会使用。Linux下有socket api提供raw socket的支持，windows下就比较悲剧了。抱着玩玩的心态，尝试了一下用python实现一个raw socket通信，顺便温习下tcp/ip。感谢Silver Moon的一篇精彩易懂的文章，是本文的主要参考资料。 首先是一点基础概念。 IP header的结构由RFC 791定义，如图(第一行每个数字代表一个bit位)： 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 &#8230;]]></description>
		
					<wfw:commentRss>https://wordpress.youran.me/python-raw-socket-programming/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 28/53 objects using Disk
Page Caching using Disk: Enhanced 
Database Caching 4/13 queries in 0.003 seconds using Disk

Served from: wordpress.youran.me @ 2026-04-20 18:15:57 by W3 Total Cache
-->