函数逻辑报告 |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-27 14:46:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__cgroup_bpf_run_filter_skb() - Run a program for packet filtering*@sk: The socket sending or receiving traffic*@skb: The skb that is being sent or received*@type: The type of program to be exectuted* If no socket is passed, or the socket is not of type
函数原型:int __cgroup_bpf_run_filter_skb(struct sock *sk, struct sk_buff *skb, enum bpf_attach_type type)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sock * | sk | |
struct sk_buff * | skb | |
enum bpf_attach_type | type |
627 | offset等于data减skb_network_header(skb) |
633 | 如果非sk或非This helper checks if a socket is a full socket,* ie _not_ a timewait or request socket.则返回:0 |
636 | 如果sk_family不等于Internet IP Protocol 且sk_family不等于IP version 6 则返回:0 |
639 | cgrp等于sock_cgroup_ptr( & sk_cgrp_data) |
642 | __skb_push(skb, offset) |
647 | 如果type恒等于BPF_CGROUP_INET_EGRESS则 |
650 | 否则 |
656 | __skb_pull(skb, offset) |
659 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |