slirp_kern.c (f1f76afd71e0f17af9a35fcb649f4bab53304a4d) slirp_kern.c (5e7672ec3f059f764fcc5c78216e24bb16c44dba)
1#include "linux/kernel.h"
2#include "linux/stddef.h"
3#include "linux/init.h"
4#include "linux/netdevice.h"
5#include "linux/if_arp.h"
6#include "net_kern.h"
7#include "net_user.h"
8#include "kern.h"

--- 50 unchanged lines hidden (view full) ---

59
60static int slirp_write(int fd, struct sk_buff **skb,
61 struct uml_net_private *lp)
62{
63 return(slirp_user_write(fd, (*skb)->data, (*skb)->len,
64 (struct slirp_data *) &lp->user));
65}
66
1#include "linux/kernel.h"
2#include "linux/stddef.h"
3#include "linux/init.h"
4#include "linux/netdevice.h"
5#include "linux/if_arp.h"
6#include "net_kern.h"
7#include "net_user.h"
8#include "kern.h"

--- 50 unchanged lines hidden (view full) ---

59
60static int slirp_write(int fd, struct sk_buff **skb,
61 struct uml_net_private *lp)
62{
63 return(slirp_user_write(fd, (*skb)->data, (*skb)->len,
64 (struct slirp_data *) &lp->user));
65}
66
67struct net_kern_info slirp_kern_info = {
67const struct net_kern_info slirp_kern_info = {
68 .init = slirp_init,
69 .protocol = slirp_protocol,
70 .read = slirp_read,
71 .write = slirp_write,
72};
73
74static int slirp_setup(char *str, char **mac_out, void *data)
75{

--- 47 unchanged lines hidden ---
68 .init = slirp_init,
69 .protocol = slirp_protocol,
70 .read = slirp_read,
71 .write = slirp_write,
72};
73
74static int slirp_setup(char *str, char **mac_out, void *data)
75{

--- 47 unchanged lines hidden ---