rtsock.c (1542) | rtsock.c (1549) |
---|---|
1/* 2 * Copyright (c) 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 604 unchanged lines hidden (view full) --- 613 */ 614void 615rt_newaddrmsg(cmd, ifa, error, rt) 616 int cmd, error; 617 register struct ifaddr *ifa; 618 register struct rtentry *rt; 619{ 620 struct rt_addrinfo info; | 1/* 2 * Copyright (c) 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 604 unchanged lines hidden (view full) --- 613 */ 614void 615rt_newaddrmsg(cmd, ifa, error, rt) 616 int cmd, error; 617 register struct ifaddr *ifa; 618 register struct rtentry *rt; 619{ 620 struct rt_addrinfo info; |
621 struct sockaddr *sa; | 621 struct sockaddr *sa = 0; |
622 int pass; | 622 int pass; |
623 struct mbuf *m; | 623 struct mbuf *m = 0; |
624 struct ifnet *ifp = ifa->ifa_ifp; 625 626 if (route_cb.any_count == 0) 627 return; 628 for (pass = 1; pass < 3; pass++) { 629 bzero((caddr_t)&info, sizeof(info)); 630 if ((cmd == RTM_ADD && pass == 1) || 631 (cmd == RTM_DELETE && pass == 2)) { --- 202 unchanged lines hidden --- | 624 struct ifnet *ifp = ifa->ifa_ifp; 625 626 if (route_cb.any_count == 0) 627 return; 628 for (pass = 1; pass < 3; pass++) { 629 bzero((caddr_t)&info, sizeof(info)); 630 if ((cmd == RTM_ADD && pass == 1) || 631 (cmd == RTM_DELETE && pass == 2)) { --- 202 unchanged lines hidden --- |