Displaying 9 results from an estimated 9 matches for "ip_hdr".
Did you mean:
in_hdr
2002 Sep 13
0
tcng version 8w
... is on SourceForge, http://tcng.sourceforge.net/#src
This one has the first steps towards getting non-IPv4 classification
right:
- I''ve added fields for skb meta-data (meta_protocol, etc.)
- if USE_META_PROTOCOL is #defined (tcc -D... or tcsim -Xc,-D...),
ip_hdr and ip6_hdr check the protocol number
- if_u32 generates distinct classifier branches for each protocol
- f_fw, f_tcindex, and f_u32 now default to ETH_P_ALL instead of
ETH_P_IP
The latter change affects how u32 classification works !
tests/protu32 illustrates how protocol-aware classificatio...
2008 Sep 08
3
Problem with install Boardcom driver
...g3-3.85l/tg3.c:85:
/usr/src/Server/Linux/Driver/tg3-3.85l/tg3.h:234: error: redefinition
of 'skb_transport_offset'
include/linux/skbuff.h:1006: error: previous definition of
'skb_transport_offset' was here
/usr/src/Server/Linux/Driver/tg3-3.85l/tg3.h:239: error: redefinition
of 'ip_hdr'
include/linux/ip.h:109: error: previous definition of 'ip_hdr' was here
/usr/src/Server/Linux/Driver/tg3-3.85l/tg3.h:244: error: redefinition
of 'ip_hdrlen'
include/net/ip.h:48: error: previous definition of 'ip_hdrlen' was here
/usr/src/Server/Linux/Driver/tg3-3.85l/tg...
2012 Aug 21
3
[Bug 800] New: sk_buff.transport_header set incorrectly for NF_IP_PRE_ROUTING hook
...AssignedTo: netfilter-buglog at lists.netfilter.org
ReportedBy: ryan at moreharts.com
Estimated Hours: 0.0
Created attachment 388
--> http://bugzilla.netfilter.org/attachment.cgi?id=388
Example code
While working on a module that uses netfilter, I encountered a situation where
ip_hdr(skb) and tcp_hdr(skb) return the same address (both point to the
beginning of the IP header). This only occurs on packets seen by a
NF_IP_PRE_ROUTING handler. Identical code for a NF_LOCAL_OUT handler behaves as
expected.
The attached code demonstrates a fairly minimal example of this.
Looking in...
2010 Jun 28
3
[PATCHv2] vhost-net: add dhclient work-around from userspace
...d just for DHCP. */
+ if (skb->ip_summed == CHECKSUM_PARTIAL &&
+ skb_headlen(skb) >= skb_transport_offset(skb) +
+ sizeof(struct udphdr) &&
+ udp_hdr(skb)->dest == htons(68) &&
+ skb_network_header_len(skb) >= sizeof(struct iphdr) &&
+ ip_hdr(skb)->protocol == IPPROTO_UDP &&
+ skb->protocol == htons(ETH_P_IP)) {
+ skb_checksum_help(skb);
+ /* Restore ip_summed value: tun passes it to user. */
+ skb->ip_summed = CHECKSUM_PARTIAL;
+ }
+ release_sock(sk);
+ return 1;
+}
+
/* Expects to be always run from workqueue...
2010 Jun 28
3
[PATCHv2] vhost-net: add dhclient work-around from userspace
...d just for DHCP. */
+ if (skb->ip_summed == CHECKSUM_PARTIAL &&
+ skb_headlen(skb) >= skb_transport_offset(skb) +
+ sizeof(struct udphdr) &&
+ udp_hdr(skb)->dest == htons(68) &&
+ skb_network_header_len(skb) >= sizeof(struct iphdr) &&
+ ip_hdr(skb)->protocol == IPPROTO_UDP &&
+ skb->protocol == htons(ETH_P_IP)) {
+ skb_checksum_help(skb);
+ /* Restore ip_summed value: tun passes it to user. */
+ skb->ip_summed = CHECKSUM_PARTIAL;
+ }
+ release_sock(sk);
+ return 1;
+}
+
/* Expects to be always run from workqueue...
2010 Jun 27
0
[PATCH RFC] vhost-net: add dhclient work-around from userspace
...dhclient,
+ * so we add a work-around just for DHCP. */
+ /* We use source port to detect DHCP packets. */
+ if (skb->ip_summed == CHECKSUM_PARTIAL &&
+ skb->protocol == htons(ETH_P_IP) &&
+ skb_network_header_len(skb) >= sizeof(struct iphdr) &&
+ ip_hdr(skb)->protocol == IPPRODO_UDP &&
+ skb_headlen(skb) >= skb_transport_offset(skb) + sizeof(struct udphdr) &&
+ udp_hdr(skb)->source == htons(0x67)) {
+ skb_checksum_help(skb);
+ /* Restore ip_summed value: tun passes it to user. */
+ skb->ip_summed = CHECK...
2010 Jun 27
0
[PATCH RFC] vhost-net: add dhclient work-around from userspace
...dhclient,
+ * so we add a work-around just for DHCP. */
+ /* We use source port to detect DHCP packets. */
+ if (skb->ip_summed == CHECKSUM_PARTIAL &&
+ skb->protocol == htons(ETH_P_IP) &&
+ skb_network_header_len(skb) >= sizeof(struct iphdr) &&
+ ip_hdr(skb)->protocol == IPPRODO_UDP &&
+ skb_headlen(skb) >= skb_transport_offset(skb) + sizeof(struct udphdr) &&
+ udp_hdr(skb)->source == htons(0x67)) {
+ skb_checksum_help(skb);
+ /* Restore ip_summed value: tun passes it to user. */
+ skb->ip_summed = CHECK...
2013 Apr 12
3
[Bug 814] rpfilter blocks broadcast packets
https://bugzilla.netfilter.org/show_bug.cgi?id=814
Florian Westphal <fw at strlen.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fw at strlen.de
--- Comment #1 from Florian Westphal <fw at strlen.de> 2013-04-12 10:24:14 CEST ---
(In reply
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...ex 6016e5f..1ef505e 100644
--- a/usr/kinit/ipconfig/bootp_packet.h
+++ b/usr/kinit/ipconfig/bootp_packet.h
@@ -28,4 +28,14 @@ struct bootp_hdr {
/* 312 bytes of extensions */
};
+/*
+ * memory size of BOOTP Vendor Extensions/DHCP Options for receiving
+ *
+ * generic_ether_mtu:1500, min_sizeof(ip_hdr):20, sizeof(udp_hdr):8
+ *
+ * #define BOOTP_EXTS_SIZE (1500 - 20 - 8 - sizeof(struct bootp_hdr))
+ */
+/* larger size for backward compatibility of ipconfig */
+#define BOOTP_EXTS_SIZE 1500
+
#endif /* BOOTP_PACKET_H */
diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_prot...