/arch/um/os-Linux/drivers/ |
D | ethertap_kern.c | 39 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()
|
D | tuntap_kern.c | 38 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/ |
D | nfeth.c | 94 struct sk_buff *skb; in recv_packet() local 107 skb = dev_alloc_skb(pktlen + 2); in recv_packet() 108 if (!skb) { in recv_packet() 115 skb->dev = dev; in recv_packet() 116 skb_reserve(skb, 2); /* 16 Byte align */ in recv_packet() 117 skb_put(skb, pktlen); /* make room */ in recv_packet() 118 nf_call(nfEtherID + XIF_READBLOCK, priv->ethX, virt_to_phys(skb->data), in recv_packet() 121 skb->protocol = eth_type_trans(skb, dev); in recv_packet() 122 netif_rx(skb); in recv_packet() 144 static int nfeth_xmit(struct sk_buff *skb, struct net_device *dev) in nfeth_xmit() argument [all …]
|
/arch/xtensa/platforms/iss/ |
D | network.c | 87 int (*read)(struct iss_net_private *lp, struct sk_buff **skb); 88 int (*write)(struct iss_net_private *lp, struct sk_buff **skb); 89 unsigned short (*protocol)(struct sk_buff *skb); 196 static int tuntap_read(struct iss_net_private *lp, struct sk_buff **skb) in tuntap_read() argument 199 (*skb)->data, (*skb)->dev->mtu + ETH_HEADER_OTHER); in tuntap_read() 202 static int tuntap_write(struct iss_net_private *lp, struct sk_buff **skb) in tuntap_write() argument 204 return simc_write(lp->tp.info.tuntap.fd, (*skb)->data, (*skb)->len); in tuntap_write() 207 static unsigned short tuntap_protocol(struct sk_buff *skb) in tuntap_protocol() argument 209 return eth_type_trans(skb, skb->dev); in tuntap_protocol() 276 struct sk_buff *skb; in iss_net_rx() local [all …]
|
/arch/um/include/shared/ |
D | net_kern.h | 37 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/ |
D | slip_kern.c | 47 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()
|
D | daemon_kern.c | 42 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()
|
D | vector_kern.c | 293 struct sk_buff *skb, in prep_msg() argument 300 nr_frags = skb_shinfo(skb)->nr_frags; in prep_msg() 302 if (skb_linearize(skb) != 0) in prep_msg() 307 vp->form_header(iov[iov_index].iov_base, skb, vp); in prep_msg() 310 iov[iov_index].iov_base = skb->data; in prep_msg() 312 iov[iov_index].iov_len = skb->len - skb->data_len; in prep_msg() 315 iov[iov_index].iov_len = skb->len; in prep_msg() 318 skb_frag = &skb_shinfo(skb)->frags[frag]; in prep_msg() 333 static int vector_enqueue(struct vector_queue *qi, struct sk_buff *skb) in vector_enqueue() argument 346 if (skb) in vector_enqueue() [all …]
|
D | slirp_kern.c | 52 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()
|
D | vde_kern.c | 39 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()
|
D | net_kern.c | 77 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 …]
|
D | umcast_kern.c | 51 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()
|
D | pcap_kern.c | 34 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
|
D | vector_transports.c | 67 struct sk_buff *skb, struct vector_private *vp) in l2tpv3_form_header() argument 97 struct sk_buff *skb, struct vector_private *vp) in gre_form_header() argument 115 struct sk_buff *skb, struct vector_private *vp) in raw_form_header() argument 120 skb, in raw_form_header() 131 uint8_t *header, struct sk_buff *skb, struct vector_private *vp) in l2tpv3_verify_header() argument 166 uint8_t *header, struct sk_buff *skb, struct vector_private *vp) in gre_verify_header() argument 197 uint8_t *header, struct sk_buff *skb, struct vector_private *vp) in raw_verify_header() argument 212 virtio_net_hdr_to_skb(skb, vheader, virtio_legacy_is_little_endian()); in raw_verify_header()
|
D | vector_kern.h | 112 struct sk_buff *skb, struct vector_private *vp); 114 struct sk_buff *skb, struct vector_private *vp);
|
/arch/mips/net/ |
D | bpf_jit.h | 71 extern u8 func(unsigned long *skb, int offset); \ 72 extern u8 func##_negative(unsigned long *skb, int offset); \ 73 extern u8 func##_positive(unsigned long *skb, int offset)
|
D | bpf_jit_asm.S | 40 #define skb a0 macro
|
D | bpf_jit.c | 676 u8 (*sk_load_func)(unsigned long *skb, int offset); in build_body()
|