Home
last modified time | relevance | path

Searched refs:skb (Results 1 – 18 of 18) sorted by relevance

/arch/um/os-Linux/drivers/
Dethertap_kern.c39 static int etap_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in etap_read() argument
43 len = net_recvfrom(fd, skb_mac_header(skb), in etap_read()
44 skb->dev->mtu + 2 + ETH_HEADER_ETHERTAP); in etap_read()
48 skb_pull(skb, 2); in etap_read()
53 static int etap_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in etap_write() argument
55 skb_push(skb, 2); in etap_write()
56 return net_send(fd, skb->data, skb->len); in etap_write()
Dtuntap_kern.c38 static int tuntap_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in tuntap_read() argument
40 return net_read(fd, skb_mac_header(skb), in tuntap_read()
41 skb->dev->mtu + ETH_HEADER_OTHER); in tuntap_read()
44 static int tuntap_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in tuntap_write() argument
46 return net_write(fd, skb->data, skb->len); in tuntap_write()
/arch/m68k/emu/
Dnfeth.c98 struct sk_buff *skb; in recv_packet() local
111 skb = dev_alloc_skb(pktlen + 2); in recv_packet()
112 if (!skb) { in recv_packet()
119 skb->dev = dev; in recv_packet()
120 skb_reserve(skb, 2); /* 16 Byte align */ in recv_packet()
121 skb_put(skb, pktlen); /* make room */ in recv_packet()
122 nf_call(nfEtherID + XIF_READBLOCK, priv->ethX, virt_to_phys(skb->data), in recv_packet()
125 skb->protocol = eth_type_trans(skb, dev); in recv_packet()
126 netif_rx(skb); in recv_packet()
148 static int nfeth_xmit(struct sk_buff *skb, struct net_device *dev) in nfeth_xmit() argument
[all …]
/arch/xtensa/platforms/iss/
Dnetwork.c90 int (*read)(struct iss_net_private *lp, struct sk_buff **skb);
91 int (*write)(struct iss_net_private *lp, struct sk_buff **skb);
92 unsigned short (*protocol)(struct sk_buff *skb);
199 static int tuntap_read(struct iss_net_private *lp, struct sk_buff **skb) in tuntap_read() argument
202 (*skb)->data, (*skb)->dev->mtu + ETH_HEADER_OTHER); in tuntap_read()
205 static int tuntap_write(struct iss_net_private *lp, struct sk_buff **skb) in tuntap_write() argument
207 return simc_write(lp->tp.info.tuntap.fd, (*skb)->data, (*skb)->len); in tuntap_write()
210 unsigned short tuntap_protocol(struct sk_buff *skb) in tuntap_protocol() argument
212 return eth_type_trans(skb, skb->dev); in tuntap_protocol()
279 struct sk_buff *skb; in iss_net_rx() local
[all …]
/arch/ia64/hp/sim/
Dsimeth.c51 static int simeth_tx(struct sk_buff *skb, struct net_device *dev);
369 simeth_tx(struct sk_buff *skb, struct net_device *dev) in simeth_tx() argument
375 unsigned int length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; in simeth_tx()
381 unsigned int length = skb->len; in simeth_tx()
384 local->stats.tx_bytes += skb->len; in simeth_tx()
388 if (simeth_debug > 5) frame_print("simeth_tx", skb->data, length); in simeth_tx()
390 netdev_send(local->simfd, skb->data, length); in simeth_tx()
397 dev_kfree_skb(skb); in simeth_tx()
430 struct sk_buff *skb; in simeth_rx() local
442 if ( (skb=make_new_skb(dev)) == NULL ) { in simeth_rx()
[all …]
/arch/um/include/shared/
Dnet_kern.h37 int (*read)(int, struct sk_buff *skb, struct uml_net_private *);
38 int (*write)(int, struct sk_buff *skb, struct uml_net_private *);
48 int (*read)(int, struct sk_buff *skb, struct uml_net_private *);
49 int (*write)(int, struct sk_buff *skb, struct uml_net_private *);
67 extern unsigned short eth_protocol(struct sk_buff *skb);
/arch/um/drivers/
Dslip_kern.c47 static int slip_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in slip_read() argument
49 return slip_user_read(fd, skb_mac_header(skb), skb->dev->mtu, in slip_read()
53 static int slip_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in slip_write() argument
55 return slip_user_write(fd, skb->data, skb->len, in slip_write()
Ddaemon_kern.c42 static int daemon_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in daemon_read() argument
44 return net_recvfrom(fd, skb_mac_header(skb), in daemon_read()
45 skb->dev->mtu + ETH_HEADER_OTHER); in daemon_read()
48 static int daemon_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in daemon_write() argument
50 return daemon_user_write(fd, skb->data, skb->len, in daemon_write()
Dslirp_kern.c52 static int slirp_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in slirp_read() argument
54 return slirp_user_read(fd, skb_mac_header(skb), skb->dev->mtu, in slirp_read()
58 static int slirp_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in slirp_write() argument
60 return slirp_user_write(fd, skb->data, skb->len, in slirp_write()
Dvde_kern.c39 static int vde_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in vde_read() argument
44 return vde_user_read(pri->conn, skb_mac_header(skb), in vde_read()
45 skb->dev->mtu + ETH_HEADER_OTHER); in vde_read()
51 static int vde_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in vde_write() argument
56 return vde_user_write((void *)pri->conn, skb->data, in vde_write()
57 skb->len); in vde_write()
Dnet_kern.c77 struct sk_buff *skb; in uml_net_rx() local
80 skb = dev_alloc_skb(lp->max_packet); in uml_net_rx()
81 if (skb == NULL) { in uml_net_rx()
89 skb->dev = dev; in uml_net_rx()
90 skb_put(skb, lp->max_packet); in uml_net_rx()
91 skb_reset_mac_header(skb); in uml_net_rx()
92 pkt_len = (*lp->read)(lp->fd, skb, lp); in uml_net_rx()
95 skb_trim(skb, pkt_len); in uml_net_rx()
96 skb->protocol = (*lp->protocol)(skb); in uml_net_rx()
98 dev->stats.rx_bytes += skb->len; in uml_net_rx()
[all …]
Dumcast_kern.c51 static int umcast_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in umcast_read() argument
53 return net_recvfrom(fd, skb_mac_header(skb), in umcast_read()
54 skb->dev->mtu + ETH_HEADER_OTHER); in umcast_read()
57 static int umcast_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in umcast_write() argument
59 return umcast_user_write(fd, skb->data, skb->len, in umcast_write()
Dpcap_kern.c34 static int pcap_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in pcap_read() argument
36 return pcap_user_read(fd, skb_mac_header(skb), in pcap_read()
37 skb->dev->mtu + ETH_HEADER_OTHER, in pcap_read()
41 static int pcap_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in pcap_write() argument
/arch/mips/net/
Dbpf_jit.h74 extern u8 func(unsigned long *skb, int offset); \
75 extern u8 func##_negative(unsigned long *skb, int offset); \
76 extern u8 func##_positive(unsigned long *skb, int offset)
Dbpf_jit_asm.S39 #define skb a0 macro
Debpf_jit.c554 ool_skb_header_pointer(const struct sk_buff *skb, int offset, in ool_skb_header_pointer() argument
557 return skb_header_pointer(skb, offset, len, buffer); in ool_skb_header_pointer()
Dbpf_jit.c671 u8 (*sk_load_func)(unsigned long *skb, int offset); in build_body()
/arch/s390/net/
Dbpf_jit.S86 llgc %r14,0(%r3,%r12) # Get byte from skb
90 lgr %r2,%r7 # Arg1 = skb pointer
94 brasl %r14,skb_copy_bits # Get data from skb