Function report |
Source Code:include\net\udp.h |
Create Date:2022-07-28 19:16:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:udp_rcv_segment
Proto:static inline struct sk_buff *udp_rcv_segment(struct sock *sk, struct sk_buff *skb, bool ipv4)
Type:struct sk_buff
Parameter:
Type | Parameter | Name |
---|---|---|
struct sock * | sk | |
struct sk_buff * | skb | |
bool | ipv4 |
470 | features = NETIF_F_SG |
476 | If Not inet_get_convert_csum(sk) Then features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
479 | If pkt_type == MC/BRD frame looped back Then ip_summed = A checksum is set up to be offloaded to a device as described in the output description for CHECKSUM_PARTIAL |
485 | segs = __skb_gso_segment(skb, features, false) |
486 | If IS_ERR_OR_NULL(segs) Then |
489 | atomic_add(segs_nr, & sk_drops) |
490 | SNMP_ADD_STATS(__UDPX_MIB(sk, ipv4), UDP_MIB_INERRORS, segs_nr) |
491 | free an sk_buff |
492 | Return NULL |
495 | consume_skb(skb) |
496 | Return segs |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |