Commit 4a432d7f authored by Chas Williams's avatar Chas Williams Committed by Hideaki Yoshifuji

[ATM]: exporting llc_oui[] isn't worth it (from mitch@sfgoth.com)

parent 787f6543
...@@ -18,8 +18,4 @@ ...@@ -18,8 +18,4 @@
#define SIOCMKCLIP _IO('a',ATMIOC_CLIP) /* create IP interface */ #define SIOCMKCLIP _IO('a',ATMIOC_CLIP) /* create IP interface */
#ifdef __KERNEL__
extern const unsigned char llc_oui[6];
#endif
#endif #endif
...@@ -189,6 +189,13 @@ static int clip_arp_rcv(struct sk_buff *skb) ...@@ -189,6 +189,13 @@ static int clip_arp_rcv(struct sk_buff *skb)
return 0; return 0;
} }
static const unsigned char llc_oui[] = {
0xaa, /* DSAP: non-ISO */
0xaa, /* SSAP: non-ISO */
0x03, /* Ctrl: Unnumbered Information Command PDU */
0x00, /* OUI: EtherType */
0x00,
0x00 };
static void clip_push(struct atm_vcc *vcc,struct sk_buff *skb) static void clip_push(struct atm_vcc *vcc,struct sk_buff *skb)
{ {
......
...@@ -22,15 +22,6 @@ ...@@ -22,15 +22,6 @@
#endif #endif
const unsigned char llc_oui[] = {
0xaa, /* DSAP: non-ISO */
0xaa, /* SSAP: non-ISO */
0x03, /* Ctrl: Unnumbered Information Command PDU */
0x00, /* OUI: EtherType */
0x00,
0x00 };
/* /*
* skb_migrate appends the list at "from" to "to", emptying "from" in the * skb_migrate appends the list at "from" to "to", emptying "from" in the
* process. skb_migrate is atomic with respect to all other skb operations on * process. skb_migrate is atomic with respect to all other skb operations on
...@@ -67,5 +58,4 @@ void skb_migrate(struct sk_buff_head *from,struct sk_buff_head *to) ...@@ -67,5 +58,4 @@ void skb_migrate(struct sk_buff_head *from,struct sk_buff_head *to)
} }
EXPORT_SYMBOL(llc_oui);
EXPORT_SYMBOL(skb_migrate); EXPORT_SYMBOL(skb_migrate);
...@@ -216,6 +216,13 @@ static void sch_atm_pop(struct atm_vcc *vcc,struct sk_buff *skb) ...@@ -216,6 +216,13 @@ static void sch_atm_pop(struct atm_vcc *vcc,struct sk_buff *skb)
tasklet_schedule(&p->task); tasklet_schedule(&p->task);
} }
static const u8 llc_oui_ip[] = {
0xaa, /* DSAP: non-ISO */
0xaa, /* SSAP: non-ISO */
0x03, /* Ctrl: Unnumbered Information Command PDU */
0x00, /* OUI: EtherType */
0x00, 0x00,
0x08, 0x00 }; /* Ethertype IP (0800) */
static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent,
struct rtattr **tca, unsigned long *arg) struct rtattr **tca, unsigned long *arg)
...@@ -322,11 +329,10 @@ static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, ...@@ -322,11 +329,10 @@ static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent,
flow->next = p->link.next; flow->next = p->link.next;
p->link.next = flow; p->link.next = flow;
flow->hdr_len = hdr_len; flow->hdr_len = hdr_len;
if (hdr) memcpy(flow->hdr,hdr,hdr_len); if (hdr)
else { memcpy(flow->hdr,hdr,hdr_len);
memcpy(flow->hdr,llc_oui,sizeof(llc_oui)); else
((u16 *) flow->hdr)[3] = htons(ETH_P_IP); memcpy(flow->hdr,llc_oui_ip,sizeof(llc_oui_ip));
}
*arg = (unsigned long) flow; *arg = (unsigned long) flow;
return 0; return 0;
err_out: err_out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment