Deleted Added
full compact
dhclient-script (166602) dhclient-script (168689)
1#!/bin/sh
2#
3# $OpenBSD: dhclient-script,v 1.6 2004/05/06 18:22:41 claudio Exp $
1#!/bin/sh
2#
3# $OpenBSD: dhclient-script,v 1.6 2004/05/06 18:22:41 claudio Exp $
4# $FreeBSD: head/sbin/dhclient/dhclient-script 166602 2007-02-09 17:50:26Z emaste $
4# $FreeBSD: head/sbin/dhclient/dhclient-script 168689 2007-04-13 15:07:10Z emaste $
5#
6# Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org>
7#
8# Permission to use, copy, modify, and distribute this software for any
9# purpose with or without fee is hereby granted, provided that the above
10# copyright notice and this permission notice appear in all copies.
11#
12# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 70 unchanged lines hidden (view full) ---

83 ifconfig $interface inet alias $alias_ip_address netmask \
84 $alias_subnet_mask
85 #route add $alias_ip_address $LOCALHOST
86 fi
87}
88
89fill_classless_routes() {
90 set $1
5#
6# Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org>
7#
8# Permission to use, copy, modify, and distribute this software for any
9# purpose with or without fee is hereby granted, provided that the above
10# copyright notice and this permission notice appear in all copies.
11#
12# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 70 unchanged lines hidden (view full) ---

83 ifconfig $interface inet alias $alias_ip_address netmask \
84 $alias_subnet_mask
85 #route add $alias_ip_address $LOCALHOST
86 fi
87}
88
89fill_classless_routes() {
90 set $1
91 while [ $# -gt 5 ]; do
91 while [ $# -ge 5 ]; do
92 if [ $1 -eq 0 ]; then
93 route="default"
94 elif [ $1 -le 8 ]; then
95 route="$2.0.0.0/$1"
96 shift
97 elif [ $1 -le 16 ]; then
98 route="$2.$3.0.0/$1"
99 shift; shift

--- 256 unchanged lines hidden ---
92 if [ $1 -eq 0 ]; then
93 route="default"
94 elif [ $1 -le 8 ]; then
95 route="$2.0.0.0/$1"
96 shift
97 elif [ $1 -le 16 ]; then
98 route="$2.$3.0.0/$1"
99 shift; shift

--- 256 unchanged lines hidden ---