<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-CH">
	<id>https://wiki.primat.ch/index.php?action=history&amp;feed=atom&amp;title=Linux_Netzwerk_Programmierung</id>
	<title>Linux Netzwerk Programmierung - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.primat.ch/index.php?action=history&amp;feed=atom&amp;title=Linux_Netzwerk_Programmierung"/>
	<link rel="alternate" type="text/html" href="https://wiki.primat.ch/index.php?title=Linux_Netzwerk_Programmierung&amp;action=history"/>
	<updated>2026-05-09T13:38:58Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Primatenwiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.primat.ch/index.php?title=Linux_Netzwerk_Programmierung&amp;diff=61&amp;oldid=prev</id>
		<title>Rbritt: Die Seite wurde neu angelegt: «== Access to the raw Ethernet Device == How do I get access to the raw ethernet device in linux, without going through TCP/IP and friends?   int s=socket(AF_INET,SOCK_PACKET,htons(ETH_P_ALL));  This gives you a socket receiving every protocol type. Do recvfrom() calls to it and it will fill the sockaddr with device type in sa_family and the device name in the sa_data array. I don&#039;t know who originally invented SOCK_PACKET for Linux (its been in for ages) bu…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.primat.ch/index.php?title=Linux_Netzwerk_Programmierung&amp;diff=61&amp;oldid=prev"/>
		<updated>2025-01-08T18:13:55Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: «== Access to the raw Ethernet Device == How do I get access to the raw ethernet device in linux, without going through TCP/IP and friends?   int s=socket(AF_INET,SOCK_PACKET,htons(ETH_P_ALL));  This gives you a socket receiving every protocol type. Do recvfrom() calls to it and it will fill the sockaddr with device type in sa_family and the device name in the sa_data array. I don&amp;#039;t know who originally invented SOCK_PACKET for Linux (its been in for ages) bu…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Access to the raw Ethernet Device ==&lt;br /&gt;
How do I get access to the raw ethernet device in linux, without going through TCP/IP and friends?&lt;br /&gt;
&lt;br /&gt;
 int s=socket(AF_INET,SOCK_PACKET,htons(ETH_P_ALL));&lt;br /&gt;
&lt;br /&gt;
This gives you a socket receiving every protocol type. Do recvfrom() calls to it and it will fill the sockaddr with device type in sa_family and the device name in the sa_data array. I don&amp;#039;t know who originally invented SOCK_PACKET for Linux (its been in for ages) but its superb stuff. You can use it to send stuff raw too via sendto() calls. You have to have root access to do either of course.&lt;br /&gt;
&lt;br /&gt;
Source: [http://www.faqs.org/docs/ethernet/Ethernet-HOWTO-2.html http://www.faqs.org/docs/ethernet/Ethernet-HOWTO-2.html]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== GNU Common C++ ==&lt;br /&gt;
GNU Common C++ ist ein Framework, welches Multithreading- und Socketprogrammierung unterstützt.&lt;br /&gt;
* [http://www.gnu.org/software/commoncpp/ http://www.gnu.org/software/commoncpp/]&lt;br /&gt;
* [http://www.gnu.org/software/commoncpp/docs/refman/html/index.html http://www.gnu.org/software/commoncpp/docs/refman/html/index.html]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [http://linuxgazette.net/issue74/tougher.html Linux Socket Programming In C++]&lt;br /&gt;
* [http://yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html http://yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html]&lt;/div&gt;</summary>
		<author><name>Rbritt</name></author>
	</entry>
</feed>