skb_set_inner_network_header(skb, skb->mac_len); skb_set_inner_protocol(skb, skb->protocol); } skb_push(skb, MPLS_HLEN); memmove(skb_mac_header(skb) - MPLS_HLEN,skb_mac_header(skb), skb->mac_len); skb_reset_mac_header(skb); skb_set_network_header(skb, skb->mac_len); new_...
booltx_path,sa_family_tsa_family){void*iph = skb_network_header(skb);intpkt_hlen = skb_inner_network_offset(skb);/* inner l2 + tunnel hdr. */intmac_offset = skb_inner_mac_offset(skb);intouter_l3_offset = skb_network_offset(skb);intouter_l4_offset = skb_transport_offset(skb...
166 __u16 inner_transport_header; 167 __u16 inner_network_header; 168 __u16 inner_mac_header; 169 170 __be16 protocol; /*协议类型*/ 171 __u16 transport_header; /*传输层头部的偏移量*/ 172 __u16 network_header; /*网络层头部的偏移量*/ 173 __u16 mac_header; /*数据链路层头部的偏...
__be16 inner_protocol;#elseunion { __be16 inner_protocol; __u8 inner_ipproto; };#endif__u16 inner_transport_header; __u16 inner_network_header; __u16 inner_mac_header; __u16 transport_header; __u16 network_header; __u16 mac_header; RH_KABI_EXTEND(kmemcheck_bitfield_begin(flags3))...
C++ (Cpp) skb_transport_header - 30 examples found. These are the top rated real world C++ (Cpp) examples of skb_transport_header extracted from open source projects. You can rate examples to help us improve the quality of examples.
int eth_header_parse(struct sk_buff *skb, u8 *haddr) EXPORT_SYMBOL(eth_header_parse); skb : 接收到的数据包; haddr : 用于存放从接收的数据包中提取的硬件地址; 1inteth_header_parse(structsk_buff *skb, u8 *haddr)2{3structethhdr *eth =eth_hdr(skb);4memcpy (haddr, eth->h_source, ETH...
(skb, 0, skb->len, 0)); } __skb_push(skb, tnl_hlen - ghl); skb_reset_inner_headers(skb); skb->encapsulation = 1; skb_reset_mac_header(skb); skb_set_network_header(skb, mac_len); skb->mac_len = mac_len; skb->protocol = protocol; } while ((skb = skb->next)); out:...
(conststruct iphdr *)skb_inner_network_header(skb), &rt_dst(rt)); err = ip_local_out(skb);if(unlikely(net_xmit_eval(err))) pkt_len =0;returnpkt_len; } 开发者ID:emaste,项目名称:openvswitch,代码行数:42,代码来源:ip_tunnels_core.c ...
(skb);intpkt_hlen = skb_inner_network_offset(skb);/* inner l2 + tunnel hdr. */intmac_offset = skb_inner_mac_offset(skb);structsk_buff*skb1=skb;structsk_buff*segs;__be16 proto = skb->protocol;charcb[sizeof(skb->cb)];/* setup whole inner packet to get protocol. */__skb_...
(套接字缓存区的大小)22atomic_t users ;//对当前的struct sk_buff结构体的引用次数;23__u32 priority ;//这个struct sk_buff结构体的优先级2425sk_buff_data_t transport_header ;//传输层头部的偏移量26sk_buff_data_t network_header ;//网络层头部的偏移量27sk_buff_data_t mac_header ;//数据...