diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/usb/usbnet.h | 4 | ||||
| -rw-r--r-- | include/net/transp_v6.h | 22 |
2 files changed, 14 insertions, 12 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h index 5de7a220e986..0e5ac93bab10 100644 --- a/include/linux/usb/usbnet.h +++ b/include/linux/usb/usbnet.h | |||
| @@ -33,6 +33,7 @@ struct usbnet { | |||
| 33 | wait_queue_head_t *wait; | 33 | wait_queue_head_t *wait; |
| 34 | struct mutex phy_mutex; | 34 | struct mutex phy_mutex; |
| 35 | unsigned char suspend_count; | 35 | unsigned char suspend_count; |
| 36 | unsigned char pkt_cnt, pkt_err; | ||
| 36 | 37 | ||
| 37 | /* i/o info: pipes etc */ | 38 | /* i/o info: pipes etc */ |
| 38 | unsigned in, out; | 39 | unsigned in, out; |
| @@ -70,6 +71,7 @@ struct usbnet { | |||
| 70 | # define EVENT_DEV_OPEN 7 | 71 | # define EVENT_DEV_OPEN 7 |
| 71 | # define EVENT_DEVICE_REPORT_IDLE 8 | 72 | # define EVENT_DEVICE_REPORT_IDLE 8 |
| 72 | # define EVENT_NO_RUNTIME_PM 9 | 73 | # define EVENT_NO_RUNTIME_PM 9 |
| 74 | # define EVENT_RX_KILL 10 | ||
| 73 | }; | 75 | }; |
| 74 | 76 | ||
| 75 | static inline struct usb_driver *driver_of(struct usb_interface *intf) | 77 | static inline struct usb_driver *driver_of(struct usb_interface *intf) |
| @@ -100,7 +102,6 @@ struct driver_info { | |||
| 100 | #define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */ | 102 | #define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */ |
| 101 | 103 | ||
| 102 | #define FLAG_POINTTOPOINT 0x1000 /* possibly use "usb%d" names */ | 104 | #define FLAG_POINTTOPOINT 0x1000 /* possibly use "usb%d" names */ |
| 103 | #define FLAG_NOARP 0x2000 /* device can't do ARP */ | ||
| 104 | 105 | ||
| 105 | /* | 106 | /* |
| 106 | * Indicates to usbnet, that USB driver accumulates multiple IP packets. | 107 | * Indicates to usbnet, that USB driver accumulates multiple IP packets. |
| @@ -108,6 +109,7 @@ struct driver_info { | |||
| 108 | */ | 109 | */ |
| 109 | #define FLAG_MULTI_PACKET 0x2000 | 110 | #define FLAG_MULTI_PACKET 0x2000 |
| 110 | #define FLAG_RX_ASSEMBLE 0x4000 /* rx packets may span >1 frames */ | 111 | #define FLAG_RX_ASSEMBLE 0x4000 /* rx packets may span >1 frames */ |
| 112 | #define FLAG_NOARP 0x8000 /* device can't do ARP */ | ||
| 111 | 113 | ||
| 112 | /* init device ... can sleep, or cause probe() failure */ | 114 | /* init device ... can sleep, or cause probe() failure */ |
| 113 | int (*bind)(struct usbnet *, struct usb_interface *); | 115 | int (*bind)(struct usbnet *, struct usb_interface *); |
diff --git a/include/net/transp_v6.h b/include/net/transp_v6.h index 498433dd067d..938b7fd11204 100644 --- a/include/net/transp_v6.h +++ b/include/net/transp_v6.h | |||
| @@ -34,17 +34,17 @@ extern int udpv6_connect(struct sock *sk, | |||
| 34 | struct sockaddr *uaddr, | 34 | struct sockaddr *uaddr, |
| 35 | int addr_len); | 35 | int addr_len); |
| 36 | 36 | ||
| 37 | extern int datagram_recv_ctl(struct sock *sk, | 37 | extern int ip6_datagram_recv_ctl(struct sock *sk, |
| 38 | struct msghdr *msg, | 38 | struct msghdr *msg, |
| 39 | struct sk_buff *skb); | 39 | struct sk_buff *skb); |
| 40 | 40 | ||
| 41 | extern int datagram_send_ctl(struct net *net, | 41 | extern int ip6_datagram_send_ctl(struct net *net, |
| 42 | struct sock *sk, | 42 | struct sock *sk, |
| 43 | struct msghdr *msg, | 43 | struct msghdr *msg, |
| 44 | struct flowi6 *fl6, | 44 | struct flowi6 *fl6, |
| 45 | struct ipv6_txoptions *opt, | 45 | struct ipv6_txoptions *opt, |
| 46 | int *hlimit, int *tclass, | 46 | int *hlimit, int *tclass, |
| 47 | int *dontfrag); | 47 | int *dontfrag); |
| 48 | 48 | ||
| 49 | #define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006) | 49 | #define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006) |
| 50 | 50 | ||
