bootp_subr.c (2127f26023a9be443e05b592b35c77b454ba8f77) | bootp_subr.c (f1d19042b082d95f07a0027e596ba2405aa8a9a5) |
---|---|
1/* $Id: bootp_subr.c,v 1.16 1998/12/03 20:28:23 dillon Exp $ */ | 1/* $Id: bootp_subr.c,v 1.17 1998/12/04 22:54:54 archie Exp $ */ |
2 3/* 4 * Copyright (c) 1995 Gordon Ross, Adam Glass 5 * Copyright (c) 1992 Regents of the University of California. 6 * All rights reserved. 7 * 8 * This software was developed by the Computer Systems Engineering group 9 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and --- 247 unchanged lines hidden (view full) --- 257static int 258bootpc_call(call,reply,procp) 259 struct bootp_packet *call; 260 struct bootp_packet *reply; /* output */ 261 struct proc *procp; 262{ 263 struct socket *so; 264 struct sockaddr_in *sin, sa; | 2 3/* 4 * Copyright (c) 1995 Gordon Ross, Adam Glass 5 * Copyright (c) 1992 Regents of the University of California. 6 * All rights reserved. 7 * 8 * This software was developed by the Computer Systems Engineering group 9 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and --- 247 unchanged lines hidden (view full) --- 257static int 258bootpc_call(call,reply,procp) 259 struct bootp_packet *call; 260 struct bootp_packet *reply; /* output */ 261 struct proc *procp; 262{ 263 struct socket *so; 264 struct sockaddr_in *sin, sa; |
265 struct mbuf *m; | |
266 struct uio auio; 267 struct sockopt sopt; 268 struct iovec aio; 269 struct timeval tv; 270 int error, on, len, rcvflg, secs, timo; | 265 struct uio auio; 266 struct sockopt sopt; 267 struct iovec aio; 268 struct timeval tv; 269 int error, on, len, rcvflg, secs, timo; |
271 u_int tport; | |
272 273 /* 274 * Create socket and set its recieve timeout. 275 */ 276 if ((error = socreate(AF_INET, &so, SOCK_DGRAM, 0,procp))) 277 goto out; 278 279 tv.tv_sec = 1; --- 445 unchanged lines hidden (view full) --- 725 struct bootp_packet reply; 726 static u_int32_t xid = ~0xFF; 727 728 struct ifreq ireq; 729 struct ifnet *ifp; 730 struct socket *so; 731 int error; 732 int code,ncode,len; | 270 271 /* 272 * Create socket and set its recieve timeout. 273 */ 274 if ((error = socreate(AF_INET, &so, SOCK_DGRAM, 0,procp))) 275 goto out; 276 277 tv.tv_sec = 1; --- 445 unchanged lines hidden (view full) --- 723 struct bootp_packet reply; 724 static u_int32_t xid = ~0xFF; 725 726 struct ifreq ireq; 727 struct ifnet *ifp; 728 struct socket *so; 729 int error; 730 int code,ncode,len; |
733 int i,j; | 731 int j; |
734 char *p; 735 unsigned int ip; 736 737 struct sockaddr_in myaddr; 738 struct sockaddr_in netmask; 739 struct sockaddr_in gw; 740 int gotgw=0; 741 int gotnetmask=0; 742 int gotrootpath=0; 743 int gotswappath=0; 744 char lookup_path[24]; 745 746#define EALEN 6 | 732 char *p; 733 unsigned int ip; 734 735 struct sockaddr_in myaddr; 736 struct sockaddr_in netmask; 737 struct sockaddr_in gw; 738 int gotgw=0; 739 int gotnetmask=0; 740 int gotrootpath=0; 741 int gotswappath=0; 742 char lookup_path[24]; 743 744#define EALEN 6 |
747 unsigned char ea[EALEN]; | |
748 struct ifaddr *ifa; 749 struct sockaddr_dl *sdl = NULL; 750 char *delim; 751 752 struct nfsv3_diskless *nd = &nfsv3_diskless; 753 struct proc *procp = curproc; 754 755 /* --- 505 unchanged lines hidden --- | 745 struct ifaddr *ifa; 746 struct sockaddr_dl *sdl = NULL; 747 char *delim; 748 749 struct nfsv3_diskless *nd = &nfsv3_diskless; 750 struct proc *procp = curproc; 751 752 /* --- 505 unchanged lines hidden --- |