• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/

Lines Matching refs:sip

138 static int attadev_update(u32 sip, char *sha, struct net_device *indev);
140 static int wandev_update(u32 sip, char *sha, struct net_device *indev);
391 __be32 sip, __be32 tip)
399 sip = 0;
404 * and is in same subnet as sip
409 sip = 0;
423 return !inet_confirm_addr(dev, sip, tip, scope);
426 static int arp_filter(__be32 sip, __be32 tip, struct net_device *dev)
428 struct flowi fl = { .nl_u = { .ip4_u = { .daddr = sip,
726 __be32 sip, tip;
805 memcpy(&sip, arp_ptr, 4);
841 if (sip == 0) {
844 !arp_ignore(in_dev,dev,sip,tip))
853 && inet_addr_type(sip)==RTN_UNICAST && memcmp(dev->name,"br0", 3) == 0) {
855 //static int attadev_update(u32 sip, char *sha, struct net_device *indev);
856 attadev_update(sip, sha, bridge_indev);
862 && inet_addr_type(sip)==RTN_UNICAST && (memcmp(dev->name,"eth0", 4) == 0||memcmp(dev->name,"vlan2", 5) == 0)) {
863 wandev_update(sip, sha, bridge_indev);
869 ip_route_input(skb, tip, sip, 0, dev) == 0) {
875 n = neigh_event_ns(&arp_tbl, sha, &sip, dev);
880 dont_send |= arp_ignore(in_dev,dev,sip,tip);
882 dont_send |= arp_filter(sip,tip,dev);
884 arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha);
893 n = neigh_event_ns(&arp_tbl, sha, &sip, dev);
900 arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha);
913 n = __neigh_lookup(&arp_tbl, &sip, dev, 0);
922 inet_addr_type(sip) == RTN_UNICAST)
923 n = __neigh_lookup(&arp_tbl, &sip, dev, -1);
1485 u32 sip;
1505 (p+i)->sip = 0;
1523 (p+i)->sip = 0;
1541 ntohl((p+i)->sip),
1579 static int attadev_update(u32 sip, char *sha, struct net_device *dev) {
1580 int hash_id = attadev_hash(&sip);
1585 /* printk("sip=%08x, hashid = %d\n", sip, hash_id); */
1588 if ((p+i)->flag == FLAG_INVALID || (p+i)->sip == sip) {
1589 (p+i)->sip = sip;
1625 (p+i)->sip = 0;
1642 (p+i)->sip = 0;
1660 ntohl((p+i)->sip),
1683 static int wandev_update(u32 sip, char *sha, struct net_device *dev) {
1684 int hash_id = attadev_hash(&sip);
1689 /* printk("sip=%08x, hashid = %d\n", sip, hash_id); */
1692 if ((p+i)->flag == FLAG_INVALID || (p+i)->sip == sip) {
1693 (p+i)->sip = sip;