tag | line | file | source code |
eth | 153 | drivers/net/plip.c | static int plip_addrcmp(struct ethhdr *eth); |
eth | 154 | drivers/net/plip.c | static int plip_send_enethdr(struct device *dev, struct ethhdr *eth); |
eth | 155 | drivers/net/plip.c | static int plip_rebuild_enethdr(struct device *dev, struct ethhdr *eth, |
eth | 162 | drivers/net/plip.c | static int plip_send_start(struct device *dev, struct ethhdr *eth); |
eth | 426 | drivers/net/plip.c | struct ethhdr eth; |
eth | 442 | drivers/net/plip.c | unsigned char *eth_p = (unsigned char*)ð |
eth | 443 | drivers/net/plip.c | for ( i = 0; i < sizeof(eth); i++, eth_p++) { |
eth | 456 | drivers/net/plip.c | plip_rebuild_enethdr(dev, ð, h_dest, h_source, type); |
eth | 488 | drivers/net/plip.c | unsigned char *eth_p = (unsigned char *)ð |
eth | 490 | drivers/net/plip.c | for ( i = 0; i < sizeof(eth); i++) { |
eth | 494 | drivers/net/plip.c | for ( i = 0; i < length - sizeof(eth); i++) { |
eth | 572 | drivers/net/plip.c | plip_send_start(struct device *dev, struct ethhdr *eth) |
eth | 592 | drivers/net/plip.c | if ( plip_addrcmp(eth) > 0 ) { |
eth | 672 | drivers/net/plip.c | struct ethhdr *eth = (struct ethhdr *)buf; |
eth | 676 | drivers/net/plip.c | if (eth->h_dest[i] != eth->h_source[i]) |
eth | 765 | drivers/net/plip.c | plip_addrcmp(struct ethhdr *eth) |
eth | 769 | drivers/net/plip.c | if (eth->h_dest[i] > eth->h_source[i]) return -1; |
eth | 770 | drivers/net/plip.c | if (eth->h_dest[i] < eth->h_source[i]) return 1; |
eth | 773 | drivers/net/plip.c | *(long*)ð->h_dest[2],*(short*)ð->h_dest[0], |
eth | 774 | drivers/net/plip.c | *(long*)ð->h_source[2],*(short*)ð->h_source[0])); |
eth | 779 | drivers/net/plip.c | plip_send_enethdr(struct device *dev, struct ethhdr *eth) |
eth | 781 | drivers/net/plip.c | send_byte(dev, eth->h_dest[ETH_ALEN-1]); |
eth | 782 | drivers/net/plip.c | send_byte(dev, eth->h_source[ETH_ALEN-1]); |
eth | 783 | drivers/net/plip.c | send_byte(dev, eth->h_proto >> 8); |
eth | 784 | drivers/net/plip.c | send_byte(dev, eth->h_proto); |
eth | 789 | drivers/net/plip.c | plip_rebuild_enethdr(struct device *dev, struct ethhdr *eth, |
eth | 793 | drivers/net/plip.c | eth->h_proto = type; |
eth | 794 | drivers/net/plip.c | memcpy(eth->h_dest, dev->dev_addr, ETH_ALEN-1); |
eth | 795 | drivers/net/plip.c | eth->h_dest[ETH_ALEN-1] = dest; |
eth | 796 | drivers/net/plip.c | memcpy(eth->h_source, dev->dev_addr, ETH_ALEN-1); |
eth | 797 | drivers/net/plip.c | eth->h_source[ETH_ALEN-1] = source; |
eth | 132 | net/inet/dev.h | int (*rebuild_header)(void *eth, struct device *dev); |
eth | 86 | net/inet/eth.c | eth_dump(struct ethhdr *eth) |
eth | 90 | net/inet/eth.c | printk("eth: SRC = %s ", eth_print(eth->h_source)); |
eth | 91 | net/inet/eth.c | printk("DST = %s ", eth_print(eth->h_dest)); |
eth | 92 | net/inet/eth.c | printk("TYPE = %04X\n", ntohs(eth->h_proto)); |
eth | 101 | net/inet/eth.c | struct ethhdr *eth; |
eth | 107 | net/inet/eth.c | eth = (struct ethhdr *) buff; |
eth | 108 | net/inet/eth.c | eth->h_proto = htons(type); |
eth | 113 | net/inet/eth.c | memcpy(eth->h_source, dev->dev_addr, dev->addr_len); |
eth | 114 | net/inet/eth.c | memset(eth->h_dest, 0, dev->addr_len); |
eth | 121 | net/inet/eth.c | memcpy(eth->h_source, dev->dev_addr, dev->addr_len); |
eth | 122 | net/inet/eth.c | memcpy(eth->h_dest, dev->broadcast, dev->addr_len); |
eth | 126 | net/inet/eth.c | memcpy(eth->h_source, &saddr, 4); |
eth | 128 | net/inet/eth.c | if (arp_find(eth->h_dest, daddr, dev, dev->pa_addr)) |
eth | 137 | net/inet/eth.c | memcpy(eth->h_source,dev->dev_addr,dev->addr_len); /* This was missing causing chaos if the |
eth | 149 | net/inet/eth.c | struct ethhdr *eth; |
eth | 153 | net/inet/eth.c | eth = (struct ethhdr *) buff; |
eth | 154 | net/inet/eth.c | src = *(unsigned long *) eth->h_source; |
eth | 155 | net/inet/eth.c | dst = *(unsigned long *) eth->h_dest; |
eth | 158 | net/inet/eth.c | if(eth->h_proto!=htons(ETH_P_ARP)) /* This ntohs kind of helps a bit! */ |
eth | 159 | net/inet/eth.c | if (arp_find(eth->h_dest, dst, dev, dev->pa_addr /* src */)) return(1); |
eth | 160 | net/inet/eth.c | memcpy(eth->h_source, dev->dev_addr, dev->addr_len); |
eth | 169 | net/inet/eth.c | struct ethhdr *eth; |
eth | 171 | net/inet/eth.c | eth = (struct ethhdr *) skb->data; |
eth | 172 | net/inet/eth.c | arp_add(addr, eth->h_source, dev); |
eth | 180 | net/inet/eth.c | struct ethhdr *eth; |
eth | 182 | net/inet/eth.c | eth = (struct ethhdr *) skb->data; |
eth | 184 | net/inet/eth.c | if(ntohs(eth->h_proto)<1536) |
eth | 186 | net/inet/eth.c | return(eth->h_proto); |
eth | 26 | net/inet/eth.h | extern void eth_dump(struct ethhdr *eth); |
eth | 53 | net/inet/skbuff.h | struct ethhdr *eth; |