Searched refs:proto (Results 26 - 50 of 1024) sorted by relevance

1234567891011>>

/linux-master/include/net/
H A Dtun_proto.h16 static inline __be16 tun_p_to_eth_p(u8 proto) argument
18 switch (proto) {
33 static inline u8 tun_p_from_eth_p(__be16 proto) argument
35 switch (proto) {
H A Dp8022.h15 void unregister_8022_client(struct datalink_proto *proto);
H A Dtransp_v6.h9 extern struct proto rawv6_prot;
10 extern struct proto udpv6_prot;
11 extern struct proto udplitev6_prot;
12 extern struct proto tcpv6_prot;
13 extern struct proto pingv6_prot;
/linux-master/arch/x86/um/asm/
H A Dchecksum_32.h16 __u32 len, __u8 proto,
33 "r"(htonl(len)), "r"(htonl(proto)), "0"(sum));
14 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, __u8 proto, __wsum sum) argument
H A Dchecksum.h48 * @proto: ip protocol of packet
56 __u8 proto, __wsum sum)
63 : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum));
72 __u32 len, __u8 proto,
75 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum));
55 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
71 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
/linux-master/arch/hexagon/include/asm/
H A Dchecksum.h18 __u32 len, __u8 proto, __wsum sum);
22 __u32 len, __u8 proto, __wsum sum);
/linux-master/include/trace/
H A Dtrace_events.h39 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \
41 PARAMS(proto), \
46 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
51 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \
61 #define DEFINE_EVENT(template, name, proto, args) \
66 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \
67 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
70 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
71 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
75 #define TRACE_EVENT_FN(name, proto, arg
[all...]
H A Dperf.h16 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
18 perf_trace_##call(void *__data, proto) \
64 #define DEFINE_EVENT(template, call, proto, args) \
72 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
73 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
/linux-master/include/net/netfilter/
H A Dnf_reject.h9 __u8 proto)
14 switch (proto) {
8 nf_reject_verify_csum(struct sk_buff *skb, int dataoff, __u8 proto) argument
/linux-master/arch/parisc/include/asm/
H A Dchecksum.h75 __u32 len, __u8 proto,
84 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum));
93 __u32 len, __u8 proto,
96 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum));
112 __u32 len, __u8 proto,
117 len += proto; /* add 16-bit proto + len */
138 " add,dc %3, %0, %0\n" /* fold in proto+len | carry bit */
167 " addc %3, %0, %0\n" /* fold in proto+len */
74 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
92 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
110 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, __u8 proto, __wsum sum) argument
/linux-master/arch/arm/include/asm/
H A Dchecksum.h101 __u8 proto, __wsum sum)
103 u32 lenprot = len + proto;
138 __u8 proto, __wsum sum)
140 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum));
157 __be32 proto, __wsum sum);
161 __u32 len, __u8 proto, __wsum sum)
164 htonl(proto), sum));
100 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
137 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
160 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, __u8 proto, __wsum sum) argument
/linux-master/drivers/ata/pata_parport/
H A Dpata_parport.c31 pi->proto->connect(pi);
36 pi->proto->disconnect(pi);
50 pi->proto->write_regr(pi, 0, ATA_REG_DEVICE, tmp);
58 pi->proto->write_regr(pi, 1, 6, ctl);
68 pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0x55);
69 pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0xaa);
71 pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0xaa);
72 pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0x55);
74 pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0x55);
75 pi->proto
482 struct pi_protocol *proto; member in struct:pi_device_match
[all...]
/linux-master/net/ipv4/
H A Dgre_demux.c31 int gre_add_protocol(const struct gre_protocol *proto, u8 version) argument
36 return (cmpxchg((const struct gre_protocol **)&gre_proto[version], NULL, proto) == NULL) ?
41 int gre_del_protocol(const struct gre_protocol *proto, u8 version) argument
48 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ?
63 bool *csum_err, __be16 proto, int nhs)
83 tpi->proto = greh->protocol;
114 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) {
121 tpi->proto = proto;
62 gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, bool *csum_err, __be16 proto, int nhs) argument
148 const struct gre_protocol *proto; local
176 const struct gre_protocol *proto; local
[all...]
/linux-master/arch/powerpc/xmon/
H A Dansidecl.h98 #define EXFUN(name, proto) name proto
122 #define EXFUN(name, proto) name()
/linux-master/include/asm-generic/
H A Dchecksum.h47 __u8 proto, __wsum sum);
53 __u8 proto, __wsum sum)
55 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum));
52 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
/linux-master/tools/testing/selftests/bpf/progs/
H A Dskb_pkt_end.c35 __u8 proto = 0; local
40 proto = ip->protocol;
42 if (proto != IPPROTO_TCP)
/linux-master/arch/m68k/include/asm/
H A Dchecksum.h83 unsigned short proto, __wsum sum)
91 : "g" (daddr), "1" (saddr), "d" (len + proto),
103 unsigned short proto, __wsum sum)
105 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum));
121 __u32 len, __u8 proto, __wsum sum)
143 : "a" (saddr), "a" (daddr), "d" (len + proto),
82 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, unsigned short proto, __wsum sum) argument
102 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, unsigned short proto, __wsum sum) argument
120 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, __u8 proto, __wsum sum) argument
/linux-master/arch/sparc/include/asm/
H A Dchecksum_64.h67 __u32 len, __u8 proto,
76 : "r" (daddr), "r" (proto + len), "0" (sum), "1" (saddr)
86 __u32 len, __u8 proto,
89 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum));
96 __u32 len, __u8 proto, __wsum sum)
120 "r"(htonl(proto)), "r"(sum)
66 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
85 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
94 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, __u8 proto, __wsum sum) argument
/linux-master/net/8021q/
H A Dvlan_core.c164 __be16 proto; member in struct:vlan_vid_info
169 static bool vlan_hw_filter_capable(const struct net_device *dev, __be16 proto) argument
171 if (proto == htons(ETH_P_8021Q) &&
174 if (proto == htons(ETH_P_8021AD) &&
181 __be16 proto, u16 vid)
186 if (vid_info->proto == proto && vid_info->vid == vid)
192 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) argument
199 vid_info->proto = proto;
180 vlan_vid_info_get(struct vlan_info *vlan_info, __be16 proto, u16 vid) argument
205 vlan_add_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) argument
216 vlan_kill_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) argument
254 vlan_filter_push_vids(struct vlan_info *vlan_info, __be16 proto) argument
283 vlan_filter_drop_vids(struct vlan_info *vlan_info, __be16 proto) argument
295 __vlan_vid_add(struct vlan_info *vlan_info, __be16 proto, u16 vid, struct vlan_vid_info **pvid_info) argument
318 vlan_vid_add(struct net_device *dev, __be16 proto, u16 vid) argument
358 __be16 proto = vid_info->proto; local
371 vlan_vid_del(struct net_device *dev, __be16 proto, u16 vid) argument
[all...]
/linux-master/net/netfilter/
H A Dnf_conntrack_ovs.c13 enum ip_conntrack_info ctinfo, u16 proto)
32 helper->tuple.src.l3num != proto)
35 switch (proto) {
38 proto = ip_hdr(skb)->protocol;
48 pr_debug("proto header not found\n");
52 proto = nexthdr;
60 if (helper->tuple.dst.protonum != proto)
79 u8 proto, bool nat, struct nf_conntrack_helper **hp)
85 helper = nf_conntrack_helper_try_module_get(name, family, proto);
96 ret = nf_nat_helper_try_module_get(name, family, proto);
12 nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, u16 proto) argument
78 nf_ct_add_helper(struct nf_conn *ct, const char *name, u8 family, u8 proto, bool nat, struct nf_conntrack_helper **hp) argument
144 nf_ct_handle_fragments(struct net *net, struct sk_buff *skb, u16 zone, u8 family, u8 *proto, u16 *mru) argument
[all...]
/linux-master/tools/testing/selftests/net/
H A Dreuseport_bpf_cpu.c34 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) argument
60 rcv_fd[i] = socket(family, proto, 0);
72 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10))
94 static void send_from_cpu(int cpu_id, int family, int proto) argument
134 fd = socket(family, proto, 0);
151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) argument
161 if (proto == SOCK_STREAM) {
184 static void test(int *rcv_fd, int len, int family, int proto) argument
189 build_rcv_group(rcv_fd, len, family, proto);
204 send_from_cpu(cpu, family, proto);
[all...]
/linux-master/include/uapi/linux/netfilter/
H A Dxt_ecn.h33 } proto; member in struct:xt_ecn_info
/linux-master/include/uapi/linux/netfilter_ipv4/
H A Dipt_ECN.h31 } proto; member in struct:ipt_ECN_info
/linux-master/net/ipv6/
H A Dxfrm6_state.c19 .proto = IPPROTO_IPV6,
/linux-master/samples/bpf/
H A Dsockex2_kern.c29 static inline int proto_ports_offset(__u64 proto) argument
31 switch (proto) {
105 __u64 proto = load_half(skb, 12); local
108 if (proto == ETH_P_8021AD) {
109 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr,
114 if (proto == ETH_P_8021Q) {
115 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr,
120 if (likely(proto == ETH_P_IP))
122 else if (proto == ETH_P_IPV6)
131 __be16 proto; member in struct:gre_hdr
[all...]

Completed in 257 milliseconds

1234567891011>>